From d71b8a2f1c9a9bc21114811dcb3b8801b6756b36 Mon Sep 17 00:00:00 2001 From: imccyu <276526105+imccyu@users.noreply.github.com> Date: Sat, 19 Sep 2026 14:12:02 +0800 Subject: [PATCH] refactor(boot): narrow legacy-links exports and refresh resolution JSDoc isPackagedExecutable has one caller in its own module; the installation traversal comment names the runtime resolver instead of the removed fallback directory. --- packages/boot/app-boot/src/profile-resolution/legacy-links.ts | 2 +- packages/boot/app-boot/src/profile.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/boot/app-boot/src/profile-resolution/legacy-links.ts b/packages/boot/app-boot/src/profile-resolution/legacy-links.ts index 075f1a9d1c..6c67762b77 100644 --- a/packages/boot/app-boot/src/profile-resolution/legacy-links.ts +++ b/packages/boot/app-boot/src/profile-resolution/legacy-links.ts @@ -6,7 +6,7 @@ import { realpathSync } from 'node:fs' * Return whether the process reads application modules from pkg's virtual filesystem. * @returns whether pkg owns the module filesystem. */ -export function isPackagedExecutable(): boolean { +function isPackagedExecutable(): boolean { return (process as NodeJS.Process & { pkg?: unknown }).pkg !== undefined } diff --git a/packages/boot/app-boot/src/profile.ts b/packages/boot/app-boot/src/profile.ts index 5d4ba04b19..abea03462b 100644 --- a/packages/boot/app-boot/src/profile.ts +++ b/packages/boot/app-boot/src/profile.ts @@ -204,7 +204,7 @@ function profileDependencyNames(manifest: ProfileManifest): string[] { return [...Object.keys(manifest.dependencies ?? {}), ...Object.keys(manifest.peerDependencies ?? {})] } -/** Resolve the installation generation that every profile must find through the fallback directory. */ +/** Resolve the installation packages that the runtime resolver supplies to every profile. */ function resolveModuleFallbackEntries( installAnchor: string, skippedBundles: ReadonlySet, ): {