[rush] PNPM readPackage hook does not resolve local unpublished packages #1766
Labels
repro confirmed
The issue comments included repro instructions, and the maintainers reproduced the problem
Is this a feature or a bug?
Please describe the actual behavior.
It's not possible to refer to a local Rush package when fixing phantom dependencies using
pnpmfile.js:readPackage()
If the issue is a bug, how can we reproduce it? Please provide detailed steps and include a GitHub branch if applicable. Your issue will get resolved faster if you can make it easy to investigate.
Modify
pnpmfile.js:readPackage()
so that it injects dependency to an NPM package managed by the Rush project, but which has not been published to NPM.Example project: https://github.com/salieri/rush-local-dependency-issue
rush.json
common/config/rush/pnpmfile.js
to inject a local package dependency into the external dependencyrush update --full
will fail, as PNPM attempts to pull the injected dependency from registry.npmjs.orgThis issue occurs for example when trying to use a custom
react-scripts
package with Storybook –@storybook/preset-create-react-app
tries to import the customreact-scripts
package from its own dependencies, where the locally hosted package does not reside.What is the expected behavior?
Rush should resolve/link the injected local package.
Known workarounds
Publish the local package.
If this is a bug, please provide the tool version, Node.js version, and OS.
The text was updated successfully, but these errors were encountered: