@monorepo-utils/get-workspaces-cli
v2.10.4
Published
A CLI that get each package paths in a monorepo
Downloads
10
Readme
@monorepo-utils/package-utils
A CLI that get "workspaces" package locations from monorepo.
Usage
Usage: npx @monorepo-utils/get-workspaces-cli [options]
Options:
--help, -h Show this help message
--cwd <path> Current working directory (default: process.cwd())
--format <format> Output format (default: line) Supported formats: line, json
--filter <filter> Filter packages by package's name (default: undefined)
Examples:
# Get parsable workspace paths
$ npx -y -q @monorepo-utils/get-workspaces-cli
# Filter packages by package's name
$ npx -y -q @monorepo-utils/get-workspaces-cli --filter example-name
# Execute command for each package
$ npx -y -q @monorepo-utils/get-workspaces-cli | xargs -I{} sh -c 'cd {}; pwd'
Changelog
See Releases page.
Running tests
yarn test
Contributing
Pull requests and stars are always welcome.
For bugs and feature requests, please create an issue.
- Fork it!
- Create your feature branch:
git checkout -b my-new-feature
- Commit your changes:
git commit -am 'Add some feature'
- Push to the branch:
git push origin my-new-feature
- Submit a pull request :D
Author
License
MIT © azu
Thanks to azz/get-monorepo-packages: Get a list of packages from a monorepo