Skip to content

Commit 03d2a8d

Browse files
committed
Fix dist building
1 parent 6a7d242 commit 03d2a8d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
"format": "prettier --write --single-quote --print-width 100 --trailing-comma all \"src/**/*.js\"",
1414
"lint": "eslint src",
1515
"precommit": "lint-staged",
16-
"preversion": "npm run lint && npm test && npm run build && npm run bundle && git add dist/ && git commit -m 'publish: Distribution'",
16+
"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'",
1717
"prepublish": "npm run build",
1818
"test": "jest",
1919
"start": "webpack-dev-server --inline --content-base examples/"

0 commit comments

Comments
 (0)