diff --git a/renovate.json5 b/renovate.json5 index 1fb9822..e14207f 100644 --- a/renovate.json5 +++ b/renovate.json5 @@ -1,27 +1,32 @@ { - "$schema": "https://docs.renovatebot.com/renovate-schema.json", - "extends": [ - "github>Kesin11/renovate-config:oss", - ":prConcurrentLimit10", - "schedule:weekends" + $schema: 'https://docs.renovatebot.com/renovate-schema.json', + extends: [ + 'github>Kesin11/renovate-config:oss', + ':prConcurrentLimit10', + 'schedule:weekends', ], - "regexManagers": [ - // ref: https://blog.s2n.tech/articles/renovate-deno + customManagers: [ { - "fileMatch": ["\\.tsx?$"], - "matchStrings": [ - "(?:im|ex)port(?:.|\\s)+?from\\s*['\"](?https://deno.land/.+?)@v?(?[\\.\\d]+).*?['\"]", - "(?:@deno-types=)['\"](?https://deno.land/.+?)@v?(?[\\.\\d]+).*?['\"]", + customType: 'regex', + fileMatch: [ + '\\.tsx?$', ], - "datasourceTemplate": "deno" + matchStrings: [ + '(?:im|ex)port(?:.|\\s)+?from\\s*[\'"](?https://deno.land/.+?)@v?(?[\\.\\d]+).*?[\'"]', + '(?:@deno-types=)[\'"](?https://deno.land/.+?)@v?(?[\\.\\d]+).*?[\'"]', + ], + datasourceTemplate: 'deno', }, { - "fileMatch": ["\\.tsx?$"], - "matchStrings": [ - "(?:im|ex)port(?:.|\\s)+?from\\s*['\"]npm:(?.+?)@.*?(?[\\.\\d]+).*?['\"]", - "(?:@deno-types=)['\"]npm:(?.+?)@.*?(?[\\.\\d]+).*?['\"]", + customType: 'regex', + fileMatch: [ + '\\.tsx?$', + ], + matchStrings: [ + '(?:im|ex)port(?:.|\\s)+?from\\s*[\'"]npm:(?.+?)@.*?(?[\\.\\d]+).*?[\'"]', + '(?:@deno-types=)[\'"]npm:(?.+?)@.*?(?[\\.\\d]+).*?[\'"]', ], - "datasourceTemplate": "npm" - } - ] + datasourceTemplate: 'npm', + }, + ], }