@lidofinance/yarn-workspaces-list
TypeScript icon, indicating that this package has built-in type declarations

0.1.1 • Public • Published

Forked from https://github.com/timhall/yarn-workspaces to fix this issue.

yarn-workspaces-list

List all available workspaces using the format from yarn workspaces list --verbose --json from yarn v2.

const { listWorkspaces } = require('yarn-workspaces-list');

const list = await listWorkspaces();
$ workspaces-list

{"location":".","name":"@workspace/monorepo","workspaceDependencies":[],"mismatchedWorkspaceDependencies":[]}
{"location":"packages/a","name":"@workspace/a",...}
{"location":"packages/b","name":"@workspace/b","workspaceDependencies":["packages/a"],...}

API

listWorkspaces([options])

Options:

  • [cwd]

CLI

workspaces-list

Dependencies (20)

Dev Dependencies (0)

    Package Sidebar

    Install

    npm i @lidofinance/yarn-workspaces-list

    Weekly Downloads

    3

    Version

    0.1.1

    License

    MIT

    Unpacked Size

    30.6 kB

    Total Files

    51

    Last publish

    Collaborators

    • lidofinance-ui
    • lidofinance-group