From 8ce17e66d4d1dcfab5cd0de285463ff7ad76b003 Mon Sep 17 00:00:00 2001 From: Scient Release Bot Date: Wed, 29 Jul 2026 03:05:29 +0300 Subject: [PATCH] fix(release): add .ts extension to windows-authenticode import in whisper staging Node 24 (pinned "node": "^24.13.1") runs scripts/build-desktop-artifact.ts via native TS/ESM, which requires explicit extensions on relative imports. The new scripts/lib/windows-authenticode.ts module (added in the 0.5.14 candidate) was imported extensionless from scripts/stage-whisper-runtime.ts, breaking `dist:desktop:artifact` on macOS/Linux/Windows with ERR_MODULE_NOT_FOUND. dist:desktop:artifact only runs in release.yml (never in ci.yml), so this was never exercised until the v0.5.14 build-only run. Every other script in scripts/ imports ./lib/*.ts with the extension (scripts/tsconfig.json sets allowImportingTsExtensions); this brings stage-whisper-runtime.ts in line. Co-Authored-By: Claude Opus 4.8 --- scripts/stage-whisper-runtime.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/stage-whisper-runtime.ts b/scripts/stage-whisper-runtime.ts index 19cf49e1a..4d35f6596 100644 --- a/scripts/stage-whisper-runtime.ts +++ b/scripts/stage-whisper-runtime.ts @@ -28,9 +28,9 @@ import { isWindowsAuthenticodeSignatureDetails, WINDOWS_AUTHENTICODE_READER_FUNCTION_LINES, type WindowsAuthenticodeSignatureDetails, -} from "./lib/windows-authenticode"; +} from "./lib/windows-authenticode.ts"; -export type { WindowsAuthenticodeSignatureDetails } from "./lib/windows-authenticode"; +export type { WindowsAuthenticodeSignatureDetails } from "./lib/windows-authenticode.ts"; export const WHISPER_CPP_VERSION = "v1.9.1";