pnpm: readPackage hook can not effect scripts.postinstall
pnpm version: 5.15.0
I need to disable postinstall
script of one of the packages (but I can not use --ignore-script
as it effects all), so wanted to do this via readPackage
hook, but it doesn’t seem to have an effect, postinstall is still running.
Expected behavior:
I would expect that postinstal
l behaviour could be changed for particular package script via readPackage hook.
About this issue
- Original URL
- State: closed
- Created 3 years ago
- Comments: 16 (7 by maintainers)
Commits related to this issue
- feat: ignoring the build of specific dependencies close #3071 — committed to pnpm/pnpm by zkochan 3 years ago
- feat: ignoring the build of specific dependencies close #3071 — committed to pnpm/pnpm by zkochan 3 years ago
- feat: ignoring the build of specific dependencies close #3071 — committed to pnpm/pnpm by zkochan 3 years ago
- feat: ignoring the build of specific dependencies close #3071 — committed to pnpm/pnpm by zkochan 3 years ago
- feat: ignoring the build of specific dependencies (#3080) * feat: ignoring the build of specific dependencies close #3071 * test: add test for neverBuiltDependencies * docs: add changesets ... — committed to pnpm/pnpm by zkochan 3 years ago
We can add support for a new property for disabling specific package’s scripts. For instance:
this is a way too complex scenario. It will not work.