Bug: peerDependencies
isn't set in the package.json
published to npm
#2581
Labels
bug
Something isn't working
Describe the bug
The
package.json
in the main branch haspeerDependencies
set, but thepackage.json
actually published to npm does not havepeerDependencies
set.This causes an issue in monorepo apps with multiple vue versions where unintended vue versions are imported.
pnpm/pnpm#8917
To Reproduce
Here's a minimal example:
https://github.com/kimulaco/monorepo-vue-example
The problem will not occur if you overwrite
peerDependencies
with pnpm'spackageExtensions
.https://github.com/kimulaco/monorepo-vue-example/tree/add-peerDependencies
Expected behavior
peerDependencies
should also be set in the npm publishedpackage.json
.Related information:
Additional context
The text was updated successfully, but these errors were encountered: