Skip to content

[Bug] Set allowBuilds by .pnpmfile.js not working #10516

@Airkro

Description

@Airkro

Verify latest release

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

pnpm version

10.24.0

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

// .pnpmfile.cjs
module.exports = {
  hooks: {
    updateConfig(config) {
      return Object.assign(config, {
        allowBuilds: {
          'core-js': false
        }
      });
    }
  }
};

Describe the Bug

allowBuilds: {...} not work when it config by .pnpmfile.cjs

Expected Behavior

allowBuilds: {...} should work in .pnpmfile.cjs

Which Node.js version are you using?

24.0.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