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
Hi, in my npm packages i always use NPM script "prepare": "husky install"
But this forces me to do npm pkg delete scripts.prepare in CI
How can i properly define NPM scripts to ensure that hooks are installed only when developing locally and are not installed when packaging or installing a package as a dependency?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hi, in my npm packages i always use NPM script
"prepare": "husky install"
But this forces me to do
npm pkg delete scripts.prepare
in CIHow can i properly define NPM scripts to ensure that hooks are installed only when developing locally and are not installed when packaging or installing a package as a dependency?
Beta Was this translation helpful? Give feedback.
All reactions