MCPcopy Create free account
hub / github.com/PageLeay/celestial-runtime / writeVersion

Function writeVersion

lib.esm/_admin/update-version.js:16–19  ·  view source on GitHub ↗
(version)

Source from the content-addressed store, hash-verified

14 return cache[name] || null;
15}
16function writeVersion(version) {
17 const content = `/* Do NOT modify this file; see /src.ts/_admin/update-version.ts */\n\n/**\n * The current version of Ethers.\n */\nexport const version: string = "${version}";\n`;
18 atomicWrite(resolve("src.ts/_version.ts"), content);
19}
20(async function () {
21 // Local pkg
22 const pkgPath = resolve("package.json");

Callers 1

update-version.jsFile · 0.70

Calls 2

atomicWriteFunction · 0.90
resolveFunction · 0.90

Tested by

no test coverage detected