Skip to content

💡 --workspace Configuration: Expected Support for Selecting Multiple Workspaces #1441

@fightZy

Description

@fightZy

Suggest an idea for Knip

Currently, the --workspace option only supports a single directory. There are dozens of workspaces in my project, and I want to check only the specified ones in certain pipelines. However, I currently have to run the command multiple times, such as

pnpm knip --workspace A & pnpm knip --workspace B & pnpm knip --workspace C

This actually involves redundant analysis logic (such as build graphs). I hope to have a multi-workspace selection and filtering command similar to turbo and pnpm to optimize the program.
For example

pnpm knip --workspace A,B,C

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions