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

0.2.0 • Public • Published

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"],...}

Readme

Keywords

none

Package Sidebar

Install

npm i yarn-workspaces-list

Weekly Downloads

5,119

Version

0.2.0

License

MIT

Unpacked Size

9.06 kB

Total Files

14

Last publish

Collaborators

  • timhall