-
Notifications
You must be signed in to change notification settings - Fork 3.3k
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
.DS_Store files show up after npm publish #440
Comments
I'm encountering this in npm 6.13.0 . One workaround that seems to work for me is adding |
I'm thinking I'm seeing something similar since npm 6.12.1: My With npm 6.4.1, ~6.7, ~6.9, ~6.10, ~6.11 and 6.12.0 the packaged file (from (Community is down/read-only right now, if this not the same issue I would like to apologize!) |
it seems strange to me to include a shrinkwrap file in any part of a published package, but it’d only have an effect in the root anyways - why does your build process put a copy there? |
That's certainly a good question. I have it in the build/ directory as part of another build step that takes the build/ directory and creates a docker container image. The idea was to run Fix for me now is to use EDIT: Fix/Work-around for me works, but I'm a bit concerned that due to this change in behavior packages on the registries could inadvertently contain files that they shouldn't contain -- I found this by accident because of another part of my system checking for the presence of |
Problem: .DS_Store files are included in directories that are explicitely included in "files" (npm/cli#440) Solution: Add `"!.DS_Store"` at the end of the `"files"` array. Notes: [skip travis-ci]
The text was updated successfully, but these errors were encountered: