mirror of
https://github.com/VibedByKaKi/t3-code-android-nightly.git
synced 2026-10-11 04:41:17 +02:00
11 lines
363 B
JavaScript
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)
|