Skip to content
This repository was archived by the owner on Oct 30, 2024. It is now read-only.

Commit b4c1c2e

Browse files
committed
Switched build to root directory, excluded root JS files in .gitignore
1 parent f69a16f commit b4c1c2e

File tree

2 files changed

+12
-7
lines changed

2 files changed

+12
-7
lines changed

.gitignore

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,4 +35,8 @@ package-lock.json
3535
.node_repl_history
3636

3737
# Build folder
38-
dist
38+
# Update 2018-08-07: currently build is done to / (before: dist/) due to
39+
# backwards compatibility reasons, JS files from root and root test/ folder
40+
# are excluded
41+
/*.js
42+
/test

package.json

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,18 +2,19 @@
22
"name": "ethereumjs-wallet",
33
"version": "0.6.1",
44
"description": "Utilities for handling Ethereum keys",
5-
"main": "dist/index.js",
5+
"main": "index.js",
66
"files": [
7-
"dist"
7+
"/*.js",
8+
"test/"
89
],
910
"scripts": {
1011
"coverage": "istanbul cover _mocha",
11-
"coveralls": "npm run coverage && coveralls <coverage/lcov.info",
12+
"coveralls": "npm run build:dist && npm run coverage && coveralls <coverage/lcov.info",
1213
"lint": "standard",
1314
"prepublishOnly": "npm run lint && npm run test:build",
1415
"test": "mocha ./src/test/*.js",
15-
"test:build": "npm run build:dist && mocha ./dist/test/*.js",
16-
"build:dist": "babel *.js test/*.js -d dist/"
16+
"test:build": "npm run build:dist && mocha ./test/*.js",
17+
"build:dist": "babel src/ -d ."
1718
},
1819
"repository": {
1920
"type": "git",
@@ -54,7 +55,7 @@
5455
"it"
5556
],
5657
"ignore": [
57-
"dist/**"
58+
"./*.js"
5859
]
5960
}
6061
}

0 commit comments

Comments
 (0)