forked from abner/for-legacy-web
chore: read version from package.json
This commit is contained in:
@@ -39,7 +39,7 @@ function getGitBranch() {
|
||||
}
|
||||
|
||||
function getVersion() {
|
||||
return readFileSync("VERSION").toString();
|
||||
return JSON.parse(readFileSync("package.json").toString()).version;
|
||||
}
|
||||
|
||||
export default defineConfig({
|
||||
|
||||
Reference in New Issue
Block a user