Skip to content

Commit 511bfab

Browse files
authored
Renovate should update package-lock.json in examples automatically when toplevel dependencies are updated (#1108)
There are no issues with running the example, but if someone is concerned about diffs occurring in package-lock.json when running npm install in the projects under examples, we can let Renovate handle updating the lockfile for the examples when it updates the top-level package.json.
1 parent dad18f9 commit 511bfab

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

renovate.json

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,20 @@
1313
{
1414
"matchPackagePatterns": ["^line-openapi$"],
1515
"labels": ["dependency upgrade", "line-openapi-update"]
16+
},
17+
{
18+
"matchPaths": [
19+
"examples/*"
20+
],
21+
"postUpgradeTasks": {
22+
"commands": [
23+
"npm install"
24+
],
25+
"fileFilters": [
26+
"package.json",
27+
"package-lock.json"
28+
]
29+
}
1630
}
1731
]
1832
}

0 commit comments

Comments
 (0)