patch-package and husky are both devDependencies, but they run on postinstall, which also applies when folks install their dependencies with npm install --production or npm install --omit=dev. prepare script instead of postinstall script is documented to only run when dev deps are installed, but this is currently bugged https://github.com/npm/cli/issues/4027
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
patch-package and husky are both devDependencies, but they run on postinstall, which also applies when folks install their dependencies with
npm install --production
ornpm install --omit=dev
.prepare
script instead ofpostinstall
script is documented to only run when dev deps are installed, but this is currently bugged https://github.com/npm/cli/issues/4027By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.