Skip to content

Commit c2dfccf

Browse files
Exclude __fixtures__ from dist (#1494)
1 parent f4dee28 commit c2dfccf

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

package.json

+3-3
Original file line numberDiff line numberDiff line change
@@ -34,9 +34,9 @@
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 --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-
"build:flow": "for file in $(find ./src -name '*.js' -not -path '*/__tests__*'); do cp \"$file\" `echo \"$file\" | sed 's/\\/src\\//\\/dist\\//g'`.flow; done",
37+
"build:cjs": "babel src --ignore 'src/__fixtures__,**/__tests__' --out-dir dist/",
38+
"build:mjs": "BABEL_MODULES=1 babel src --ignore 'src/__fixtures__,**/__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+
"build:flow": "for file in $(find ./src -name '*.js' -not -path '*/__fixtures__*' -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",
4242
"gitpublish": ". ./resources/gitpublish.sh"

0 commit comments

Comments
 (0)