@monorepo-utils/get-workspaces-cli

2.10.4 • Public • Published

@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.

  1. Fork it!
  2. Create your feature branch: git checkout -b my-new-feature
  3. Commit your changes: git commit -am 'Add some feature'
  4. Push to the branch: git push origin my-new-feature
  5. Submit a pull request :D

Author

License

MIT © azu

Thanks to azz/get-monorepo-packages: Get a list of packages from a monorepo

Dependencies (1)

Dev Dependencies (0)

    Package Sidebar

    Install

    npm i @monorepo-utils/get-workspaces-cli

    Weekly Downloads

    3

    Version

    2.10.4

    License

    MIT

    Unpacked Size

    7.05 kB

    Total Files

    5

    Last publish

    Collaborators

    • azu