2019-05-15 01:25:46 +03:00
|
|
|
{
|
2020-06-13 06:18:23 +03:00
|
|
|
"name": "ethers",
|
2019-05-15 01:25:46 +03:00
|
|
|
"private": true,
|
2019-09-08 09:46:53 +03:00
|
|
|
"repository": {
|
|
|
|
"type": "git",
|
|
|
|
"url": "git://github.com/ethers-io/ethers.js.git"
|
|
|
|
},
|
2019-05-15 01:25:46 +03:00
|
|
|
"scripts": {
|
2020-09-17 10:40:55 +03:00
|
|
|
"preinstall": "npm run bootstrap-hoist",
|
2020-09-23 05:54:48 +03:00
|
|
|
"postinstall": "node ./misc/admin/lib/cmds/update-depgraph && npm run bootstrap-link",
|
2020-09-17 10:40:55 +03:00
|
|
|
"bootstrap-hoist": "node ./misc/admin/lib/cmds/hoist",
|
|
|
|
"bootstrap-link": "node ./misc/admin/lib/cmds/link",
|
2020-09-23 05:54:48 +03:00
|
|
|
"auto-build": "node ./misc/admin/lib/cmds/set-build-option cjs && npm run build -- -w",
|
|
|
|
"auto-build-esm": "node ./misc/admin/lib/cmds/set-build-option esm && npm run build -- -w",
|
2019-05-15 01:25:46 +03:00
|
|
|
"build": "tsc --build ./tsconfig.project.json",
|
2020-09-23 05:54:48 +03:00
|
|
|
"_build-cjs": "node ./misc/admin/lib/cmds/echo 'Building CommonJS libraries...' && node ./misc/admin/lib/cmds/set-build-option cjs && npm run build",
|
|
|
|
"_build-esm": "node ./misc/admin/lib/cmds/echo 'Building ES modules libraries...' && node ./misc/admin/lib/cmds/set-build-option esm && npm run build",
|
|
|
|
"clean": "node ./misc/admin/lib/cmds/echo 'Cleaning all build files...' && rm -rf packages/*/lib packages/*/lib.esm packages/*/node_modules packages/*/dist/*.js packages/*/tsconfig.tsbuildinfo node_modules .package_node_modules package-lock.json",
|
|
|
|
"_test-esm-dist": "rollup -c rollup-tests.config.js --configModule",
|
|
|
|
"_test-umd-dist": "rollup -c rollup-tests.config.js",
|
2020-07-18 10:58:19 +03:00
|
|
|
"_test-browser-umd": "karma start --single-run --browsers HeadlessLittleLiar karma-umd.conf.js",
|
|
|
|
"_test-browser-esm": "karma start --single-run --browsers HeadlessLittleLiar karma-esm.conf.js",
|
2020-09-23 05:54:48 +03:00
|
|
|
"test-browser-umd": "npm run _test-umd-dist && npm run _test-browser-umd",
|
|
|
|
"test-browser-esm": "npm run _test-esm-dist && npm run _test-browser-esm",
|
|
|
|
"test-coverage": "nyc --report-dir=output --reporter=lcov --reporter=text mocha --reporter ./packages/tests/reporter-keepalive ./packages/tests/lib/test-*.js | tee output/summary.txt",
|
2020-07-13 13:48:33 +03:00
|
|
|
"test-node": "mocha --no-colors --reporter ./packages/tests/reporter ./packages/tests/lib/test-*.js",
|
2020-09-23 22:53:42 +03:00
|
|
|
"test-react": "npm run _test-umd-dist && npm run build-dist-shims && pushd misc/ReactNativeTestApp && ./run-tests.sh && popd",
|
2020-08-21 00:09:30 +03:00
|
|
|
"test": "npm run build-all && npm run test-node",
|
2019-10-19 14:00:39 +03:00
|
|
|
"build-docs": "flatworm docs.wrm docs",
|
2020-09-23 05:54:48 +03:00
|
|
|
"serve-docs": "node ./misc/admin/lib/cmds/serve-docs.js",
|
2020-10-05 22:46:12 +03:00
|
|
|
"upload-docs": " node ./admin/cmds/upload-docs.js",
|
2020-09-23 05:54:48 +03:00
|
|
|
"spell-check": "node ./misc/admin/lib/cmds/spell-check.js",
|
|
|
|
"build-dist-ancillary": "node ./misc/admin/lib/cmds/set-build-option esm && rollup -c rollup-ancillary.config.js",
|
|
|
|
"build-dist-shims": "browserify ./packages/shims/src/index.js -o ./packages/shims/dist/index.js && uglifyjs --compress --mangle --output ./packages/shims/dist/index.min.js -- ./packages/shims/dist/index.js",
|
|
|
|
"build-dist-umd": "node ./misc/admin/lib/cmds/set-build-option cjs browser-lang-all && rollup -c && mv ./packages/ethers/dist/ethers.umd.min.js ./packages/ethers/dist/ethers-all.umd.min.js && node ./misc/admin/lib/cmds/set-build-option cjs && rollup -c",
|
|
|
|
"build-dist-esm": "node ./misc/admin/lib/cmds/set-build-option esm browser-lang-all && rollup -c --configModule && mv ./packages/ethers/dist/ethers.esm.min.js ./packages/ethers/dist/ethers-all.esm.min.js && node ./misc/admin/lib/cmds/set-build-option esm && rollup -c --configModule",
|
|
|
|
"_build-dist": "node ./misc/admin/lib/cmds/echo 'Building dist files...' && npm run build-dist-shims && npm run build-dist-esm && npm run build-dist-ancillary && npm run build-dist-umd",
|
|
|
|
"build-dist": "node ./misc/admin/lib/cmds/npm-skip-node8.js || npm run _build-dist",
|
|
|
|
"build-libs": "node ./misc/admin/lib/cmds/update-exports.js && npm run _build-cjs && npm run _build-esm && node ./misc/admin/lib/cmds/set-build-option cjs && node packages/asm/generate.js && chmod 755 packages/*/lib/bin/*.js",
|
|
|
|
"build-all": "npm run build-libs && npm run build-dist",
|
2020-09-26 10:27:47 +03:00
|
|
|
"update-versions": "npm run clean && npm install && npm run spell-check && npm run build-all && node ./misc/admin/lib/cmds/bump-versions && npm run build-all && node ./misc/admin/lib/cmds/update-hashes && node ./misc/admin/lib/cmds/update-changelog",
|
2020-10-03 09:20:50 +03:00
|
|
|
"publish-all": "node ./misc/admin/lib/cmds/publish",
|
2020-09-23 05:54:48 +03:00
|
|
|
"TODO-sync-github": "node ./admin/cmds/cache-github"
|
2019-05-15 01:25:46 +03:00
|
|
|
},
|
|
|
|
"devDependencies": {
|
2020-07-13 13:48:33 +03:00
|
|
|
"@erquhart/rollup-plugin-node-builtins": "2.1.5",
|
2019-05-15 01:25:46 +03:00
|
|
|
"@types/assert": "^1.4.1",
|
|
|
|
"@types/mocha": "^5.2.0",
|
2019-09-06 19:25:17 +03:00
|
|
|
"@types/node": "^12.7.4",
|
2020-09-23 05:54:48 +03:00
|
|
|
"@types/semver": "^7.3.4",
|
2019-05-15 01:25:46 +03:00
|
|
|
"aes-js": "3.0.0",
|
2020-01-07 02:47:20 +03:00
|
|
|
"aws-sdk": "2.137.0",
|
2020-09-23 05:54:48 +03:00
|
|
|
"browserify": "16.2.3",
|
2019-05-15 01:25:46 +03:00
|
|
|
"diff": "4.0.1",
|
2020-10-23 03:01:18 +03:00
|
|
|
"flatworm": "0.0.2-beta.5",
|
2020-09-23 05:54:48 +03:00
|
|
|
"jison": "^0.4.18",
|
2020-07-18 10:58:19 +03:00
|
|
|
"karma": "5.1.0",
|
2019-11-24 13:13:37 +03:00
|
|
|
"karma-chrome-launcher": "3.1.0",
|
2020-07-18 10:58:19 +03:00
|
|
|
"karma-mocha": "2.0.1",
|
2020-09-23 05:54:48 +03:00
|
|
|
"libnpmpublish": "3.0.1",
|
2020-03-22 21:57:17 +03:00
|
|
|
"mocha": "^7.1.1",
|
2020-07-13 13:48:33 +03:00
|
|
|
"nyc": "15.1.0",
|
2019-08-25 09:39:20 +03:00
|
|
|
"rollup": "1.20.1",
|
|
|
|
"rollup-plugin-commonjs": "10.0.2",
|
|
|
|
"rollup-plugin-json": "4.0.0",
|
2020-02-26 12:48:12 +03:00
|
|
|
"rollup-plugin-node-globals": "1.4.0",
|
2019-08-25 09:39:20 +03:00
|
|
|
"rollup-plugin-node-resolve": "5.2.0",
|
2020-08-21 00:22:41 +03:00
|
|
|
"rollup-plugin-terser": "^7.0.0",
|
2019-11-24 13:13:37 +03:00
|
|
|
"rollup-pluginutils": "2.8.1",
|
2020-05-21 07:07:41 +03:00
|
|
|
"scrypt-js": "3.0.1",
|
2019-11-24 13:13:37 +03:00
|
|
|
"semver": "^5.6.0",
|
2020-10-05 22:46:12 +03:00
|
|
|
"typescript": "3.8.3",
|
|
|
|
"uglify-es": "3.3.9"
|
2020-09-17 10:40:55 +03:00
|
|
|
},
|
|
|
|
"dependencies": {
|
|
|
|
"@babel/parser": "7.8.4",
|
|
|
|
"@babel/types": "7.8.3",
|
|
|
|
"@ledgerhq/hw-app-eth": "5.3.0",
|
|
|
|
"@ledgerhq/hw-transport": "5.3.0",
|
|
|
|
"@ledgerhq/hw-transport-u2f": "5.3.0",
|
|
|
|
"@types/mocha": "^5.2.0",
|
|
|
|
"aes-js": "3.0.0",
|
|
|
|
"bech32": "1.1.4",
|
|
|
|
"bn.js": "^4.4.0",
|
|
|
|
"browserify-zlib": "^0.2.0",
|
|
|
|
"elliptic": "6.5.3",
|
|
|
|
"hash.js": "1.1.3",
|
|
|
|
"js-sha3": "0.5.7",
|
|
|
|
"mime-types": "2.1.11",
|
|
|
|
"scrypt-js": "3.0.1",
|
2020-09-23 05:54:48 +03:00
|
|
|
"solc": "0.7.1",
|
2020-09-17 10:40:55 +03:00
|
|
|
"solidity-parser-antlr": "^0.3.2",
|
|
|
|
"ws": "7.2.3"
|
2019-05-15 01:25:46 +03:00
|
|
|
}
|
|
|
|
}
|