Skip to content

Commit

Permalink
make it clean
Browse files Browse the repository at this point in the history
  • Loading branch information
seiyria committed Sep 11, 2024
1 parent 930f527 commit d37c68b
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 5 deletions.
4 changes: 2 additions & 2 deletions app/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"repository": {
"url": "https://github.com/LandOfTheRair/mod-toolkit-v2"
},
"version": "1.0.7",
"version": "1.6.3",
"main": "main.js",
"private": true,
"dependencies": {
Expand All @@ -24,4 +24,4 @@
"@types/adm-zip": "^0.5.5",
"@types/recursive-readdir": "^2.2.4"
}
}
}
7 changes: 4 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,10 @@
"test:watch": "ng test",
"version": "conventional-changelog -i CHANGELOG.md -s -r 0 && git add CHANGELOG.md",
"lint": "ng lint",
"bump:patch": "npm version patch -m \"Release Patch %s\"",
"bump:minor": "npm version minor -m \"Release Minor %s\"",
"bump:major": "npm version major -m \"Release Major %s\""
"bump:patch": "npm version patch -m \"Release Patch %s\" && npm run syncversion",
"bump:minor": "npm version minor -m \"Release Minor %s\" && npm run syncversion",
"bump:major": "npm version major -m \"Release Major %s\" && npm run syncversion",
"syncversion": "node scripts/syncversion && git commit -am \"Sync version\""
},
"dependencies": {
"@angular/common": "18.1.3",
Expand Down
10 changes: 10 additions & 0 deletions scripts/syncversion.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
const packageJson = require("../package.json");
const electronPackageJson = require("../app/package.json");

electronPackageJson.version = packageJson.version;
require("fs").writeFileSync(
"./app/package.json",
JSON.stringify(electronPackageJson, null, 2)
);

console.log("Updated Electron version!");

0 comments on commit d37c68b

Please sign in to comment.