Open with-heart opened 1 month ago
Indeed, the issue is that Knip does not understand to assign dependencies to the workspaces in packages/client
when using the --cwd packages/client
argument.
Similar issue to #433. Unfortunately I'll answer this the same.
Not unfortunate, that's totally understandable! Do you think it'd be worth adding a note in the docs about this somewhere? I'd be happy to tackle that if so
Reproduction url
https://stackblitz.com/edit/github-e9sos1?file=packages%2Fclient%2Fpackage.json
Description of the issue
When the binary of a dev dependency of a package in a monorepo is used in a GitHub actions workflow (using
yarn --cwd
), the binary is reported as unlisted.packages/client/package.json
:.github/workflows/node.yml
:Output:
For reference, I ran into this issue as part of https://github.com/statelyai/xstate/pull/4974. Planned workaround is to add
.github/workflows/node.yml
toignore
for now.I would expect no error to be reported.