mirror of
https://github.com/bknd-io/bknd/
synced 2026-08-03 16:46:00 +00:00
fix(cli): refine type-stripping version check and add build:all script
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -59,7 +59,8 @@ if (!registries.media.has(local)) {
|
||||
function needsTypeStripping(configFilePath: string): boolean {
|
||||
if (!/\.[mc]?ts$/.test(configFilePath)) return false;
|
||||
const [major, minor] = process.versions.node.split(".").map(Number);
|
||||
return major === 22 && minor! < 18;
|
||||
// Node v22.06 introduced experimental TypeScript support via strip types.
|
||||
return major === 22 && minor! < 18 && minor! > 5;
|
||||
}
|
||||
|
||||
function reexecWithTypeStripping(): never {
|
||||
|
||||
Reference in New Issue
Block a user