Correct workflow for "strictDepBuilds" and "ignoredBuiltDependencies" #11270
AnderssonPeter
started this conversation in
General
Replies: 1 comment 3 replies
|
Use the new allowBuilds setting instead. Usage example: allowBuilds:
esbuild: true
core-js: false
nx@21.6.4 || 21.6.5: true |
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
First off I hope my understanding is correct that
ignoredBuiltDependenciesstops a package from running it's post install script and stops pnpm from complaning about it when running apnpm install?When I run

pnpm install, it correctly warns me that some packages tried to run a post install script, great!So I add them to it to
pnpm-workspace.yaml->ignoredBuiltDependenciesand runpnpm installagain, but it still warns me about the package when I run the nextpnpm install?So what am I supposed to run after pnpm has informed me about a post install script? (I want the list of "ignored" packages to be stored in git so that each person doesn't have to have it's own list of ignored packages...)
The only thing I have found is to remove my node_modules and run a clean
pnpm installbut that seems a bit absurd to each time I add a new package that has a post install script i want to ignore.pnpm config get ignored-built-dependencies --jsonreflects mypnpm-workspace.yaml->ignoredBuiltDependencieschanges so pnpm seems to know about them?All reactions