[DOCS] Question on .npmignore
/ files
behavior for git dependencies in latest version
#7335
Open
2 tasks done
Labels
.npmignore
/ files
behavior for git dependencies in latest version
#7335
Is there an existing issue for this?
This is a CLI Docs Enhancement, not another kind of Docs Enhancement.
Description of Problem
Considering a sample typescript project like this minimal example: https://github.com/cs-balazs/dummy-lib
When this repo is used as a git dependency in an npm project, after
npm install
, thebuild
folder is not included innode_modules/dummy-lib
. With version10.2.4
, it does appear in the folder, but with10.5.0
it doesn'tWith either of these changes, it works with
10.5.0
:files: ["./build/**/*"]
inpackage.json
src
from.npmignore
I wanted to understand the reason behind this, but couldn't find the relevant change in the changelog, nor found a reason in the docs. The documentation of the
files
field states, that:Which to me means, that in this case at least
build/src/index.js
should be thereI don't know if this is indeed a problem with the docs, or just my misunderstanding, I'm submitting this issue to find that out, and a reason on why this git dependency behavior changed
Potential Solution
No response
Docs URL
No response
The text was updated successfully, but these errors were encountered: