|
Is there a CLI command for PNPM I --allow-all-builds or generate a list of apps that need builds? How can I do this programmatically for docker builds? |
Replies: 5 comments 9 replies
|
Would be great if we could apply a --filter to the approve-builds to specify the package we want to run the script for in a Dockerfile. |
|
+1 I just got hit by this approve-builds thing, how is anyone automating this? |
|
No, it doesn't make sense to add a flag that would allow all the packages as the whole point is to allow specific verified packages. There is a flag that allow listing which package can run scripts: https://pnpm.io/cli/add#--allow-build |
|
Are there any fixes for this? Putting the config into pnpm-workspace.yaml seems like a strange decision. Now it messes things up with Snyk, as it thinks there are workspaces in place. Please fix this feature - the only current solution is to downgrade pnpm! |
|
Found a simple and clean way to handle PNPM build approvals in pipelines or package.json scripts: for p in svelte-preprocess esbuild; do pnpm add $p --allow-build=$p; done && pnpm install |
@thenitai, there is already a flag - https://pnpm.io/next/settings#dangerouslyallowallbuilds
You could also run
pnpm install --dangerously-allow-all-builds