Skip to content

ignoredBuiltDependencies setting is sometimes ignored #9296

@Mathias-S

Description

@Mathias-S

Verify latest release

  • I verified that the issue exists in the latest pnpm release

pnpm version

10.6.3

Which area(s) of pnpm are affected? (leave empty if unsure)

CLI

Link to the code that reproduces this issue or a replay of the bug

No response

Reproduction steps

Inside an empty folder, and run:

pnpm init

# A package with install scripts
pnpm add esbuild

# The above will show a warning about ignored build scripts

pnpm approve-builds
# press enter without any selection to add listed scripts to "ignoredBuiltDependencies"

pnpm i
# Bug: Will still show the warning and ask the user to run "pnpm approve-builds"

rm pnpm-lock.yaml

pnpm i
# Now the warning is gone. But the newly generated lockfile isn't actually any different from the deleted one.
ignoredBuiltDependencies.bug.reproduction.mov

Describe the Bug

running pnpm i after adding packages to "ignoredBuiltDependencies" does not make the warning go away.

Expected Behavior

running pnpm i after adding packages to "ignoredBuiltDependencies" should not produce a warning about those packages.

Which Node.js version are you using?

22.14.0

Which operating systems have you used?

  • macOS
  • Windows
  • Linux

If your OS is a Linux based, which one it is? (Include the version if relevant)

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions