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

Commit 99b5d3d

Browse files
committed
Switched to babel ES5 build in dist folder for package distribution
1 parent 01382b1 commit 99b5d3d

File tree

3 files changed

+23
-3
lines changed

3 files changed

+23
-3
lines changed

.babelrc

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
{
2+
"presets": [
3+
[
4+
"env"
5+
]
6+
]
7+
}

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,3 +33,6 @@ package-lock.json
3333

3434
# Optional REPL history
3535
.node_repl_history
36+
37+
# Build folder
38+
dist

package.json

Lines changed: 13 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,18 @@
22
"name": "ethereumjs-wallet",
33
"version": "0.6.0",
44
"description": "Utilities for handling Ethereum keys",
5-
"main": "index.js",
5+
"main": "dist/index.js",
6+
"files": [
7+
"dist"
8+
],
69
"scripts": {
710
"coverage": "istanbul cover _mocha",
811
"coveralls": "npm run coverage && coveralls <coverage/lcov.info",
912
"lint": "standard",
10-
"prepublish": "npm run lint && npm run test",
11-
"test": "mocha ./test/**/*.js"
13+
"prepublishOnly": "npm run lint && npm run test:build",
14+
"test": "mocha ./test/*.js",
15+
"test:build": "npm run build:dist && mocha ./dist/test/*.js",
16+
"build:dist": "babel *.js test/*.js -d dist/"
1217
},
1318
"repository": {
1419
"type": "git",
@@ -36,6 +41,8 @@
3641
"uuid": "^3.2.1"
3742
},
3843
"devDependencies": {
44+
"babel-cli": "^6.26.0",
45+
"babel-preset-env": "^1.6.1",
3946
"coveralls": "^3.0.0",
4047
"istanbul": "^0.4.5",
4148
"mocha": "^5.0.0",
@@ -45,6 +52,9 @@
4552
"globals": [
4653
"describe",
4754
"it"
55+
],
56+
"ignore": [
57+
"dist/**"
4858
]
4959
}
5060
}

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy