diff --git a/app/src/cli/commands/run/run.ts b/app/src/cli/commands/run/run.ts index 6e997f86..f1470366 100644 --- a/app/src/cli/commands/run/run.ts +++ b/app/src/cli/commands/run/run.ts @@ -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 { diff --git a/package.json b/package.json index 189c80d6..94ae5ce5 100644 --- a/package.json +++ b/package.json @@ -8,6 +8,7 @@ "node": ">=22.13" }, "scripts": { + "build:all": "bun run --filter bknd build:all", "updater": "bun x npm-check-updates -ui", "ci": "find . -name 'node_modules' -type d -exec rm -rf {} + && bun install", "npm:local": "verdaccio --config verdaccio.yml", @@ -24,5 +25,8 @@ "typescript": "^5.9.3", "verdaccio": "^6.2.1" }, - "workspaces": ["app", "packages/*"] + "workspaces": [ + "app", + "packages/*" + ] }