Switched build to root directory, excluded root JS files in .gitignore

This commit is contained in:
holgerd77 2018-08-07 11:09:33 +02:00
parent f69a16ffb2
commit b4c1c2e3db
2 changed files with 12 additions and 7 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 ./src/test/*.js",
"test:build": "npm run build:dist && mocha ./dist/test/*.js",
"build:dist": "babel *.js test/*.js -d dist/"
"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"
]
}
}