File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change 34
34
"build:clean" : " rm -rf ./dist && mkdir ./dist" ,
35
35
"build:cp" : " cp README.md LICENSE ./dist" ,
36
36
"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" ,
39
39
"build:flow" : " for file in $(find ./src -name '*.js' -not -path '*/__tests__*'); do cp \" $file\" `echo \" $file\" | sed 's/\\ /src\\ //\\ /dist\\ //g'`.flow; done" ,
40
40
"preversion" : " . ./resources/checkgit.sh && npm test" ,
41
41
"prepublishOnly" : " . ./resources/prepublish.sh" ,
Original file line number Diff line number Diff line change @@ -13,7 +13,7 @@ const fs = require('fs');
13
13
const path = require ( 'path' ) ;
14
14
15
15
// 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/' ;
17
17
const LOCAL = 'local' ;
18
18
function LOCAL_DIR ( ...paths ) {
19
19
return path . join ( __dirname , '..' , ...paths ) ;
You can’t perform that action at this time.
0 commit comments