-
Notifications
You must be signed in to change notification settings - Fork 3.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[BUG] prepack/postpack output is incorrectly suppressed #6816
Labels
Bug
thing that needs fixing
Needs Triage
needs review for next steps
Release 9.x
work is associated with a specific npm 9 release
Release 10.x
Comments
ljharb
added
Bug
thing that needs fixing
Needs Triage
needs review for next steps
Release 10.x
labels
Sep 17, 2023
ljharb
added a commit
to ljharb/cli
that referenced
this issue
Jan 18, 2024
ljharb
added a commit
to ljharb/cli
that referenced
this issue
Jan 18, 2024
ljharb
added a commit
to ljharb/cli
that referenced
this issue
Jan 19, 2024
ljharb
added a commit
to ljharb/cli
that referenced
this issue
Jan 19, 2024
ljharb
added a commit
to ljharb/cli
that referenced
this issue
Jan 19, 2024
ljharb
added a commit
to ljharb/cli
that referenced
this issue
Jan 19, 2024
ljharb
added a commit
to ljharb/cli
that referenced
this issue
Feb 27, 2024
ljharb
added a commit
to ljharb/cli
that referenced
this issue
Feb 27, 2024
lukekarrys
pushed a commit
that referenced
this issue
Feb 27, 2024
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
Bug
thing that needs fixing
Needs Triage
needs review for next steps
Release 9.x
work is associated with a specific npm 9 release
Release 10.x
Is there an existing issue for this?
This issue exists in the latest npm version
Current Behavior
With this example
package.json
in an empty dir:and run
npm pack --dry-run
. You should see the following output, which appears in npm < 9:However, in npm >= 9.0, i get this output:
Expected Behavior
npm 9+ doesn't suppress output in prepack/postpack scripts (and more broadly, in any lifecycle script that wouldn't be shown to a user who runs
npm install
/npm ci
such that this project is installed (meaning, my own postinstall/preinstall/prepare scripts should always show output, but nobody else's should)Steps To Reproduce
see above
Environment
ignore-scripts
isn't setThe text was updated successfully, but these errors were encountered: