Skip to content

Commit dcf3cc0

Browse files
committed
renovate - custom file match for npm
1 parent a8a9c8b commit dcf3cc0

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

renovate.json5

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,15 @@
1313
"labels": [
1414
"dependency upgrade"
1515
],
16+
// npm マネージャ固有の設定
17+
"npm": {
18+
// デフォルトはだいたい "(^|/)package\\.json$"
19+
// ここにサブディレクトリを含むパターンを追加
20+
"fileMatch": [
21+
"(^|/)package\\.json$", // 既定のパターン
22+
"(^|/)examples/.+/package\\.json$" // 追加で読みたいパターン
23+
]
24+
},
1625
"packageRules": [
1726
{
1827
"matchPackagePatterns": [
@@ -31,14 +40,5 @@
3140
"before 4am"
3241
]
3342
},
34-
{
35-
// npm の依存関係を扱う
36-
"managers": ["npm"],
37-
// どこを見にいくか
38-
"paths": [
39-
"package.json",
40-
"examples/*/package.json"
41-
]
42-
}
4343
]
4444
}

0 commit comments

Comments
 (0)