New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
readPackage
/ pnpm.overrides
and relative paths in file:
protocol dependencies
#5493
Comments
Thank you! |
jbedard
added a commit
to jbedard/rules_js
that referenced
this issue
Jan 13, 2023
jbedard
added a commit
to jbedard/rules_js
that referenced
this issue
Jan 13, 2023
jbedard
added a commit
to jbedard/rules_js
that referenced
this issue
Jan 13, 2023
jbedard
added a commit
to jbedard/rules_js
that referenced
this issue
Jan 13, 2023
jbedard
added a commit
to jbedard/rules_js
that referenced
this issue
Jan 13, 2023
jbedard
added a commit
to aspect-build/rules_js
that referenced
this issue
Jan 13, 2023
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
pnpm version:
7.13.4
,7.13.5
Code to reproduce the issue:
See standalone repro here: walkerburgin/pnpm7-readpackage-file-repro.
Expected behavior:
With pnpm
6.24.4
we could use the.pnpmfile.cjs
orpnpm.overrides
inpackage.json
to override transitive dependencies to point to a local.tgz
using thefile:
protocol:I'm not sure whether this behavior was intentional or a happy accident, but we found it intuitive and useful in our large monorepo.
Actual behavior:
With pnpm version
7.13.4
, this produces an error:PNPM seems to be attempting to resolve the
file:
path relative to the leaf package in the workspace.I believe that this was introduced by #4415.
Additional information:
node -v
prints:v16.17.1
The text was updated successfully, but these errors were encountered: