| 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) |