Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Npm regression between 5.1 and 5.5.1: no longer filtering out the .git file in submodules #18870
I'm opening this issue because:
What's going wrong?
Background: Git submodules contain a
A package published with npm v5.1 (and, as far as I know, all previous versions) includes in the generated package neither the
A package published with npm v5.5.1 still does not include the
How can the CLI team reproduce the problem?
For the same packages with and without the issue, see the following two packages:
The one published with npm 5.5.1 includes the file
To reproduce, create a repo with a submodule and publish to npm.