Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions .github/renovate.json
Original file line number Diff line number Diff line change
Expand Up @@ -163,8 +163,7 @@
"anyhow",
"append-only-vec",
"arcstr",
"async-channel",
"async-scoped",
"async-lock",
"base-encode",
"base64-simd",
"bitflags",
Expand All @@ -173,6 +172,7 @@
"dashmap",
"derive_more",
"dunce",
"event-listener",
"fast-glob",
"flate2",
"form_urlencoded",
Expand Down Expand Up @@ -212,6 +212,7 @@
"rolldown-ariadne",
"rolldown-notify",
"rolldown-notify-debouncer-full",
"rolldown-notify-napi",
"rustc-hash",
"schemars",
"self_cell",
Expand Down
15 changes: 11 additions & 4 deletions .github/scripts/upgrade-deps-utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,18 @@ export function getBundledDependencyRanges(
const coreRequire = createRequire(join(root, 'packages/core/package.json'));
const tsdownRequire = createRequire(coreRequire.resolve('tsdown/package.json'));
const pluginPath = tsdownRequire.resolve('rolldown-plugin-dts/package.json');
const pluginDependencies = readJsonObject(pluginPath).dependencies;
// Yuku 0.20 merged the parser into the native `yuku` package. Support both
// plugin layouts while keeping core's external aligned with the bundled code.
const yukuPackage =
isObjectValue(pluginDependencies) && typeof pluginDependencies['yuku-parser'] === 'string'
? 'yuku-parser'
: 'yuku';
const vitePath = join(root, 'vite/packages/vite/package.json');
// These packages stay external in packages/core/build.ts. Follow their
// bundled consumers rather than independently selecting the latest releases.
const sources: Array<{ path: string; field: DependencyField; name: string }> = [
{ path: pluginPath, field: 'dependencies', name: 'yuku-parser' },
{ path: pluginPath, field: 'dependencies', name: yukuPackage },
{ path: vitePath, field: 'dependencies', name: 'postcss' },
{ path: vitePath, field: 'optionalDependencies', name: 'fsevents' },
];
Expand All @@ -28,9 +35,9 @@ export function getBundledDependencyRanges(
if (typeof range !== 'string' || range.trim() === '') {
throw new Error(`Missing ${field}.${name} in ${path}; review core's externals`);
}
if (name === 'yuku-parser') {
// Pin the runtime parser to the exact version resolved by the bundled plugin.
const parserPath = createRequire(path).resolve('yuku-parser/package.json');
if (name === 'yuku-parser' || name === 'yuku') {
// Pin the runtime package to the exact version resolved by the bundled plugin.
const parserPath = createRequire(path).resolve(`${name}/package.json`);
const { version } = readJsonObject(parserPath);
if (typeof version !== 'string' || version.trim() === '') {
throw new Error(`Missing version in ${parserPath}; review core's externals`);
Expand Down
Loading
Loading