|
24 | 24 | "watch": "babel-node ./resources/watch.js",
|
25 | 25 | "test": "npm run lint && npm run check && npm run testonly",
|
26 | 26 | "test:ci": "npm run lint && npm run check && npm run testonly:coveralls",
|
27 |
| - "t": "mocha --require babel-register --require babel-polyfill", |
28 |
| - "testonly": "mocha --require babel-register --require babel-polyfill --check-leaks --full-trace --timeout 15000 src/**/__tests__/**/*-test.js", |
| 27 | + "t": "mocha --require @babel/register --require @babel/polyfill", |
| 28 | + "testonly": "mocha --require @babel/register --require @babel/polyfill --check-leaks --full-trace --timeout 15000 src/**/__tests__/**/*-test.js", |
29 | 29 | "testonly:cover": "nyc --reporter html --reporter text-summary -- npm run testonly",
|
30 | 30 | "testonly:coveralls": "nyc --silent -- npm run testonly && nyc report --reporter text-lcov | coveralls",
|
31 | 31 | "lint": "eslint --rulesdir ./resources/lint src || (printf '\\033[33mTry: \\033[7m npm run lint -- --fix \\033[0m\\n' && exit 1)",
|
|
37 | 37 | "build:clean": "rm -rf ./dist && mkdir ./dist",
|
38 | 38 | "build:cp": "cp README.md LICENSE ./dist",
|
39 | 39 | "build:package-json": "node ./resources/copy-package-json.js",
|
40 |
| - "build:cjs": "babel src --optional runtime --ignore __tests__ --out-dir dist/", |
41 |
| - "build:mjs": "BABEL_MODULES=1 babel src --optional runtime --ignore __tests__ --out-dir dist/module/ && for file in $(find dist/module -name '*.js'); do mv \"$file\" `echo \"$file\" | sed 's/dist\\/module/dist/g; s/.js$/.mjs/g'`; done && rm -rf dist/module", |
| 40 | + "build:cjs": "babel src --optional runtime --ignore '**/__tests__' --out-dir dist/", |
| 41 | + "build:mjs": "BABEL_MODULES=1 babel src --optional runtime --ignore '**/__tests__' --out-dir dist/module/ && for file in $(find dist/module -name '*.js'); do mv \"$file\" `echo \"$file\" | sed 's/dist\\/module/dist/g; s/.js$/.mjs/g'`; done && rm -rf dist/module", |
42 | 42 | "build:flow": "for file in $(find ./src -name '*.js' -not -path '*/__tests__*'); do cp \"$file\" `echo \"$file\" | sed 's/\\/src\\//\\/dist\\//g'`.flow; done",
|
43 | 43 | "preversion": ". ./resources/checkgit.sh && npm test",
|
44 | 44 | "prepublishOnly": ". ./resources/prepublish.sh",
|
|
48 | 48 | "iterall": "^1.2.2"
|
49 | 49 | },
|
50 | 50 | "devDependencies": {
|
51 |
| - "babel-cli": "6.26.0", |
| 51 | + "@babel/cli": "^7.0.0-beta.46", |
| 52 | + "@babel/core": "^7.0.0-beta.46", |
| 53 | + "@babel/node": "^7.0.0-beta.46", |
| 54 | + "@babel/plugin-proposal-class-properties": "^7.0.0-beta.46", |
| 55 | + "@babel/plugin-proposal-object-rest-spread": "^7.0.0-beta.46", |
| 56 | + "@babel/plugin-syntax-async-generators": "^7.0.0-beta.46", |
| 57 | + "@babel/plugin-transform-classes": "^7.0.0-beta.46", |
| 58 | + "@babel/plugin-transform-destructuring": "^7.0.0-beta.46", |
| 59 | + "@babel/plugin-transform-flow-strip-types": "^7.0.0-beta.46", |
| 60 | + "@babel/plugin-transform-modules-commonjs": "^7.0.0-beta.46", |
| 61 | + "@babel/plugin-transform-spread": "^7.0.0-beta.46", |
| 62 | + "@babel/polyfill": "^7.0.0-beta.46", |
| 63 | + "@babel/preset-env": "^7.0.0-beta.46", |
| 64 | + "@babel/register": "^7.0.0-beta.46", |
52 | 65 | "babel-eslint": "8.2.3",
|
53 | 66 | "babel-plugin-syntax-async-functions": "6.13.0",
|
54 |
| - "babel-plugin-syntax-async-generators": "6.13.0", |
55 |
| - "babel-plugin-transform-class-properties": "6.24.1", |
56 |
| - "babel-plugin-transform-flow-strip-types": "6.22.0", |
57 |
| - "babel-plugin-transform-object-rest-spread": "6.26.0", |
58 |
| - "babel-polyfill": "^6.26.0", |
59 |
| - "babel-preset-env": "^1.7.0", |
60 |
| - "babel-register": "^6.26.0", |
61 | 67 | "beautify-benchmark": "0.2.4",
|
62 | 68 | "benchmark": "2.1.4",
|
63 | 69 | "chai": "4.1.2",
|
|
0 commit comments