Skip to content
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

pnpm licenses command does not work with workspaces #6115

Closed
RobbieTheWagner opened this issue Feb 20, 2023 · 3 comments · Fixed by #6157
Closed

pnpm licenses command does not work with workspaces #6115

RobbieTheWagner opened this issue Feb 20, 2023 · 3 comments · Fixed by #6157

Comments

@RobbieTheWagner
Copy link

pnpm version:

7.27.1

Code to reproduce the issue:

Create a project using workspaces and add one of them as a dependency with workspace:* as the version. Then run:

pnpm licenses ls

Expected behavior:

List the licenses and skip any packages that the command thinks are invalid and/or make it configurable to skip certain packages.

Actual behavior:

No license info is displayed and we get an error:

ERR_PNPM_UNSUPPORTED_PACKAGE_TYPE  Unsupported package resolution type for file:lib/art19-ad-rep_y3vhx3zpzli5z6ifkqpr2p764a

Additional information:

  • node -v prints: v14.21.2
  • Windows, macOS, or Linux?: macOS
@await-ovo
Copy link
Member

Hi, @RobbieTheWagner, Did you use dependenciesMeta.*.injected

@RobbieTheWagner
Copy link
Author

@await-ovo yes, we did.

@weyert
Copy link
Contributor

weyert commented Mar 1, 2023

Thanks for making the PR. I can see it work. I will try your changes tomorrow. Currently, setting up my new Mac :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants