Skip to content
Source
Sign inSign up
pingdotgg/t3code
Open History to see the last commit

version.mjs

9 lines295 Bytes

1import * as Fs from "node:fs"
2import Package from "../packages/effect/package.json" with { type: "json" }
3​
4const tpl = Fs.readFileSync("./scripts/version.template.txt").toString("utf8")
5​
6Fs.writeFileSync(
7 "packages/effect/src/internal/version.ts",
8 tpl.replace(/VERSION/g, Package.version)
9)