Do you want to request a feature or report a bug?
BUG
What is the current behavior?
yarn pack
does not package bundledDependecies in v0.19.0, v0.19.1 and v0.20.0
If the current behavior is a bug, please provide the steps to reproduce.
{
"name": "test-bundled-deps",
"version": "0.0.0",
"dependencies": {
"bcryptjs": "^2.0.0",
},
"bundledDependencies": [
"bcryptjs",
]
}
then run yarn
followed by yarn pack
check the tgz file. It will not contain the node_modules folder.
What is the expected behavior?
to work as in version 0.18.1
Please mention your node.js, yarn and operating system version.
$ node -v
v7.4.0
OS X El Capitan 10.11.6
Would seem to at least be caused by:-
Resolving those gives me node_modules/module in the packed .tgz but no subdirectories/files.
A PR with a test is welcome
@bestander: I've added a PR with a failing test case (#4598).
With a project setup specified in the test fixture, running npm install
and npm pack
the resulting archive will contain a node_modules
directory containing the bundled dependencies. Performing the same commands using yarn
the archive does not contain the bundled dependencies.
Most helpful comment
@bestander: I've added a PR with a failing test case (#4598).
With a project setup specified in the test fixture, running
npm install
andnpm pack
the resulting archive will contain anode_modules
directory containing the bundled dependencies. Performing the same commands usingyarn
the archive does not contain the bundled dependencies.