File tree Expand file tree Collapse file tree 2 files changed +13
-1
lines changed
Expand file tree Collapse file tree 2 files changed +13
-1
lines changed Original file line number Diff line number Diff line change 2828 // breaking changes
2929 "kill-port" , // `kill-port:^2.0.0 has perf issues (#8392)
3030 ] ,
31+ "customManagers" : [
32+ {
33+ "customType" : "regex" ,
34+ "fileMatch" : [ "packages\/create-vite\/src\/index\\.ts$" ] ,
35+ "matchStrings" : [
36+ "\/\/\\s*renovate:\\s+datasource=(?<datasource>\\S+)\\s+depName=(?<depName>\\S+)\\s+(?:var|let|const)\\s+\\S+\\s*=\\s*[\"'](?<currentValue>[^\"']+)[\"']" ,
37+ ] ,
38+ } ,
39+ ] ,
3140}
Original file line number Diff line number Diff line change @@ -593,10 +593,13 @@ function pkgFromUserAgent(userAgent: string | undefined): PkgInfo | undefined {
593593}
594594
595595function setupReactSwc ( root : string , isTs : boolean ) {
596+ // renovate: datasource=npm depName=@vitejs/plugin-react-swc
597+ const reactSwcPluginVersion = '3.7.2'
598+
596599 editFile ( path . resolve ( root , 'package.json' ) , ( content ) => {
597600 return content . replace (
598601 / " @ v i t e j s \/ p l u g i n - r e a c t " : " .+ ?" / ,
599- `"@vitejs/plugin-react-swc": "^3.7.2 "` ,
602+ `"@vitejs/plugin-react-swc": "^${ reactSwcPluginVersion } "` ,
600603 )
601604 } )
602605 editFile (
You can’t perform that action at this time.
0 commit comments