Files
effect/scripts/version.mjs
T
2025-05-02 12:21:06 +12:00

10 lines
294 B
JavaScript

import * as Fs from "node:fs"
import Package from "../packages/effect/package.json" with { 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)
)