Skip to content

fix: respect ignoreScripts option for git dependencies - #529

Merged
martinrrm merged 1 commit into
npm:release/v21from
martinrrm:fix/v21-ignore-scripts
Nov 3, 2026
Merged

martinrrm merged 1 commit into
npm:release/v21from
martinrrm:fix/v21-ignore-scripts

Conversation

@martinrrm

@martinrrm martinrrm commented Nov 3, 2026 •

Copy link
Copy Markdown
Contributor

Backports #486 (commit 012120c) to release/v21 so npm 11 can consume the fix. This addresses https://github.com/github/npm/issues/15814.

  • Adds an ignoreScripts guard in lib/git.js to skip lifecycle/prepare installation for git dependencies.
  • Adds regression tests covering install scripts and workspace prepare behavior.

Local validation was blocked because dependencies are not installed (tap was not recognized); CI will perform validation.

@martinrrm
martinrrm requested a review from a team as a code owner November 3, 2026 21:24
@martinrrm
martinrrm merged commit 6377643 into npm:release/v21 Nov 3, 2026
19 checks passed
@github-actions github-actions Bot mentioned this pull request Nov 3, 2026
martinrrm pushed a commit that referenced this pull request Nov 7, 2026
🤖 I have created a release *beep* *boop*
---


## [21.5.3](v21.5.2...v21.5.3)
(2026-11-03)
### Bug Fixes
*
[`6377643`](6377643)
[#529](#529) respect ignoreScripts
option for git dependencies (#529) (@martinrrm, Michael Smith)

---
This PR was generated with [Release
Please](https://github.com/googleapis/release-please). See
[documentation](https://github.com/googleapis/release-please#release-please).

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
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