Skip to content

approve-builds should have a runtime flag equivalent #9102

@hood

Description

@hood

Contribution

Describe the user story

As per title, approve-builds should have a runtime flag (non-interactive) equivalent, since I’m totally happy with the package manager not automatically runing postinstall scripts and such, but in automated contexts such as CI/CD pipelines there might sometimes be no need to manually run the approve-builds prompt, nor polluting the package.json file with a persistent option that disables checks I’m ok with when running stuff locally.

Describe the solution you'd like

A runtime flag such as --approve-all-builds or an equivalent to pnpm.onlyBuiltDependencies such as --only-built-dependencies=dep1,dep2.

Describe the drawbacks of your solution

No response

Describe alternatives you've considered

No response

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions