Skip to content

Commit 38ff43d

Browse files
committed
Ignore __tests__ folders in babel transpilation
1 parent 3ffc640 commit 38ff43d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

package.json

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

0 commit comments

Comments
 (0)