File tree 2 files changed +13
-1
lines changed
2 files changed +13
-1
lines changed Original file line number Diff line number Diff line change 28
28
// breaking changes
29
29
"kill-port" , // `kill-port:^2.0.0 has perf issues (#8392)
30
30
] ,
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
+ ] ,
31
40
}
Original file line number Diff line number Diff line change @@ -593,10 +593,13 @@ function pkgFromUserAgent(userAgent: string | undefined): PkgInfo | undefined {
593
593
}
594
594
595
595
function setupReactSwc ( root : string , isTs : boolean ) {
596
+ // renovate: datasource=npm depName=@vitejs/plugin-react-swc
597
+ const reactSwcPluginVersion = '3.7.2'
598
+
596
599
editFile ( path . resolve ( root , 'package.json' ) , ( content ) => {
597
600
return content . replace (
598
601
/ " @ 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 } "` ,
600
603
)
601
604
} )
602
605
editFile (
You can’t perform that action at this time.
0 commit comments