chore: read version from package.json

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

2
external/lang vendored

@ -1 +1 @@
Subproject commit 1394a127994951e19603be77ce2233c8133e3a81
Subproject commit 68f72e01e2c450f9545e05cc702113ee966c0e9a

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({