perf: skip tsgo declaration transforms

This commit is contained in:
Peter Steinberger
2026-04-10 15:51:38 +01:00
parent 56fc20fb7c
commit e9fb4c7f93
2 changed files with 30 additions and 4 deletions

View File

@@ -27,6 +27,10 @@ export function applyLocalTsgoPolicy(args, env, hostResources) {
const nextEnv = { ...env };
const nextArgs = [...args];
if (!hasFlag(nextArgs, "--declaration") && !nextArgs.includes("-d")) {
insertBeforeSeparator(nextArgs, "--declaration", "false");
}
if (!isLocalCheckEnabled(nextEnv)) {
return { env: nextEnv, args: nextArgs };
}