We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6a7d242 commit 03d2a8dCopy full SHA for 03d2a8d
package.json
@@ -13,7 +13,7 @@
13
"format": "prettier --write --single-quote --print-width 100 --trailing-comma all \"src/**/*.js\"",
14
"lint": "eslint src",
15
"precommit": "lint-staged",
16
- "preversion": "npm run lint && npm test && npm run build && npm run bundle && git add dist/ && git commit -m 'publish: Distribution'",
+ "preversion": "npm run lint && npm test && npm run build && npm run bundle && git add dist/ && git diff --quiet --exit-code --cached || git commit -n -m 'publish: Distribution'",
17
"prepublish": "npm run build",
18
"test": "jest",
19
"start": "webpack-dev-server --inline --content-base examples/"
0 commit comments