You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+6
Original file line number
Diff line number
Diff line change
@@ -144,6 +144,12 @@ module.exports = {
144
144
145
145
If you need to have multiple configuration files or just your-own configuration file, you install hooks manually from it by `npx simple-git-hooks ./my-config.js`.
146
146
147
+
### Note for `npm` package developers
148
+
149
+
Please do not add `postinstall: "npx simple-git-hooks"` script in your `package.json`. Or at least remove it before `npm publish`
150
+
151
+
It causes errors for end users of your package
152
+
147
153
### Uninstall simple-git-hooks
148
154
149
155
> Uninstallation will remove all the existing git hooks.
0 commit comments