How do I get the "version range" or "specifier" of a package when using catalogs? #10221
Unanswered
tringenbach
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
When using a catalog, is there a good way to find out the "version range" of a package? By "version range" I mean
^1.2.3or>5.4.3or whatever the version spec is. Note that I don't want to know the exact version. And I'd rather not parse thepnpm-workspaces.ymlmyself. Ideally the solution would handleworkspace:, andoverridestoo.I would have thought that
pnpm whyor maybepnpm listwould give this information but it does not seem to.So far the best solution I've found is to run
pnpm packand inspect the package.json in the generated tarball. But that's a bit inconvenient, and won't give me the answer for "dependencies of my dependencies" the waypnpm whywould.Maybe the right answer is to consult the
pnpm-lock.yamlfile myself?Beta Was this translation helpful? Give feedback.
All reactions