-
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] NPM 9 changes wildcard matching without a breaking change note #6164
Labels
Bug
thing that needs fixing
Priority 1
high priority issue
regression:9.x
Release 9.x
work is associated with a specific npm 9 release
Comments
Dfenniak
added
Bug
thing that needs fixing
Needs Triage
needs review for next steps
Release 9.x
work is associated with a specific npm 9 release
labels
Feb 14, 2023
Dfenniak
changed the title
[BUG] <title>
[BUG] NPM 9 changes wildcard matching without a breaking change note
Feb 14, 2023
lukekarrys
added
Priority 1
high priority issue
regression:9.x
and removed
Needs Triage
needs review for next steps
labels
Feb 15, 2023
1 task
3 tasks
This was referenced Apr 13, 2023
Closed
This was referenced Apr 20, 2023
Merged
Merged
This was referenced Apr 28, 2023
This was referenced May 9, 2023
AlansCodeLog
added a commit
to AlansCodeLog/vectortracer
that referenced
this issue
Jul 4, 2023
This was due to a bug with npm npm/cli#6164. Locally I could not replicate because normally I use pnpm, and pnpm uses npm-packlist to get the proper files to pack. Unfortunately semantic-release doesn't support pnpm, so for now the files have been specified manually. This commit can be reverted when this is fixed or semantic release supports pnpm.
This got fixed quite some time ago in npm/npm-packlist#147 and shipped with This issue is technically a duplicate of #5918 |
2 tasks
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
Bug
thing that needs fixing
Priority 1
high priority issue
regression:9.x
Release 9.x
work is associated with a specific npm 9 release
Is there an existing issue for this?
This issue exists in the latest npm version
Current Behavior
When publishing a package with a package.json including:
In NPM 8 all subdirectories and their files would be included. In NPM 9 it seems this has changed to not include subdirectories.
Expected Behavior
I think this new behaviour is actually correct, I would expect
"/build/**"
or"/build/**/*"
to be used for including subdirectories - but from reading through breaking changes I couldn't find any references for this change - it might be nice to have some kind of deprecation or changed behaviour mentioned if using a single asterisk notation.Steps To Reproduce
Environment
The text was updated successfully, but these errors were encountered: