The best way to control Claude Code, Codex and more from any computer or phone
Mirrored from https://github.com/Camo67/t3code.git
Synced Nov 21, 03:37 UTC
| 1 | import * as Fs from "node:fs" |
| 2 | |
| 3 | const path = new URL("../tsconfig.base.json", import.meta.url) |
| 4 | const contents = Fs.readFileSync(path, "utf8") |
| 5 | const updated = contents.replace('"stripInternal": false', '"stripInternal": true') |
| 6 | |
| 7 | if (contents === updated) { |
| 8 | throw new Error("Could not enable stripInternal in tsconfig.base.json") |
| 9 | } |
| 10 | |
| 11 | Fs.writeFileSync(path, updated) |