-
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 pack
ignores files
with *
by npm@9
#6330
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
Comments
riywo
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
Apr 6, 2023
riywo
changed the title
[BUG]
[BUG] Apr 6, 2023
npm pack
ignores files
with *
with npm@9
npm pack
ignores files
with *
by npm@9
The glob rules in npm 9 underwent quite a few bugfixes, and one of the results of that is that it requires you to use proper glob paths. The glob pattern you want is ~/D/n/s/pack $ npm pkg get files
"dist-*/**"
~/D/n/s/pack $ find .
.
./dist-asdf
./dist-asdf/index.js
./dist-asdf/sub
./dist-asdf/sub/index.js
./package.json
./other-dir
./other-dir/index.js
~/D/n/s/pack $ npm pack --dry-run
npm notice
npm notice 📦 [email protected]
npm notice === Tarball Contents ===
npm notice 0B dist-asdf/index.js
npm notice 0B dist-asdf/sub/index.js
npm notice 281B package.json
npm notice === Tarball Details ===
npm notice name: pack
npm notice version: 1.0.0
npm notice filename: pack-1.0.0.tgz
npm notice package size: 334 B
npm notice unpacked size: 281 B
npm notice shasum: f47827dcb5942699d9f0d5dd23c92939a82623ea
npm notice integrity: sha512-6R56rnlUklKbf[...]8koqhJ89csuvg==
npm notice total files: 3
npm notice
pack-1.0.0.tgz |
Totally makes sense. Thank you for confirming! |
This was referenced Jun 12, 2023
This was referenced Jun 26, 2023
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
Is there an existing issue for this?
This issue exists in the latest npm version
Current Behavior
There is a pattern with
*
to list files dynamically and worked withnpm@8
:However,
npm@9
won't list them:Expected Behavior
List
dist-*
withnpm pack
.Or, confirm this is the expected breaking change so that we can change our
package.json
.Steps To Reproduce
dist-es/file
and adddist-*
tofiles
inpackage.json
)npm pack
withnpm@9
dist-es/file
in the tgz fileEnvironment
The text was updated successfully, but these errors were encountered: