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
This issue is specific to monorepos. Knip should not match start:server in the current workspace, but in -F this one. Unfortunately this isn't trivial given how Knip currently handles this.
In general Knip should handle either pnpm start:server or pnpm run start:server fine, but does not work as expected when using the -F argument.
It seems like the script parser doesn't detect scripts when omitting the
run
keyword for package managers likepnpm
andyarn
.In the following Github Action example, the
start:server
script is reported as an unlisted binary:This is fixable by explicitly using
run
like this:pnpm -F @snaplet/seed run start:server &
.But it would be cool if the script parser works without it. 😄
The text was updated successfully, but these errors were encountered: