Skip to content

Commit

Permalink
Add browser field to package.json for browser builds
Browse files Browse the repository at this point in the history
  • Loading branch information
cgewecke authored and holgerd77 committed Oct 21, 2020
1 parent 244db75 commit 4f33ced
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 1 deletion.
1 change: 1 addition & 0 deletions packages/block/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
"files": [
"dist"
],
"browser": "dist.browser/index.js",
"scripts": {
"build": "ethereumjs-config-ts-build",
"prepublishOnly": "npm run test && npm run build",
Expand Down
1 change: 1 addition & 0 deletions packages/common/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
"files": [
"dist"
],
"browser": "dist.browser/index.js",
"scripts": {
"build": "ethereumjs-config-ts-build",
"prepublishOnly": "npm run test && npm run build",
Expand Down
2 changes: 1 addition & 1 deletion packages/common/tsconfig.browser.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"extends": "@ethereumjs/config-typescript/tsconfig.browser.json",
"include": ["src/**/*.ts"],
"include": ["src/**/*.ts", "src/**/*.json"],
"compilerOptions": {
"outDir": "./dist.browser"
}
Expand Down
1 change: 1 addition & 0 deletions packages/ethash/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
"files": [
"dist"
],
"browser": "dist.browser/index.js",
"scripts": {
"build": "ethereumjs-config-ts-build",
"tsc": "ethereumjs-config-tsc",
Expand Down
1 change: 1 addition & 0 deletions packages/tx/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
"files": [
"dist"
],
"browser": "dist.browser/index.js",
"scripts": {
"build": "ethereumjs-config-ts-build",
"prepublishOnly": "npm run test && npm run build",
Expand Down

0 comments on commit 4f33ced

Please sign in to comment.