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

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