Verify latest release
pnpm version
11.0.8
Which area(s) of pnpm are affected? (leave empty if unsure)
CLI
Link to the code that reproduces this issue or a replay of the bug
https://github.com/andreww2012/pnpm-11-doesnt-bundle-dependencies
Reproduction steps
In the linked repo, an output from pnpm pack:v10:
📦 pnpm-11-doesnt-bundle-dependencies@1.0.0
Tarball Contents
node_modules/ms-ts/dist/index.d.mts
node_modules/ms-ts/dist/index.mjs
node_modules/ms-ts/dist/ms.d.mts
node_modules/ms-ts/dist/node_modules/.pnpm/ts-arithmetic@0.1.1/node_modules/ts-arithmetic/dist/ts-arithmetic.d.mts
node_modules/ms-ts/dist/node_modules/.pnpm/type-fest@5.6.0/node_modules/type-fest/source/internal/characters.d.mts
node_modules/ms-ts/dist/node_modules/.pnpm/type-fest@5.6.0/node_modules/type-fest/source/trim.d.mts
node_modules/ms-ts/LICENSE.md
node_modules/ms-ts/package.json
node_modules/ms-ts/README.md
node_modules/ms-ts/THIRD_PARTY_NOTICES.md
package.json
pnpm-workspace.yaml
Tarball Details
pnpm-11-doesnt-bundle-dependencies-1.0.0.tgz
But from pnpm pack:v11:
package: pnpm-11-doesnt-bundle-dependencies@1.0.0
Tarball Contents
package.json
pnpm-workspace.yaml
Tarball Details
pnpm-11-doesnt-bundle-dependencies-1.0.0.tgz
Describe the Bug
Dependencies declared in bundleDependencies are actually not bundled by pnpm pack, starting with pnpm 11.
Expected Behavior
They are bundled as before.
Which Node.js version are you using?
22.22.2
Which operating systems have you used?
If your OS is a Linux based, which one it is? (Include the version if relevant)
No response
Verify latest release
pnpm version
11.0.8
Which area(s) of pnpm are affected? (leave empty if unsure)
CLI
Link to the code that reproduces this issue or a replay of the bug
https://github.com/andreww2012/pnpm-11-doesnt-bundle-dependencies
Reproduction steps
In the linked repo, an output from
pnpm pack:v10:But from
pnpm pack:v11:Describe the Bug
Dependencies declared in
bundleDependenciesare actually not bundled bypnpm pack, starting with pnpm 11.Expected Behavior
They are bundled as before.
Which Node.js version are you using?
22.22.2
Which operating systems have you used?
If your OS is a Linux based, which one it is? (Include the version if relevant)
No response