-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Open
Labels
Description
pnpm version: 6.32.2
The real world scenario at my work involves internal company NPM packages with a relationship like this:
A --depends-on--> B --peer-depends-on--> C
...where A and C are in the monorepo, but B is developed in a separate repo and gets installed from an Artifactory private registry. This is a common situation at a big company if most teams work in a monorepo, but we share some packages with other teams who have their own repo.
Code to reproduce the issue:
This is an isolated minimal repro. I substituted @react-navigation/core to avoid involving private packages.
- Clone this repository: https://github.com/octogonz/pnpm-issue-4407
pnpm install
In this repro:
test-projectdepends on@react-navigation/core@react-navigation/corehas a peer dependency on"react": "*"test-projectalso depends on"react": "workspace:*"- The local workspace project
reacthas version16.0.0which should satisfy the peer dependency
Actual behavior:
Progress: resolved 10, reused 10, downloaded 0, added 10, done
WARN Issues with peer dependencies found
test-project
└─┬ @react-navigation/core
└── ✕ missing peer react@"*"
Peer dependencies that should be installed:
react@"*"
Expected behavior:
The installation should succeed. PNPM should satisfy react@* by creating a symlink to the local workspace package.
Additional information:
node -vprints:v14.17.4- Windows, macOS, or Linux?: Windows
Koslun, patricktree, emettely, daniele-orlando and LPegasus