+1








01fd5237f5
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]>
10 lines
295 B
JavaScript
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`,
|
|
);
|