-
Notifications
You must be signed in to change notification settings - Fork 231
Expand file tree
/
Copy pathupgrade-deps.ts
More file actions
589 lines (544 loc) · 20.1 KB
/
Copy pathupgrade-deps.ts
File metadata and controls
589 lines (544 loc) · 20.1 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
import fs from 'node:fs';
import path from 'node:path';
const ROOT = process.cwd();
const META_DIR = process.env.UPGRADE_DEPS_META_DIR;
type Change = {
old: string | null;
new: string;
tag?: string;
};
type GitHubTag = {
name?: unknown;
commit?: {
sha?: unknown;
};
};
type LatestTag = {
sha: string;
tag: string;
};
type LatestTagOptions = {
stableOnly?: boolean;
};
type NpmLatestResponse = {
version?: unknown;
dependencies?: Record<string, string>;
};
type UpstreamVersions = {
rolldown: {
hash: string;
};
vite: {
hash: string;
};
};
type PnpmWorkspaceVersions = {
vitest: string;
tsdown: string;
lightningcss: string;
oxcNodeCli: string;
oxcNodeCore: string;
oxfmt: string;
oxlint: string;
oxlintTsgolint: string;
oxcProjectRuntime: string;
oxcProjectTypes: string;
oxcMinify: string;
oxcParser: string;
oxcTransform: string;
};
type PnpmWorkspaceEntry = {
name: string;
pattern: RegExp;
replacement: string;
newVersion: string;
};
type PackageJson = {
devDependencies?: Record<string, string>;
peerDependencies?: Record<string, string>;
};
const STABLE_SEMVER_TAG_RE = /^v?\d+\.\d+\.\d+$/;
const isFullSha = (s: string): boolean => /^[0-9a-f]{40}$/.test(s);
const changes = new Map<string, Change>();
function readJsonFile(filePath: string) {
return JSON.parse(fs.readFileSync(filePath, 'utf8'));
}
function recordChange(
name: string,
oldValue: string | null | undefined,
newValue: string,
tag?: string,
) {
const entry: Change = { old: oldValue ?? null, new: newValue };
if (tag) {
entry.tag = tag;
}
changes.set(name, entry);
if (oldValue !== newValue) {
console.log(` ${name}: ${oldValue ?? '(unset)'} -> ${newValue}`);
} else {
console.log(` ${name}: ${newValue} (unchanged)`);
}
}
// ============ GitHub API ============
async function getLatestTag(
owner: string,
repo: string,
options: LatestTagOptions = {},
): Promise<LatestTag> {
const perPage = options.stableOnly ? 100 : 1;
const res = await fetch(
`https://api.github.com/repos/${owner}/${repo}/tags?per_page=${perPage}`,
{
headers: {
Authorization: `token ${process.env.GITHUB_TOKEN}`,
Accept: 'application/vnd.github.v3+json',
},
},
);
if (!res.ok) {
throw new Error(`Failed to fetch tags for ${owner}/${repo}: ${res.status} ${res.statusText}`);
}
const tags = (await res.json()) as GitHubTag[];
if (!Array.isArray(tags) || !tags.length) {
throw new Error(`No tags found for ${owner}/${repo}`);
}
const latest = options.stableOnly
? tags.find((tag) => typeof tag.name === 'string' && STABLE_SEMVER_TAG_RE.test(tag.name))
: tags[0];
if (!latest) {
throw new Error(`No stable semver tags found for ${owner}/${repo}`);
}
if (typeof latest?.commit?.sha !== 'string' || typeof latest.name !== 'string') {
throw new Error(`Invalid tag structure for ${owner}/${repo}: missing SHA or name`);
}
console.log(`${repo} -> ${latest.name} (${latest.commit.sha.slice(0, 7)})`);
return { sha: latest.commit.sha, tag: latest.name };
}
// ============ npm Registry ============
async function fetchNpmLatest(packageName: string): Promise<NpmLatestResponse> {
const res = await fetch(`https://registry.npmjs.org/${packageName}/latest`);
if (!res.ok) {
throw new Error(
`Failed to fetch npm metadata for ${packageName}: ${res.status} ${res.statusText}`,
);
}
return (await res.json()) as NpmLatestResponse;
}
async function getLatestNpmVersion(packageName: string): Promise<string> {
const data = await fetchNpmLatest(packageName);
if (typeof data.version !== 'string') {
throw new Error(`Invalid npm response for ${packageName}: missing version field`);
}
return data.version;
}
// Read a dependency range from the latest published version of `packageName`,
// e.g. the `lightningcss` range that the bundled `@tsdown/css` depends on.
async function getNpmDependencyRange(packageName: string, dependencyName: string): Promise<string> {
const data = await fetchNpmLatest(packageName);
const range = data.dependencies?.[dependencyName];
if (typeof range !== 'string') {
throw new Error(
`Invalid npm response for ${packageName}: missing dependencies.${dependencyName}`,
);
}
return range;
}
// ============ Update .upstream-versions.json ============
async function updateUpstreamVersions(): Promise<void> {
const filePath = path.join(ROOT, 'packages/tools/.upstream-versions.json');
const data: UpstreamVersions = readJsonFile(filePath);
const oldRolldownHash = data.rolldown.hash;
const oldViteHash = data.vite.hash;
const [rolldown, vite] = await Promise.all([
getLatestTag('rolldown', 'rolldown'),
getLatestTag('vitejs', 'vite', { stableOnly: true }),
]);
data.rolldown.hash = rolldown.sha;
data.vite.hash = vite.sha;
recordChange('rolldown', oldRolldownHash, rolldown.sha, rolldown.tag);
recordChange('vite', oldViteHash, vite.sha, vite.tag);
fs.writeFileSync(filePath, JSON.stringify(data, null, 2) + '\n');
console.log('Updated .upstream-versions.json');
}
// ============ Update pnpm-workspace.yaml ============
async function updatePnpmWorkspace(versions: PnpmWorkspaceVersions): Promise<void> {
const filePath = path.join(ROOT, 'pnpm-workspace.yaml');
let content = fs.readFileSync(filePath, 'utf8');
// oxlint's trailing \n in the pattern disambiguates from oxlint-tsgolint.
// All @vitest/* catalog entries (browser + core direct deps) must stay pinned
// to the same exact version as `vitest` itself, otherwise the catalog drifts
// from VITEST_VERSION.
const vitestExactVersionPackages = [
'@vitest/browser',
'@vitest/browser-playwright',
'@vitest/browser-preview',
'@vitest/browser-webdriverio',
'@vitest/expect',
'@vitest/mocker',
'@vitest/pretty-format',
'@vitest/runner',
'@vitest/snapshot',
'@vitest/spy',
'@vitest/utils',
];
const vitestExactVersionEntries: PnpmWorkspaceEntry[] = vitestExactVersionPackages.map((pkg) => ({
name: pkg,
pattern: new RegExp(`'${pkg.replaceAll('/', '\\/')}': ([\\d.]+(?:-[\\w.]+)?)`),
replacement: `'${pkg}': ${versions.vitest}`,
newVersion: versions.vitest,
}));
const entries: PnpmWorkspaceEntry[] = [
{
name: 'vitest',
// The `@voidzero-dev/vite-plus-test` wrapper (which used to be aliased
// here via `vitest-dev: npm:vitest@^…`) has been removed. Vitest is now
// a plain catalog entry pinned to an exact version (`vitest: x.y.z`),
// so match that shape directly. The leading newline anchor disambiguates
// from neighbouring keys like `vitepress-*` and `@vitest/browser`.
pattern: /\n {2}vitest: ([\d.]+(?:-[\w.]+)?)\n/,
replacement: `\n vitest: ${versions.vitest}\n`,
newVersion: versions.vitest,
},
...vitestExactVersionEntries,
{
name: 'tsdown',
pattern: /tsdown: \^([\d.]+(?:-[\w.]+)?)/,
replacement: `tsdown: ^${versions.tsdown}`,
newVersion: versions.tsdown,
},
// `@tsdown/css` and `@tsdown/exe` are bundled into core and published in
// lockstep with tsdown (they exact-peer-depend on the same tsdown version),
// so pin both catalog entries to the tsdown version to avoid drift.
{
name: '@tsdown/css',
pattern: /'@tsdown\/css': \^([\d.]+(?:-[\w.]+)?)/,
replacement: `'@tsdown/css': ^${versions.tsdown}`,
newVersion: versions.tsdown,
},
{
name: '@tsdown/exe',
pattern: /'@tsdown\/exe': \^([\d.]+(?:-[\w.]+)?)/,
replacement: `'@tsdown/exe': ^${versions.tsdown}`,
newVersion: versions.tsdown,
},
// `lightningcss` is a core dependency consumed by the bundled `@tsdown/css`.
// Track exactly what `@tsdown/css` requires (already an `^x.y.z` range) so a
// tsdown upgrade that bumps lightningcss is mirrored here.
{
name: 'lightningcss',
// Match any range value (not just `^x.y.z`) so the pattern can re-match
// whatever `@tsdown/css` declares (`~`, `>=`, compound ranges) on the next run.
pattern: /\n {2}lightningcss: ([^\n]+)\n/,
replacement: `\n lightningcss: ${versions.lightningcss}\n`,
newVersion: versions.lightningcss,
},
{
name: '@oxc-node/cli',
pattern: /'@oxc-node\/cli': \^([\d.]+(?:-[\w.]+)?)/,
replacement: `'@oxc-node/cli': ^${versions.oxcNodeCli}`,
newVersion: versions.oxcNodeCli,
},
{
name: '@oxc-node/core',
pattern: /'@oxc-node\/core': \^([\d.]+(?:-[\w.]+)?)/,
replacement: `'@oxc-node/core': ^${versions.oxcNodeCore}`,
newVersion: versions.oxcNodeCore,
},
{
name: 'oxfmt',
pattern: /oxfmt: =([\d.]+(?:-[\w.]+)?)/,
replacement: `oxfmt: =${versions.oxfmt}`,
newVersion: versions.oxfmt,
},
{
name: 'oxlint',
pattern: /oxlint: =([\d.]+(?:-[\w.]+)?)\n/,
replacement: `oxlint: =${versions.oxlint}\n`,
newVersion: versions.oxlint,
},
{
name: 'oxlint-tsgolint',
pattern: /oxlint-tsgolint: =([\d.]+(?:-[\w.]+)?)/,
replacement: `oxlint-tsgolint: =${versions.oxlintTsgolint}`,
newVersion: versions.oxlintTsgolint,
},
{
name: '@oxc-project/runtime',
pattern: /'@oxc-project\/runtime': =([\d.]+(?:-[\w.]+)?)/,
replacement: `'@oxc-project/runtime': =${versions.oxcProjectRuntime}`,
newVersion: versions.oxcProjectRuntime,
},
{
name: '@oxc-project/types',
pattern: /'@oxc-project\/types': =([\d.]+(?:-[\w.]+)?)/,
replacement: `'@oxc-project/types': =${versions.oxcProjectTypes}`,
newVersion: versions.oxcProjectTypes,
},
{
name: 'oxc-minify',
pattern: /oxc-minify: =([\d.]+(?:-[\w.]+)?)/,
replacement: `oxc-minify: =${versions.oxcMinify}`,
newVersion: versions.oxcMinify,
},
{
name: 'oxc-parser',
pattern: /oxc-parser: =([\d.]+(?:-[\w.]+)?)/,
replacement: `oxc-parser: =${versions.oxcParser}`,
newVersion: versions.oxcParser,
},
{
name: 'oxc-transform',
pattern: /oxc-transform: =([\d.]+(?:-[\w.]+)?)/,
replacement: `oxc-transform: =${versions.oxcTransform}`,
newVersion: versions.oxcTransform,
},
];
for (const { name, pattern, replacement, newVersion } of entries) {
let oldVersion: string | undefined;
content = content.replace(pattern, (_match: string, captured: string) => {
oldVersion = captured;
return replacement;
});
if (oldVersion === undefined) {
throw new Error(
`Failed to match ${name} in pnpm-workspace.yaml — the pattern ${pattern} is stale, ` +
`please update it in .github/scripts/upgrade-deps.ts`,
);
}
recordChange(name, oldVersion, newVersion);
}
fs.writeFileSync(filePath, content);
console.log('Updated pnpm-workspace.yaml');
}
// ============ Update VITEST_VERSION constant ============
// Keeps the TypeScript source-of-truth (`packages/cli/src/utils/constants.ts`)
// in sync with the `vitest:` catalog entry in pnpm-workspace.yaml. The
// constant is consumed by both `packages/cli` and `ecosystem-ci/patch-project.ts`
// (which re-imports it), so daily upstream bumps must update it here too.
async function updateVitestVersionConstant(vitestVersion: string): Promise<void> {
const filePath = path.join(ROOT, 'packages/cli/src/utils/constants.ts');
const content = fs.readFileSync(filePath, 'utf8');
const pattern = /export const VITEST_VERSION = '([\d.]+(?:-[\w.]+)?)';/;
let oldVersion: string | undefined;
const updated = content.replace(pattern, (_match: string, captured: string) => {
oldVersion = captured;
return `export const VITEST_VERSION = '${vitestVersion}';`;
});
if (oldVersion === undefined) {
throw new Error(
`Failed to match VITEST_VERSION in ${filePath} — the pattern ${pattern} is stale, ` +
`please update it in .github/scripts/upgrade-deps.ts`,
);
}
fs.writeFileSync(filePath, updated);
recordChange('VITEST_VERSION constant', oldVersion, vitestVersion);
console.log('Updated packages/cli/src/utils/constants.ts');
}
// ============ Update README.md manual-migration vitest pins ============
// The manual-migration guide pins `vitest` to an exact version in three places —
// the npm/Bun `overrides` block, the pnpm-workspace `overrides` block, and the
// Yarn `resolutions` block — so a hand-migrated project shares one Vitest copy
// with the bundled `vp test`. Those literals are NOT interpolated from
// VITEST_VERSION, so a daily bump must rewrite them or the guide drifts behind the
// bundled version. The packages/cli/README.md mirror (refreshed from the root
// README's suffix at build time) is kept in sync here too so the daily PR stays
// self-consistent without depending on a build step running first.
async function updateReadmeVitestPins(vitestVersion: string): Promise<void> {
const readmePaths = [path.join(ROOT, 'README.md'), path.join(ROOT, 'packages/cli/README.md')];
// JSON form: `"vitest": "4.1.9"` — npm/Bun `overrides` + Yarn `resolutions` (2 blocks)
const jsonPattern = /("vitest": ")[\d.]+(?:-[\w.]+)?(")/g;
// YAML form: ` vitest: 4.1.9` — pnpm-workspace `overrides` (1 block)
const yamlPattern = /(\n\s*vitest: )[\d.]+(?:-[\w.]+)?(\n)/g;
// Both READMEs carry the same three manual-migration pins (the cli copy mirrors the
// root's suffix). Assert the exact shape so a daily run fails loudly — like every
// other updater here — if a block is reworded or removed, instead of silently
// shipping a README where only some pins were bumped.
const EXPECTED_JSON = 2;
const EXPECTED_YAML = 1;
let oldVersion: string | undefined;
const capture = (match: string): void => {
const found = /(\d[\d.]*(?:-[\w.]+)?)/.exec(match)?.[1];
if (found && oldVersion === undefined) {
oldVersion = found;
}
};
for (const filePath of readmePaths) {
if (!fs.existsSync(filePath)) {
continue;
}
const content = fs.readFileSync(filePath, 'utf8');
let jsonMatched = 0;
let yamlMatched = 0;
let updated = content.replace(jsonPattern, (match: string, pre: string, post: string) => {
jsonMatched++;
capture(match);
return `${pre}${vitestVersion}${post}`;
});
updated = updated.replace(yamlPattern, (match: string, pre: string, post: string) => {
yamlMatched++;
capture(match);
return `${pre}${vitestVersion}${post}`;
});
if (jsonMatched !== EXPECTED_JSON || yamlMatched !== EXPECTED_YAML) {
throw new Error(
`Expected ${EXPECTED_JSON} JSON + ${EXPECTED_YAML} YAML vitest pins in ${filePath}, ` +
`found ${jsonMatched} + ${yamlMatched} — the manual-migration section changed, ` +
`please update updateReadmeVitestPins in .github/scripts/upgrade-deps.ts`,
);
}
fs.writeFileSync(filePath, updated);
console.log(`Updated ${path.relative(ROOT, filePath)}`);
}
recordChange('README vitest pins', oldVersion ?? null, vitestVersion);
}
// ============ Update packages/core/package.json ============
async function updateCorePackage(devtoolsVersion: string): Promise<void> {
const filePath = path.join(ROOT, 'packages/core/package.json');
const pkg: PackageJson = readJsonFile(filePath);
const devDependencies = pkg.devDependencies;
const currentDevtools = devDependencies?.['@vitejs/devtools'];
if (!currentDevtools) {
return;
}
devDependencies['@vitejs/devtools'] = `^${devtoolsVersion}`;
recordChange('@vitejs/devtools', currentDevtools.replace(/^[\^~]/, ''), devtoolsVersion);
fs.writeFileSync(filePath, JSON.stringify(pkg, null, 2) + '\n');
console.log('Updated packages/core/package.json');
}
// ============ Write metadata files for PR description ============
function writeMetaFiles(): void {
if (!META_DIR) {
return;
}
fs.mkdirSync(META_DIR, { recursive: true });
const versionsObj = Object.fromEntries(changes);
fs.writeFileSync(
path.join(META_DIR, 'versions.json'),
JSON.stringify(versionsObj, null, 2) + '\n',
);
const changed = [...changes.entries()].filter(([, v]) => v.old !== v.new);
const unchanged = [...changes.entries()].filter(([, v]) => v.old === v.new);
const formatVersion = (v: Change): string => {
if (v.tag) {
return `${v.tag} (${v.new.slice(0, 7)})`;
}
if (isFullSha(v.new)) {
return v.new.slice(0, 7);
}
return v.new;
};
const formatOld = (v: Change): string => {
if (!v.old) {
return '(unset)';
}
if (isFullSha(v.old)) {
return v.old.slice(0, 7);
}
return v.old;
};
const commitLines = ['feat(deps): upgrade upstream dependencies', ''];
if (changed.length) {
for (const [name, v] of changed) {
commitLines.push(`- ${name}: ${formatOld(v)} -> ${formatVersion(v)}`);
}
} else {
commitLines.push('- no version changes detected');
}
commitLines.push('');
fs.writeFileSync(path.join(META_DIR, 'commit-message.txt'), commitLines.join('\n'));
const bodyLines = ['## Summary', ''];
if (changed.length) {
bodyLines.push('Automated daily upgrade of upstream dependencies.');
} else {
bodyLines.push('Automated daily upgrade run — no upstream version changes detected.');
}
bodyLines.push('', '## Dependency updates', '');
if (changed.length) {
bodyLines.push('| Package | From | To |');
bodyLines.push('| --- | --- | --- |');
for (const [name, v] of changed) {
bodyLines.push(`| \`${name}\` | \`${formatOld(v)}\` | \`${formatVersion(v)}\` |`);
}
} else {
bodyLines.push('_No version changes._');
}
if (unchanged.length) {
bodyLines.push('', '<details><summary>Unchanged dependencies</summary>', '');
for (const [name, v] of unchanged) {
bodyLines.push(`- \`${name}\`: \`${formatVersion(v)}\``);
}
bodyLines.push('', '</details>');
}
bodyLines.push('', '## Code changes', '', '_No additional code changes recorded._', '');
fs.writeFileSync(path.join(META_DIR, 'pr-body.md'), bodyLines.join('\n'));
console.log(`Wrote metadata files to ${META_DIR}`);
}
console.log('Fetching latest versions…');
const [
vitestVersion,
tsdownVersion,
lightningcssVersion,
devtoolsVersion,
oxcNodeCliVersion,
oxcNodeCoreVersion,
oxfmtVersion,
oxlintVersion,
oxlintTsgolintVersion,
oxcProjectRuntimeVersion,
oxcProjectTypesVersion,
oxcMinifyVersion,
oxcParserVersion,
oxcTransformVersion,
] = await Promise.all([
getLatestNpmVersion('vitest'),
getLatestNpmVersion('tsdown'),
// Mirror exactly what the bundled @tsdown/css depends on.
getNpmDependencyRange('@tsdown/css', 'lightningcss'),
getLatestNpmVersion('@vitejs/devtools'),
getLatestNpmVersion('@oxc-node/cli'),
getLatestNpmVersion('@oxc-node/core'),
getLatestNpmVersion('oxfmt'),
getLatestNpmVersion('oxlint'),
getLatestNpmVersion('oxlint-tsgolint'),
getLatestNpmVersion('@oxc-project/runtime'),
getLatestNpmVersion('@oxc-project/types'),
getLatestNpmVersion('oxc-minify'),
getLatestNpmVersion('oxc-parser'),
getLatestNpmVersion('oxc-transform'),
]);
console.log(`vitest: ${vitestVersion}`);
console.log(`tsdown: ${tsdownVersion}`);
console.log(`lightningcss (from @tsdown/css): ${lightningcssVersion}`);
console.log(`@vitejs/devtools: ${devtoolsVersion}`);
console.log(`@oxc-node/cli: ${oxcNodeCliVersion}`);
console.log(`@oxc-node/core: ${oxcNodeCoreVersion}`);
console.log(`oxfmt: ${oxfmtVersion}`);
console.log(`oxlint: ${oxlintVersion}`);
console.log(`oxlint-tsgolint: ${oxlintTsgolintVersion}`);
console.log(`@oxc-project/runtime: ${oxcProjectRuntimeVersion}`);
console.log(`@oxc-project/types: ${oxcProjectTypesVersion}`);
console.log(`oxc-minify: ${oxcMinifyVersion}`);
console.log(`oxc-parser: ${oxcParserVersion}`);
console.log(`oxc-transform: ${oxcTransformVersion}`);
await updateUpstreamVersions();
await updatePnpmWorkspace({
vitest: vitestVersion,
tsdown: tsdownVersion,
lightningcss: lightningcssVersion,
oxcNodeCli: oxcNodeCliVersion,
oxcNodeCore: oxcNodeCoreVersion,
oxfmt: oxfmtVersion,
oxlint: oxlintVersion,
oxlintTsgolint: oxlintTsgolintVersion,
oxcProjectRuntime: oxcProjectRuntimeVersion,
oxcProjectTypes: oxcProjectTypesVersion,
oxcMinify: oxcMinifyVersion,
oxcParser: oxcParserVersion,
oxcTransform: oxcTransformVersion,
});
await updateVitestVersionConstant(vitestVersion);
await updateReadmeVitestPins(vitestVersion);
await updateCorePackage(devtoolsVersion);
writeMetaFiles();
console.log('Done!');