ethers.js/lib.esm/_admin/update-version-const.js
2022-09-05 16:57:11 -04:00

7 lines
350 B
JavaScript

import { atomicWrite } from "./utils/fs.js";
import { resolve } from "./utils/path.js";
import { loadJson } from "./utils/json.js";
const version = loadJson(resolve("package.json")).version;
const content = `export const version = "${version}";\n`;
atomicWrite(resolve("src.ts/_version.ts"), content);
//# sourceMappingURL=update-version-const.js.map