You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
git clone https://github.com/woifes/node-monorepo
cd node-monorepo
pnpm install
pnpm licenses list | wc -l //935
pnpm licenses list ./packages/binarytypes/ | wc -l //935
cd ./packages/binarytypes
pnpm licenses list | wc -l //935
Expected behavior:
Since "binarytypes" has only one dependency which has no dependency by itself, it should only be shown this one dependency.
Actual behavior:
The output is the same for every directory(package) of a monorepo. In this case I showed it by counting the lines. The license situation can not be determined for the single packages inside a monorepo.
Additional information:
node -v prints: 18.0.0
Windows, macOS, or Linux?: Windows
The text was updated successfully, but these errors were encountered:
Currently it lists the licenses for all dependencies in the PNPM-based project. Currently it is not possible to only get a list of licenses for a specific workspace in the project. This would be a feature enhancement
@weyert I am surprised it works in workspaces at all for you. I get this error ERR_PNPM_UNSUPPORTED_PACKAGE_TYPE Unsupported package resolution type for file:lib/art19-ad-rep_y3vhx3zpzli5z6ifkqpr2p764a
@weyert I just now published my package which implements my idea of a license report. It works in packages of monorepos too. It utilizes the pnpm list command to create the dependency tree.
Try it out if you like: license-report
pnpm version: 7.17.0
Code to reproduce the issue:
Clone my monorepo for example: https://github.com/woifes/node-monorepo
Expected behavior:
Since "binarytypes" has only one dependency which has no dependency by itself, it should only be shown this one dependency.
Actual behavior:
The output is the same for every directory(package) of a monorepo. In this case I showed it by counting the lines. The license situation can not be determined for the single packages inside a monorepo.
Additional information:
node -v
prints: 18.0.0The text was updated successfully, but these errors were encountered: