Files
js/packages/thirdweb/scripts/version.mjs
T
+1 01fd5237f5 Beta (#2356)
Signed-off-by: Joaquim Verges <[email protected]>
Signed-off-by: jxom  <[email protected]>
Signed-off-by: greg <[email protected]>
Signed-off-by: Jonas Daniels <[email protected]>
Co-authored-by: GitHub Action <[email protected]>
Co-authored-by: Manan Tank <[email protected]>
Co-authored-by: Joaquim Verges <[email protected]>
Co-authored-by: jxom <[email protected]>
Co-authored-by: Nacho Iacovino <[email protected]>
Co-authored-by: greg <[email protected]>
Co-authored-by: Winston Yeo <[email protected]>
Co-authored-by: iketw <[email protected]>
Co-authored-by: Winston Yeo <[email protected]>
Co-authored-by: Isaac Dubuque <[email protected]>
2024-03-27 17:13:03 -07:00

10 lines
295 B
JavaScript

/* eslint-disable better-tree-shaking/no-top-level-side-effects */
import { readFile, writeFile } from "node:fs/promises";
const packageVersion = JSON.parse(await readFile("./package.json")).version;
await writeFile(
"./src/version.ts",
`export const version = "${packageVersion}";\n`,
);