Files
effect/scripts/version.mjs
T
2023-12-27 10:48:57 +01:00

10 lines
296 B
JavaScript

import * as Fs from "node:fs"
import Package from "../packages/effect/package.json" assert { type: "json" }
const tpl = Fs.readFileSync("./scripts/version.template.txt").toString("utf8")
Fs.writeFileSync(
"packages/effect/src/internal/version.ts",
tpl.replace("VERSION", Package.version)
)