t3-code-android-nightly/.repos/effect-smol/scripts/set-strip-internal.mjs
2026-09-07 21:54:44 -07:00

11 lines
363 B
JavaScript

import * as Fs from "node:fs"
const path = new URL("../tsconfig.base.json", import.meta.url)
const contents = Fs.readFileSync(path, "utf8")
const updated = contents.replace('"stripInternal": false', '"stripInternal": true')
if (contents === updated) {
throw new Error("Could not enable stripInternal in tsconfig.base.json")
}
Fs.writeFileSync(path, updated)