automerge/javascript/scripts/deno-prefixer.mjs
2023-01-13 10:33:47 +00:00

9 lines
259 B
JavaScript

import * as fs from "fs"
const files = ["./deno_dist/proxies.ts"]
for (const filepath of files) {
const data = fs.readFileSync(filepath)
fs.writeFileSync(filepath, "// @ts-nocheck \n" + data)
console.log('Prepended "// @ts-nocheck" to ' + filepath)
}