Skip to content

Commit

Permalink
fix(project): Correct file match pattern for Renovate
Browse files Browse the repository at this point in the history
Fixes repeat pattern when matching files with the custom Renovate
manager.

Fixes #905.
  • Loading branch information
langri-sha committed Aug 29, 2024
1 parent 22630b7 commit dec2a74
Show file tree
Hide file tree
Showing 4 changed files with 21 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"type": "patch",
"comment": "fix(project): Correct file match pattern for Renovate",
"packageName": "@langri-sha/projen-project",
"email": "[email protected]",
"dependentChangeType": "patch"
}
12 changes: 12 additions & 0 deletions packages/projen-project/src/__snapshots__/index.test.ts.snap
Original file line number Diff line number Diff line change
Expand Up @@ -2480,6 +2480,18 @@ node_modules/
"pnpm@(?<currentValue>[^']+)",
],
},
{
"customType": "regex",
"datasourceTemplate": "npm",
"depNameTemplate": "pnpm",
"depTypeTemplate": "dependencies",
"fileMatch": [
"\\.(js|cjs|mjs|ts|mts|cts|ya?ml)$",
],
"matchStrings": [
"(bun|p?np)x (?<depName>[\\w\\-\\/]+)@(?<currentValue>[^s]+)",
],
},
],
"extends": [
"config:recommended",
Expand Down
2 changes: 1 addition & 1 deletion packages/projen-project/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -628,7 +628,7 @@ export class Project extends BaseProject {
{
customType: 'regex',
datasourceTemplate: 'npm',
fileMatch: ['*.(js|cjs|mjs|ts|mts|cts|ya?ml)$'],
fileMatch: ['\\.(js|cjs|mjs|ts|mts|cts|ya?ml)$'],
matchStrings: [
'(bun|p?np)x (?<depName>[\\w\\-\\/]+)@(?<currentValue>[^s]+)',
],
Expand Down
2 changes: 1 addition & 1 deletion renovate.json5

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit dec2a74

Please sign in to comment.