You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Aug 11, 2022. It is now read-only.
npm pack ignores flattened dependency tree fixed in npm-shrinkwrap.json, if these deps are bundleDependencies, and produces package with non-flattened node_modules inside.
With npm@2, you'll need to ensure that all of the modules that are hoisted by dedupe are included in bundledDependencies, because the bundling mechanism is semi-detached from the bits of the installer and deduper that create the flattened tree. Because npm@3 (what is currently the multi-stage branch) installs flatter trees by default, it should handle this case better, and will include the hoisted modules by default.
npm pack ignores flattened dependency tree fixed in npm-shrinkwrap.json, if these deps are bundleDependencies, and produces package with non-flattened node_modules inside.
So, having the following package.json
I'm trying to pack my app such a way that dependency tree is bundled inside the package AND is flattened the same time. So I do:
After that I got in my working directory's node_modules:
But, if I pack my application into a npm package, then inside there's the following package's node_modules
Like it was before npm dedupe.
The text was updated successfully, but these errors were encountered: