Skip to content

Commit 350a7d2

Browse files
Remove "--optional runtime" that was dropped in Babel v6 (#1485)
1 parent 76e37d5 commit 350a7d2

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,8 @@
3434
"build:clean": "rm -rf ./dist && mkdir ./dist",
3535
"build:cp": "cp README.md LICENSE ./dist",
3636
"build:package-json": "node ./resources/copy-package-json.js",
37-
"build:cjs": "babel src --optional runtime --ignore '**/__tests__' --out-dir dist/",
38-
"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",
37+
"build:cjs": "babel src --ignore '**/__tests__' --out-dir dist/",
38+
"build:mjs": "BABEL_MODULES=1 babel src --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",
3939
"build:flow": "for file in $(find ./src -name '*.js' -not -path '*/__tests__*'); do cp \"$file\" `echo \"$file\" | sed 's/\\/src\\//\\/dist\\//g'`.flow; done",
4040
"preversion": ". ./resources/checkgit.sh && npm test",
4141
"prepublishOnly": ". ./resources/prepublish.sh",

resources/benchmark.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ const fs = require('fs');
1313
const path = require('path');
1414

1515
// Like build:cjs, but includes __tests__ and copies other files.
16-
const BUILD_CMD = 'babel src --optional runtime --copy-files --out-dir dist/';
16+
const BUILD_CMD = 'babel src --copy-files --out-dir dist/';
1717
const LOCAL = 'local';
1818
function LOCAL_DIR(...paths) {
1919
return path.join(__dirname, '..', ...paths);

0 commit comments

Comments
 (0)