Skip to content

Commit

Permalink
Added babel build:dist command, switched to dist/index.js main entry …
Browse files Browse the repository at this point in the history
…point in package.json
  • Loading branch information
holgerd77 committed Mar 1, 2018
1 parent d8d5c06 commit 8c186f4
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 6 deletions.
7 changes: 7 additions & 0 deletions .babelrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"presets": [
[
"env"
]
]
}
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -64,4 +64,6 @@ build/Release
node_modules
package-lock.json

# Build folder
dist

16 changes: 10 additions & 6 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,19 +2,23 @@
"name": "ethereumjs-vm",
"version": "2.3.3",
"description": "An Ethereum VM implementation",
"main": "index.js",
"main": "dist/index.js",
"files": [
"dist"
],
"scripts": {
"coverage": "istanbul cover ./tests/tester.js -- -s",
"coveralls": "npm run coverage && coveralls <coverage/lcov.info",
"testVM": "node ./tests/tester -v",
"testState": "node ./tests/tester -s",
"testBlockchain": "node --stack-size=1500 ./tests/tester -b --excludeDir='GeneralStateTests'",
"testBlockchainGeneralStateTests": "node --stack-size=1500 ./tests/tester -b --dir='GeneralStateTests'",
"testBlockchainBlockGasLimit": "node --stack-size=1500 ./tests/tester -b --dir='bcBlockGasLimitTest'",
"testBlockchainValid": "node --stack-size=1500 ./tests/tester -b --dir='bcValidBlockTest'",
"testBlockchainTotalDifficulty": "node --stack-size=1500 ./tests/tester -b --dir='bcTotalDifficultyTest'",
"lint": "standard",
"test": "node ./tests/tester -a",
"coverage": "istanbul cover ./tests/tester.js -- -s",
"coveralls": "npm run coverage && coveralls <coverage/lcov.info"
"lint": "standard",
"build:dist": "babel lib/ -d dist/"
},
"repository": {
"type": "git",
Expand All @@ -38,8 +42,8 @@
"safe-buffer": "^5.1.1"
},
"devDependencies": {
"babel-preset-es2015": "^6.24.0",
"babelify": "^7.3.0",
"babel-cli": "^6.26.0",
"babel-preset-env": "^1.6.1",
"coveralls": "^3.0.0",
"ethereumjs-blockchain": "~2.1.0",
"ethereumjs-testing": "https://github.com/ethereumjs/ethereumjs-testing",
Expand Down

0 comments on commit 8c186f4

Please sign in to comment.