Skip to content

Commit a852d85

Browse files
committed
Separate test and testonly, add prepublish rule to ensure built files are published
1 parent cc1e550 commit a852d85

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

package.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,9 @@
3030
"mocha": "--require scripts/mocha-bootload src/**/__tests__/**/*.js"
3131
},
3232
"scripts": {
33-
"pretest": "npm run lint",
34-
"test": "mocha $npm_package_options_mocha && npm run check",
33+
"prepublish": "npm run build",
34+
"test": "npm run lint && npm run check && mocha $npm_package_options_mocha",
35+
"testonly": "mocha $npm_package_options_mocha",
3536
"lint": "eslint src",
3637
"check": "flow check",
3738
"cover": "babel-node node_modules/.bin/isparta cover --report html node_modules/.bin/_mocha -- $npm_package_options_mocha",

0 commit comments

Comments
 (0)