@accelint/turbo-filter
v0.0.1
Published
Utility for filtering tasks by package in a turborepo
Readme
@accelint/turbo-filter
A utility for more easily filtering turbo tasks.
install
pnpm add -Dw @accelint/turbo-filterhow to use
# before - need to type out (and remember 🙀) full package names
turbo dev --filter=packageA --filter=packageD
# after
turbo-filter dev
...
Select packages to run "dev" ›
◉ packageA
◯ packageB
◯ packageC
◉ packageD
◯ packageEhow it works
- parses pnpm-workspace.yaml to determine paths for all workspace package.json files
- finds all workspace packages that have the task (e.g. 'dev' in 'turbo-filter dev')
- provides a multi-select prompt to the user with all of the packages that have the given task
- utilizes the prompts package
- passes the selected apps as filters to the turbo command
potential future improvements
- Support other types of workspaces
