-
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] Directories and files named '*' are excluded from packages in npm 6.12.1 or newer #1096
Comments
Files named They were removed starting with this change in npm-packlist. If you do want your tool to depend on Sorry for the inconvenience. I don't like it either. In a perfect world, Windows would have moved to a fully posix compliant file system long ago. |
It would be fantastic for NPM to throw a loud error when creating the pack list, instead of silently dropping files. That would give package developers a clear message of what is and isn't allowed. It would also prevent CI releases from shipping broken packages.
Awesome, I see you've already mentioned it in npm/npm-packlist#32. |
In npm/npm-packlist#32, NPM started to drop filenames containing the `*` character. See: - npm#1096 - npm#1048
In npm/npm-packlist#32, NPM started to drop filenames containing the `*` character. See: - #1096 - #1048 PR-URL: #1377 Credit: @maxwellgerber Close: #1377 Reviewed-by: @claudiahdz
What
Directories and files named
*
are not present in the final artifact in npm6.12.1
or newer.May be related to #1048
Steps To Repro
A full reproduction is available at https://github.com/maxwellgerber/npm-bug-repro
The format of my project is as follows:
It appears that in versions of NPM >
6.12.0
, thelib/other/*
textfileand the 'lib/*/file.js' files will not be added to the final artifact
when running
npm publish
. This is bad - since the files will be presentduring CI, it is very easy to have a green build and release broken artifacts.
The contents of the final artifact are evaluated below using
npm pack
.Adding entries manually to the
files
array inpackage.json
does notfix the issue.
Environment
$ node -v v12.16.0 mgerber@mgerber-ltm ~/work/npm-bug-repro $ uname Darwin
Behavior for NPM v6.12.0
Behavior for NPM v6.12.1
Who
References
The text was updated successfully, but these errors were encountered: