Skip to content

Commit ea619a9

Browse files
committed
refine "prepublishOnly" script
1 parent 33f73a8 commit ea619a9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
],
1010
"scripts": {
1111
"prepare": "husky install",
12-
"prepublishOnly": "npm run build",
12+
"prepublishOnly": "git diff HEAD --exit-code && npm run build",
1313
"prebuild": "node -e \"fs.rmSync('lib/', { recursive: true, force: true })\"",
1414
"build": "tsc",
1515
"format": "prettier --check ./**/*.[jt]s",

0 commit comments

Comments
 (0)