Skip to content

Commit 9d89e72

Browse files
committed
Run clean before compile
1 parent fe5d236 commit 9d89e72

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

Diff for: package.json

+3-2
Original file line numberDiff line numberDiff line change
@@ -22,10 +22,11 @@
2222
},
2323
"scripts": {
2424
"clean": "rm -rf generated dist lib coverage",
25-
"postclean": "mkdir -p generated dist",
25+
"postclean": "mkdirp generated dist",
2626
"compile:browser": "browserify src/index.js --standalone td --outfile $npm_package_config_build_file -p headerify -t babelify",
2727
"compile:browser:test": "browserify regression/browser-helper.js --outfile $npm_package_config_test_bundle -t babelify -t coffeeify --extension=\".coffee\" -t require-globify --ignore-missing",
2828
"compile:node": "babel src -d lib",
29+
"precompile": "yarn clean",
2930
"compile": "yarn compile:node && yarn compile:browser && yarn compile:browser:test",
3031
"cover": "nyc --reporter=lcov --reporter=text-summary --require babel-core/register _mocha --ui mocha-given --reporter $npm_package_config_mocha_reporter --compilers coffee:coffee-script --recursive regression/node-helper.coffee regression/src",
3132
"cover:unit": "nyc --reporter=html yarn test:unit",
@@ -35,7 +36,7 @@
3536
"test:all": "yarn test:unit && yarn test && yarn test:browser && yarn test:example && yarn test:typescript",
3637
"test:browser": "testem ci",
3738
"test:unit": "teenytest",
38-
"test:ci": "yarn clean && yarn compile && yarn style && yarn test:all && echo \"All done!\"",
39+
"test:ci": "yarn compile && yarn style && yarn test:all && echo \"All done!\"",
3940
"test:typescript": "tsc --outDir generated/typescript -p regression/typescript && node generated/typescript/test.js",
4041
"test:example:webpack": "cd examples/webpack && npm install && npm test",
4142
"test:example:node": "cd examples/node && npm install && npm test",

0 commit comments

Comments
 (0)