Skip to content

Commit

Permalink
add browser field
Browse files Browse the repository at this point in the history
  • Loading branch information
shrpne committed Feb 28, 2019
1 parent 3470fb4 commit 8484b73
Show file tree
Hide file tree
Showing 5 changed files with 21 additions and 18 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
@@ -1,3 +1,6 @@
## 4.3.1 - 2019-02-28
- fix package.json "browser" field

## 4.3.0 - 2019-02-27
- add UMD and commonjs builds

Expand Down
4 changes: 1 addition & 3 deletions build/rollup.config.js
Expand Up @@ -18,9 +18,7 @@ export default {
}),
commonjs({
namedExports: {
'node_modules/ethereumjs-util/dist/index.js': [ 'stripHexPrefix' ],
//@TODO `browser` field is used instead of `module`, can be fixed after merge https://github.com/rollup/rollup-plugin-node-resolve/pull/182
'node_modules/minterjs-util/dist/index.js': [ 'defineProperties '],
'node_modules/ethereumjs-util/dist/index.js': [ 'stripHexPrefix', 'padToEven' ],
}
}),
// globals(),
Expand Down
4 changes: 1 addition & 3 deletions build/rollup.uglify.config.js
Expand Up @@ -15,9 +15,7 @@ export default {
}),
commonjs({
namedExports: {
'node_modules/ethereumjs-util/dist/index.js': [ 'stripHexPrefix' ],
//@TODO `browser` field is used instead of `module`, can be fixed after merge https://github.com/rollup/rollup-plugin-node-resolve/pull/182
'node_modules/minterjs-util/dist/index.js': [ 'defineProperties '],
'node_modules/ethereumjs-util/dist/index.js': [ 'stripHexPrefix', 'padToEven' ],
}
}),
// globals(),
Expand Down
16 changes: 8 additions & 8 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

12 changes: 8 additions & 4 deletions package.json
@@ -1,9 +1,13 @@
{
"name": "minterjs-tx",
"version": "4.3.0",
"version": "4.3.1",
"description": "A simple module for creating, manipulating and signing Minter transactions",
"main": "dist/index.js",
"main": "dist/cjs/index.js",
"module": "src/index.js",
"browser": {
"./dist/cjs/index.js": "./dist/index.js"
},
"unpkg": "dist/index.min.js",
"files": [
"/src/",
"/dist/"
Expand Down Expand Up @@ -46,7 +50,7 @@
"bn.js": "^4.11.8",
"ethereumjs-util": "^6.1.0",
"elliptic": "github:xg-wang/elliptic#8a6bb93d751559db43036a2670825af215d0aa43",
"minterjs-util": "0.6.0",
"minterjs-util": "0.6.1",
"safe-buffer": "^5.1.2"
},
"devDependencies": {
Expand All @@ -62,7 +66,7 @@
"eslint-plugin-import": "^2.16.0",
"jest": "^24.1.0",
"pre-commit": "^1.2.2",
"rollup": "^1.3.1",
"rollup": "^1.3.2",
"rollup-plugin-babel": "^4.3.2",
"rollup-plugin-commonjs": "^9.2.1",
"rollup-plugin-json": "^3.1.0",
Expand Down

0 comments on commit 8484b73

Please sign in to comment.