File tree Expand file tree Collapse file tree 1 file changed +1
-1
lines changed Expand file tree Collapse file tree 1 file changed +1
-1
lines changed Original file line number Diff line number Diff line change 66
66
},
67
67
"scripts" : {
68
68
"build" : " npm run build-cjs && npm run build-mjs" ,
69
- "build-cjs" : " rimraf lib && babel src --ignore __tests__,__mocks__ -d lib && COPY_TO_FOLDER=lib npm run build-flow" ,
69
+ "build-cjs" : " rimraf lib && BABEL_ENV=cjs babel src --ignore __tests__,__mocks__ -d lib && COPY_TO_FOLDER=lib npm run build-flow" ,
70
70
"build-mjs" : " rimraf mjs && BABEL_ENV=mjs babel src --ignore __tests__,__mocks__ -d mjs && yarn build-mjs-rename && COPY_TO_FOLDER=mjs npm run build-flow" ,
71
71
"build-mjs-rename" : " find ./mjs -name \" *.js\" -exec bash -c 'mv \" $1\" \" ${1%.js}\" .mjs' - '{}' \\ ;" ,
72
72
"build-flow" : " find ./src -name '*.js' -not -path '*/__*' | while read filepath; do cp $filepath `echo ./${COPY_TO_FOLDER:-lib}$filepath | sed 's/.\\ /src\\ //\\ //g'`.flow; done" ,
You can’t perform that action at this time.
0 commit comments