Skip to content

Commit

Permalink
chore: read version from package.json
Browse files Browse the repository at this point in the history
  • Loading branch information
insertish committed Jun 10, 2022
1 parent ec8b51f commit ebcbe4b
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion external/lang
Submodule lang updated 3 files
+1 −1 bottom.json
+1 −1 enchantment.json
+1 −1 leet.json
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -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",
Expand Down
2 changes: 1 addition & 1 deletion vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ function getGitBranch() {
}

function getVersion() {
return readFileSync("VERSION").toString();
return JSON.parse(readFileSync("package.json").toString()).version;
}

export default defineConfig({
Expand Down

0 comments on commit ebcbe4b

Please sign in to comment.