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

Allow just the workspace "name" instead of full path when using --workspace #538

Open
tomdee opened this issue Mar 10, 2024 · 0 comments
Open
Labels
feature request Feature request

Comments

@tomdee
Copy link

tomdee commented Mar 10, 2024

The current behavior (from https://knip.dev/features/monorepos-and-workspaces)

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>`        
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature request Feature request
Projects
None yet
Development

No branches or pull requests

1 participant