mirror of
https://github.com/Effect-TS/effect.git
synced 2026-11-16 05:53:34 +08:00
10 lines
295 B
JavaScript
10 lines
295 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/g, Package.version)
|
|
)
|