Skip to content

Commit a4ee72f

Browse files
authored
fix(workflow): upgrade oxc catalog entries proactively (#1409)
Include @oxc-project/runtime, @oxc-project/types, oxc-minify, oxc-parser, and oxc-transform in upgrade-deps.mjs so the daily workflow bumps them to the latest npm version. Previously they only advanced when sync-remote-deps.ts resolved merge conflicts against rolldown/vite upstream catalogs.
1 parent 2e2c4c6 commit a4ee72f

File tree

2 files changed

+52
-0
lines changed

2 files changed

+52
-0
lines changed

.github/renovate.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,8 @@
1717
"rolldown",
1818
"/^oxc-.*/",
1919
"@oxc-node/*",
20+
"@oxc-project/*",
21+
"@vitejs/devtools",
2022
"oxfmt",
2123
"oxlint",
2224
"oxlint-tsgolint",

.github/scripts/upgrade-deps.mjs

Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -128,6 +128,36 @@ async function updatePnpmWorkspace(versions) {
128128
replacement: `oxlint-tsgolint: =${versions.oxlintTsgolint}`,
129129
newVersion: versions.oxlintTsgolint,
130130
},
131+
{
132+
name: '@oxc-project/runtime',
133+
pattern: /'@oxc-project\/runtime': =([\d.]+(?:-[\w.]+)?)/,
134+
replacement: `'@oxc-project/runtime': =${versions.oxcProjectRuntime}`,
135+
newVersion: versions.oxcProjectRuntime,
136+
},
137+
{
138+
name: '@oxc-project/types',
139+
pattern: /'@oxc-project\/types': =([\d.]+(?:-[\w.]+)?)/,
140+
replacement: `'@oxc-project/types': =${versions.oxcProjectTypes}`,
141+
newVersion: versions.oxcProjectTypes,
142+
},
143+
{
144+
name: 'oxc-minify',
145+
pattern: /oxc-minify: =([\d.]+(?:-[\w.]+)?)/,
146+
replacement: `oxc-minify: =${versions.oxcMinify}`,
147+
newVersion: versions.oxcMinify,
148+
},
149+
{
150+
name: 'oxc-parser',
151+
pattern: /oxc-parser: =([\d.]+(?:-[\w.]+)?)/,
152+
replacement: `oxc-parser: =${versions.oxcParser}`,
153+
newVersion: versions.oxcParser,
154+
},
155+
{
156+
name: 'oxc-transform',
157+
pattern: /oxc-transform: =([\d.]+(?:-[\w.]+)?)/,
158+
replacement: `oxc-transform: =${versions.oxcTransform}`,
159+
newVersion: versions.oxcTransform,
160+
},
131161
];
132162

133163
for (const { name, pattern, replacement, newVersion } of entries) {
@@ -278,6 +308,11 @@ const [
278308
oxfmtVersion,
279309
oxlintVersion,
280310
oxlintTsgolintVersion,
311+
oxcProjectRuntimeVersion,
312+
oxcProjectTypesVersion,
313+
oxcMinifyVersion,
314+
oxcParserVersion,
315+
oxcTransformVersion,
281316
] = await Promise.all([
282317
getLatestNpmVersion('vitest'),
283318
getLatestNpmVersion('tsdown'),
@@ -287,6 +322,11 @@ const [
287322
getLatestNpmVersion('oxfmt'),
288323
getLatestNpmVersion('oxlint'),
289324
getLatestNpmVersion('oxlint-tsgolint'),
325+
getLatestNpmVersion('@oxc-project/runtime'),
326+
getLatestNpmVersion('@oxc-project/types'),
327+
getLatestNpmVersion('oxc-minify'),
328+
getLatestNpmVersion('oxc-parser'),
329+
getLatestNpmVersion('oxc-transform'),
290330
]);
291331

292332
console.log(`vitest: ${vitestVersion}`);
@@ -297,6 +337,11 @@ console.log(`@oxc-node/core: ${oxcNodeCoreVersion}`);
297337
console.log(`oxfmt: ${oxfmtVersion}`);
298338
console.log(`oxlint: ${oxlintVersion}`);
299339
console.log(`oxlint-tsgolint: ${oxlintTsgolintVersion}`);
340+
console.log(`@oxc-project/runtime: ${oxcProjectRuntimeVersion}`);
341+
console.log(`@oxc-project/types: ${oxcProjectTypesVersion}`);
342+
console.log(`oxc-minify: ${oxcMinifyVersion}`);
343+
console.log(`oxc-parser: ${oxcParserVersion}`);
344+
console.log(`oxc-transform: ${oxcTransformVersion}`);
300345

301346
await updateUpstreamVersions();
302347
await updatePnpmWorkspace({
@@ -307,6 +352,11 @@ await updatePnpmWorkspace({
307352
oxfmt: oxfmtVersion,
308353
oxlint: oxlintVersion,
309354
oxlintTsgolint: oxlintTsgolintVersion,
355+
oxcProjectRuntime: oxcProjectRuntimeVersion,
356+
oxcProjectTypes: oxcProjectTypesVersion,
357+
oxcMinify: oxcMinifyVersion,
358+
oxcParser: oxcParserVersion,
359+
oxcTransform: oxcTransformVersion,
310360
});
311361
await updateTestPackage(vitestVersion);
312362
await updateCorePackage(devtoolsVersion);

0 commit comments

Comments
 (0)