Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
"@experimental-api-clients-automation/requester-node-http": "0.3.0"
},
"devDependencies": {
"@types/node": "16.11.26",
"@types/node": "16.11.38",
"typescript": "4.6.3"
},
"engines": {
Expand Down
69 changes: 63 additions & 6 deletions renovate.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
{
"$schema": "https://docs.renovatebot.com/renovate-schema.json",
"extends": [
"config:js-app",
"algolia"
Expand All @@ -7,7 +8,8 @@
"npm",
"nvm",
"gradle",
"composer"
"composer",
"regex"
],
"baseBranches": [
"chore/renovateBaseBranch"
Expand All @@ -22,20 +24,75 @@
],
"regexManagers": [
{
"description": "Update openapitools-cli version in the config file",
"fileMatch": [
"config/openapitools.json"
"openapitools.json"
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

it finds the folder config by itself ?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Exactly! Any files matching the fileMatch pattern will be selected

],
"matchStrings": [
"\"version\": \"(?<currentValue>.*?)\","
"\\s\"version\": \"(?<currentValue>.*?)\",\\s"
],
"depNameTemplate": "com.openapitools:openapi-generator-cli",
"depNameTemplate": "org.openapitools:openapi-generator-cli",
"datasourceTemplate": "maven"
},
{
"description": "Update package.json mustache devDeps",
"fileMatch": [
"package.mustache"
],
"matchStrings": [
"\\s\"@types/node\": \"(?<currentValue>.*?)\",\\s"
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

is it possible to select everything under dependencies with regex ?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I wanted to at first, but did not found a way as depNameTemplate does not accept an array

],
"depNameTemplate": "@types/node",
"datasourceTemplate": "npm"
},
{
"description": "Update package.json mustache devDeps",
"fileMatch": [
"package.mustache"
],
"matchStrings": [
"\\s\"typescript\": \"(?<currentValue>.*?)\",\\s"
],
"depNameTemplate": "typescript",
"datasourceTemplate": "npm"
},
{
"description": "Update package.json mustache devDeps",
"fileMatch": [
"package.mustache"
],
"matchStrings": [
"\\s\"jest\": \"(?<currentValue>.*?)\",\\s"
],
"depNameTemplate": "jest",
"datasourceTemplate": "npm"
},
{
"description": "Update package.json mustache devDeps",
"fileMatch": [
"package.mustache"
],
"matchStrings": [
"\\s\"ts-jest\": \"(?<currentValue>.*?)\",\\s"
],
"depNameTemplate": "ts-jest",
"datasourceTemplate": "npm"
},
{
"description": "Update package.json mustache devDeps",
"fileMatch": [
"package.mustache"
],
"matchStrings": [
"\\s\"ts-node\": \"(?<currentValue>.*?)\",\\s"
],
"depNameTemplate": "ts-node",
"datasourceTemplate": "npm"
}
],
"ignorePaths": [
"**/client-abtesting/**",
"**/algoliasearch/**",
"**/algoliasearch-lite/**",
"**/client-abtesting/**",
"**/client-analytics/**",
"**/client-insights/**",
"**/client-personalization/**",
Expand Down
9 changes: 1 addition & 8 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -1439,7 +1439,7 @@ __metadata:
"@experimental-api-clients-automation/client-search": 0.3.0
"@experimental-api-clients-automation/requester-browser-xhr": 0.3.0
"@experimental-api-clients-automation/requester-node-http": 0.3.0
"@types/node": 16.11.26
"@types/node": 16.11.38
typescript: 4.6.3
languageName: unknown
linkType: soft
Expand Down Expand Up @@ -4447,13 +4447,6 @@ __metadata:
languageName: node
linkType: hard

"@types/node@npm:16.11.26":
version: 16.11.26
resolution: "@types/node@npm:16.11.26"
checksum: 57757caaba3f0d95de82198cb276a1002c49b710108c932a1d02d7c91ff2fa57cfe2dd19fde60853b6dd90b0964b3cf35557981d2628e20aed6a909057aedfe6
languageName: node
linkType: hard

"@types/node@npm:16.11.38":
version: 16.11.38
resolution: "@types/node@npm:16.11.38"
Expand Down