Skip to content
This repository was archived by the owner on Jun 21, 2023. It is now read-only.

Commit 1ee3a84

Browse files
author
Tyler Brandt
authored
chore(publish): add prepare hook (optimizely#108)
Add [`prepare`](https://docs.npmjs.com/misc/scripts) hook to automatically test and build before publishing.
1 parent ad3d3de commit 1ee3a84

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

packages/optimizely-sdk/package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,8 @@
1818
"build-prod-umd": "webpack -p lib/index.browser.js dist/optimizely.browser.umd.min.js --output-library=optimizelyClient --output-library-target=umd",
1919
"lint": "eslint lib/**",
2020
"cover": "istanbul cover _mocha ./lib/*.tests.js ./lib/**/*.tests.js ./lib/**/**/*tests.js",
21-
"coveralls": "npm run cover -- --report lcovonly && cat ./coverage/lcov.info | coveralls"
21+
"coveralls": "npm run cover -- --report lcovonly && cat ./coverage/lcov.info | coveralls",
22+
"prepare": "npm test && npm run build"
2223
},
2324
"repository": {
2425
"type": "git",

0 commit comments

Comments
 (0)