Merge pull request #65 from ethereumjs/fix-dist-import-issue

Fix dist import issue
This commit is contained in:
Holger Drewes 2018-08-08 10:53:02 +02:00 committed by GitHub
commit efd2012e44
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
8 changed files with 13 additions and 8 deletions

6
.gitignore vendored
View File

@ -35,4 +35,8 @@ package-lock.json
.node_repl_history
# Build folder
dist
# Update 2018-08-07: currently build is done to / (before: dist/) due to
# backwards compatibility reasons, JS files from root and root test/ folder
# are excluded
/*.js
/test

View File

@ -2,18 +2,19 @@
"name": "ethereumjs-wallet",
"version": "0.6.1",
"description": "Utilities for handling Ethereum keys",
"main": "dist/index.js",
"main": "index.js",
"files": [
"dist"
"/*.js",
"test/"
],
"scripts": {
"coverage": "istanbul cover _mocha",
"coveralls": "npm run coverage && coveralls <coverage/lcov.info",
"coveralls": "npm run build:dist && npm run coverage && coveralls <coverage/lcov.info",
"lint": "standard",
"prepublishOnly": "npm run lint && npm run test:build",
"test": "mocha ./test/*.js",
"test:build": "npm run build:dist && mocha ./dist/test/*.js",
"build:dist": "babel *.js test/*.js -d dist/"
"test": "mocha ./src/test/*.js",
"test:build": "npm run build:dist && mocha ./test/*.js",
"build:dist": "babel src/ -d ."
},
"repository": {
"type": "git",
@ -54,7 +55,7 @@
"it"
],
"ignore": [
"dist/**"
"./*.js"
]
}
}