Skip to content

Commit

Permalink
docs: README resolveWorkspacePkgsGraph
Browse files Browse the repository at this point in the history
  • Loading branch information
aa900031 committed Apr 18, 2023
1 parent 416f3db commit ffc798e
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -134,6 +134,15 @@ console.log(root) // { dir: 'fully/resolved/root/path', pakcageJson: { ... } }
console.log(packages) // [ { dir: 'fully/resolved/foo/path', pakcageJson: { ... } } ]
```

### `resolveWorkspacePkgsGraph`

Find monorepo workspace packages graph sort by `devDependency` and `dependency`

```js
import { resolveWorkspacePkgsGraph } from 'pkg-types'
const pkgsGraph = await resolveWorkspacePkgsGraph('.')
console.log(pkgsGraph) // [['foo'], ['bar']]
```

## Types

Expand Down

0 comments on commit ffc798e

Please sign in to comment.