Skip to content

Commit

Permalink
ci: updated version update script
Browse files Browse the repository at this point in the history
refs: #20
  • Loading branch information
aaronczichon committed Oct 27, 2024
1 parent b944891 commit c64e09e
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"scripts": {
"dev": "node esbuild.config.mjs",
"build": "tsc -noEmit -skipLibCheck && node esbuild.config.mjs production",
"version": "node version-bump.mjs && git add manifest.json versions.json package.json",
"version": "node version-bump.mjs && git add manifest.json versions.json package.json package-lock.json",
"prepare": "husky",
"prettier": "prettier --config ./.prettierrc --write .",
"check": "prettier --config ./.prettierrc --check ."
Expand Down
4 changes: 4 additions & 0 deletions version-bump.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -17,3 +17,7 @@ writeFileSync('manifest.json', JSON.stringify(manifest, null, '\t'));
let packageJson = JSON.parse(readFileSync('package.json', 'utf8'));
packageJson.version = targetVersion;
writeFileSync('package.json', JSON.stringify(packageJson, null, '\t'));

let packageJson = JSON.parse(readFileSync('package-lock.json', 'utf8'));
packageJson.version = targetVersion;
writeFileSync('package-lock.json', JSON.stringify(packageJson, null, '\t'));

0 comments on commit c64e09e

Please sign in to comment.