From f08515b1f15cbcf47f956a456c60b9178b92b670 Mon Sep 17 00:00:00 2001 From: Nicolas Gallagher Date: Tue, 12 Sep 2017 15:46:54 -0700 Subject: [PATCH] Avoid compiling tests --- package.json | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index e3445e04..afee952b 100644 --- a/package.json +++ b/package.json @@ -12,7 +12,8 @@ "scripts": { "benchmark": "cd benchmarks && yarn && webpack && open index.html", "build": "webpack --config webpack.config.js --sort-assets-by --progress", - "compile": "del ./dist && mkdir dist && babel src -d dist --ignore **/__tests__", + "clean-dist": "del ./dist && mkdir dist", + "compile": "babel src -d dist --ignore *-test.js", "docs:build": "cd docs && yarn build", "docs:start": "cd docs && yarn && yarn start", "docs:release": "cd docs && yarn release", @@ -24,7 +25,7 @@ "lint": "yarn lint:cmd -- babel benchmarks docs src", "lint:cmd": "eslint --ignore-path .gitignore --fix", "precommit": "lint-staged", - "release": "yarn lint && yarn test && yarn compile && yarn build && npm publish", + "release": "yarn clean-dist && yarn lint && yarn test && yarn compile && yarn build && npm publish", "test": "flow && jest" }, "babel": {