Skip to content

refactor: remove ignoreDepScripts and neverBuiltDependencies#11220

Merged
zkochan merged 2 commits intomainfrom
ignore-scripts
Apr 7, 2026
Merged

refactor: remove ignoreDepScripts and neverBuiltDependencies#11220
zkochan merged 2 commits intomainfrom
ignore-scripts

Conversation

@zkochan
Copy link
Copy Markdown
Member

@zkochan zkochan commented Apr 7, 2026

Summary

  • Remove ignore-dep-scripts / ignoreDepScripts config setting — redundant with v11's default allowBuilds behavior
  • Remove neverBuiltDependencies type definitions and test references — dead code replaced by allowBuilds

Test plan

  • Compiles cleanly with no type errors
  • Existing lifecycle script tests pass
  • Rebuild tests pass

zkochan added 2 commits April 7, 2026 11:37
These settings are redundant in v11:
- `ignore-dep-scripts` is superseded by the default behavior of `allowBuilds`
- `neverBuiltDependencies` was already dead code, replaced by `allowBuilds`
@zkochan zkochan marked this pull request as ready for review April 7, 2026 11:31
Copilot AI review requested due to automatic review settings April 7, 2026 11:31
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR removes legacy build-script configuration options (ignore-dep-scripts / ignoreDepScripts and neverBuiltDependencies) in favor of the v11+ allowBuilds model, and updates affected code paths and tests accordingly.

Changes:

  • Removed ignore-dep-scripts config key / ignoreDepScripts option plumbing from config reader and install flows.
  • Removed neverBuiltDependencies option/type remnants and updated tests/fixtures to use allowBuilds.
  • Added a changeset documenting the breaking removal of ignore-dep-scripts.

Reviewed changes

Copilot reviewed 17 out of 17 changed files in this pull request and generated 1 comment.

Show a summary per file
File Description
pnpm/test/recursive/rebuild.ts Updates workspace config in test from neverBuiltDependencies to allowBuilds.
pnpm/test/monorepo/index.ts Renames a rebuild/deploy test to no longer mention removed config.
lockfile/fs/test/normalizeLockfile.test.ts Updates test name after removing neverBuiltDependencies references.
installing/deps-restorer/src/index.ts Removes ignoreDepScripts from HeadlessOptions and stops OR-ing it into ignoreScripts.
installing/deps-installer/test/install/patch.ts Removes now-dead neverBuiltDependencies option from test defaults.
installing/deps-installer/test/install/nodeRuntime.ts Removes now-dead neverBuiltDependencies option from test defaults.
installing/deps-installer/test/install/lifecycleScripts.ts Removes the ignore-dep-scripts test (since the setting is removed).
installing/deps-installer/src/install/index.ts Stops OR-ing ignoreDepScripts into ignoreScripts for lifecycle execution.
installing/deps-installer/src/install/extendInstallOptions.ts Removes ignoreDepScripts from install option types/defaults.
engine/pm/commands/src/self-updater/installPnpm.ts Drops ignoreDepScripts from internal install options (keeps ignoreScripts).
config/reader/test/fixtures/never-built-dependencies/pnpm-workspace.yaml Removes fixture content referencing neverBuiltDependencies.
config/reader/src/types.ts Removes ignore-dep-scripts from config key type map.
config/reader/src/configFileKey.ts Removes ignore-dep-scripts from excluded pnpm keys list.
config/reader/src/Config.ts Removes ignoreDepScripts from the Config interface.
building/commands/src/build/rebuild.ts Removes neverBuiltDependencies from rebuild options typing.
building/after-install/src/extendBuildOptions.ts Removes neverBuiltDependencies from build options typing.
.changeset/remove-ignore-dep-scripts.md Adds changeset documenting removal of ignore-dep-scripts.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment on lines +1 to +2
---
"@pnpm/config.reader": major
Copy link

Copilot AI Apr 7, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The changeset only bumps @pnpm/config.reader and pnpm, but this PR also removes exported option fields/types from other published packages (e.g. ignoreDepScripts from @pnpm/installing.deps-installer/@pnpm/installing.deps-restorer, and neverBuiltDependencies from @pnpm/building.after-install/@pnpm/building.commands). Please add the affected packages to the frontmatter (likely as major), otherwise consumers may receive breaking type/API changes without a major version bump.

Suggested change
---
"@pnpm/config.reader": major
---
"@pnpm/building.after-install": major
"@pnpm/building.commands": major
"@pnpm/config.reader": major
"@pnpm/installing.deps-installer": major
"@pnpm/installing.deps-restorer": major

Copilot uses AI. Check for mistakes.
@zkochan zkochan merged commit 51b04c3 into main Apr 7, 2026
16 checks passed
@zkochan zkochan deleted the ignore-scripts branch April 7, 2026 11:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants