From 3e8be15f23d4dd537bafef909c9843ea36cdbffd Mon Sep 17 00:00:00 2001 From: Dotta Date: Wed, 4 Nov 2026 18:48:01 -0600 Subject: [PATCH] fix(build): keep maintenance bundle entries optional for typed callers Co-Authored-By: Paperclip --- server/scripts/bundle-runtime.mjs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/server/scripts/bundle-runtime.mjs b/server/scripts/bundle-runtime.mjs index 09a25fe7a72..f3311e90a14 100644 --- a/server/scripts/bundle-runtime.mjs +++ b/server/scripts/bundle-runtime.mjs @@ -71,6 +71,8 @@ function externalizeThirdParty(isBundled, runtimeDir) { }; } +/** @param {{ entry: string, outdir: string, maintenanceEntry?: string, ephemeralMigrationEntry?: string, + * nativeHarnessPrestageEntry?: string, isBundled?: (specifier: string) => boolean }} options */ export async function bundleRuntime({ entry, outdir, maintenanceEntry, ephemeralMigrationEntry, nativeHarnessPrestageEntry, isBundled = (specifier) => specifier.startsWith("@paperclipai/") }) { await rm(outdir, { recursive: true, force: true }); const result = await build({