Skip to content

Commit

Permalink
Do build as part of precommit
Browse files Browse the repository at this point in the history
  • Loading branch information
rjerue committed May 2, 2019
1 parent eb0eae4 commit 253a14a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion package.json
Expand Up @@ -24,12 +24,13 @@
"test:auto": "./node_modules/.bin/jest --watch",
"build:prod": "NODE_ENV=production rollup -c",
"build:dev": "NODE_ENV=development rollup -c",
"build": "yarn build:dev && yarn build:prod",
"prepublishOnly": "npm run release",
"release": "npm run build:dev && npm run build:prod"
},
"husky": {
"hooks": {
"pre-commit": "yarn lint && yarn test"
"pre-commit": "yarn lint && yarn test && yarn build"
}
},
"dependencies": {
Expand Down

0 comments on commit 253a14a

Please sign in to comment.