chore: read version from package.json

This commit is contained in:
Paul Makles
2022-06-10 12:18:02 +01:00
parent d524a39d1a
commit 67de7dbd79
3 changed files with 3 additions and 3 deletions

2
external/lang vendored

View File

@@ -1,5 +1,5 @@
{
"version": "0.0.0",
"version": "0.5.3-5",
"scripts": {
"dev": "node scripts/setup_assets.js --check && vite",
"pull": "node scripts/setup_assets.js",

View File

@@ -39,7 +39,7 @@ function getGitBranch() {
}
function getVersion() {
return readFileSync("VERSION").toString();
return JSON.parse(readFileSync("package.json").toString()).version;
}
export default defineConfig({