Skip to content

fix: add mechanism for configurable override of '--ignore-scripts' when running 'npm ci'#2650

Merged
JoeCap08055 merged 3 commits intomainfrom
fix/override-npm-ignore-scripts
Dec 8, 2025
Merged

fix: add mechanism for configurable override of '--ignore-scripts' when running 'npm ci'#2650
JoeCap08055 merged 3 commits intomainfrom
fix/override-npm-ignore-scripts

Conversation

@JoeCap08055
Copy link
Copy Markdown
Collaborator

Goal

The goal of this PR is to enable selective running of npm install scripts for packages in the dependency tree. This can be enabled in any directory containing npm scripts (ie, 'package.json') simply by added a file package-exceptions.json with the following structure:

[
  {
    "package": "package-name",
    "script": "script-name"
  }
]

(NOTE, script is optional and defaults to "install" if not supplied)

The override behavior must be invoked by running the supplied script; it is currently hooked in to building/running E2E tests in both the Makefile script and CI pipeline.

Closes #2649

@JoeCap08055 JoeCap08055 requested review from a team and enddynayn and removed request for a team December 8, 2025 17:20
Copy link
Copy Markdown
Collaborator

@enddynayn enddynayn left a comment

Choose a reason for hiding this comment

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

👍

@JoeCap08055 JoeCap08055 changed the title fix: add mechamism for configurable override of '--ignore-scripts' when running 'npm ci' fix: add mechanism for configurable override of '--ignore-scripts' when running 'npm ci' Dec 8, 2025
@JoeCap08055 JoeCap08055 merged commit 0b0810c into main Dec 8, 2025
33 checks passed
@JoeCap08055 JoeCap08055 deleted the fix/override-npm-ignore-scripts branch December 8, 2025 21:45
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.

[Bug]: E2E tests fail if --ignore-scripts used with npm

3 participants