3.0.0 • Published 27 days ago
@pnpm/workspace.pkgs-graph v3.0.0
@pnpm/workspace.pkgs-graph
Create a graph from an array of packages
Installation
pnpm add @pnpm/workspace.pkgs-graph
Usage
import createPkgsGraph from 'pkgs-graph'
const {graph} = createPkgsGraph([
{
dir: '/home/zkochan/src/foo',
manifest: {
name: 'foo',
version: '1.0.0',
dependencies: {
bar: '^1.0.0',
},
},
},
{
dir: '/home/zkochan/src/bar',
manifest: {
name: 'bar',
version: '1.1.0',
},
}
])
console.log(graph)
//> {
// '/home/zkochan/src/foo': {
// dependencies: ['/home/zkochan/src/bar'],
// manifest: {
// name: 'foo',
// version: '1.0.0',
// dependencies: {
// bar: '^1.0.0',
// },
// },
// },
// '/home/zkochan/src/bar': {
// dependencies: [],
// manifest: {
// name: 'bar',
// version: '1.1.0',
// },
// },
// }
License
3.0.0
27 days ago
2.0.16
1 month ago
2.0.15
2 months ago
2.0.14
3 months ago
2.0.13
4 months ago
2.0.12
5 months ago
2.0.5
8 months ago
2.0.11
6 months ago
2.0.7
7 months ago
2.0.6
8 months ago
2.0.9
7 months ago
2.0.10
6 months ago
2.0.8
7 months ago
2.0.3
1 year ago
2.0.4
1 year ago
2.0.2
1 year ago
2.0.1
1 year ago
2.0.0
1 year ago
1.0.0
1 year ago