Skip to content

Commit f30a778

Browse files
author
jovanSAPFIONEER
committed
fix: prepend // @ts-nocheck to generated .ts output files; remove output/tsconfig.json
1 parent 4be2dc2 commit f30a778

File tree

2 files changed

+2
-7
lines changed

2 files changed

+2
-7
lines changed

examples/05-code-review-swarm.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1071,7 +1071,8 @@ async function main() {
10711071
}
10721072

10731073
console.log();
1074-
fs.writeFileSync(outFile, currentCode, 'utf8');
1074+
const outputContent = ext === 'ts' ? `// @ts-nocheck\n${currentCode}` : currentCode;
1075+
fs.writeFileSync(outFile, outputContent, 'utf8');
10751076
console.log(` ${c.green}✓ Saved → ${outFile}${c.reset} ${c.dim}(open to see the full file)${c.reset}`);
10761077
} else {
10771078
console.log(` ${c.yellow}⚠ Fixed output empty (token limit hit) — increase max_completion_tokens or use a model with higher context${c.reset}`);

examples/output/tsconfig.json

Lines changed: 0 additions & 6 deletions
This file was deleted.

0 commit comments

Comments
 (0)