npm Community Forum (Archive)

The npm community forum has been discontinued.

To discuss usage of npm, visit the GitHub Support Community.

Linked bundledDependency doesn’t respect npmIgnore Part 2

It looks like this issue still is present when I ran npm pack. I’m using a lerna project with typescript. npm pack includes the .rpt2_cache directory even though it’s in .npmignore.

Was this issue fixed & it’s on my end or is this still a known issue?

Have you considered switching from blacklisting (via npmignore) to whitelisting (via files in package.json)? I didn’t know I had the option and it was much easier for my last project.

There have been some issues introduced and fixed with the built-in ignore list this year, but I do not recall any fixes related to linked dependencies.