From 38ff43d4685aa23e9bd8537b3f884a74d0742cb7 Mon Sep 17 00:00:00 2001 From: AaronCCWong Date: Tue, 15 May 2018 14:54:08 -0400 Subject: [PATCH] Ignore __tests__ folders in babel transpilation --- package.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index 959e6e75832..c29b895a413 100644 --- a/package.json +++ b/package.json @@ -31,8 +31,8 @@ "build:clean": "rm -rf ./dist && mkdir ./dist", "build:cp": "cp README.md LICENSE ./dist", "build:package-json": "node ./resources/copy-package-json.js", - "build:cjs": "babel src --optional runtime --ignore __tests__ --out-dir dist/", - "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", + "build:cjs": "babel src --optional runtime --ignore '**/__tests__' --out-dir dist/", + "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", "build:flow": "for file in $(find ./src -name '*.js' -not -path '*/__tests__*'); do cp \"$file\" `echo \"$file\" | sed 's/\\/src\\//\\/dist\\//g'`.flow; done", "preversion": ". ./resources/checkgit.sh && npm test", "prepublishOnly": ". ./resources/prepublish.sh",