update-flat-package-tree
v2.0.0
Published
update a flat package dependency tree manifest for a new package version
Downloads
1
Readme
Given a flat package dependency tree manifest like:
[
{
"name": "b",
"version": "1.0.0",
"range": "^1.0.0",
"links": [
{
"name": "c",
"version": "1.0.0",
"range": "^1.0.0"
}
]
},
{
"name": "c",
"version": "1.0.0",
"links": []
}
]
an updated package name like 'c'
,
an updated package version like '1.0.1'
,
and a dependency tree manifest for the updated package like:
{
"name": "c",
"version": "1.0.1",
"links": []
}
update the original manifest to use the updated package where possible:
[
{
"name": "b",
"version": "1.0.0",
"range": "^1.0.0",
"links": [
{
"name": "c",
"version": "1.0.1",
"range": "^1.0.0"
}
]
},
{
"name": "c",
"version": "1.0.1",
"links": []
}
]