Skip to content

Commit e351a97

Browse files
committed
[meta] fix scripts to use prepublishOnly
1 parent 8f23366 commit e351a97

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,8 @@
2828
"get-version": "node -e \"console.log(require('./package.json').version)\"",
2929
"update-readme": "sed -i.bak 's/\\/master\\.svg/\\/v'$(npm --silent run get-version)'.svg/g' README.md",
3030
"restore-readme": "mv README.md.bak README.md",
31-
"prepublish": "in-publish && npm run update-readme || not-in-publish",
31+
"prepublish": "not-in-publish || npm run prepublishOnly",
32+
"prepublishOnly": "npm run update-readme",
3233
"postpublish": "npm run restore-readme"
3334
},
3435
"pre-commit": [

0 commit comments

Comments
 (0)