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
Lint a single workspace
Use the --workspace (or -W) argument to focus on a single workspace (and let Knip run faster). Example:
Terminal window
knip --workspace packages/my-lib
The desired behavior:
knip --workspace my-lib
i.e. drop the packages prefix.
This matches how npm (and I think yarn) work
e.g. this works in npm, even if my-lib is stored in packages
npm run --workspace my-lib <script-name>`
The text was updated successfully, but these errors were encountered:
The current behavior (from https://knip.dev/features/monorepos-and-workspaces)
The desired behavior:
i.e. drop the
packages
prefix.This matches how
npm
(and I thinkyarn
) worke.g. this works in npm, even if
my-lib
is stored inpackages
The text was updated successfully, but these errors were encountered: