From c64e09ec0d9085a193045345c0f3b2e48391f3a4 Mon Sep 17 00:00:00 2001 From: Aaron Czichon Date: Sun, 27 Oct 2024 17:56:10 -0600 Subject: [PATCH] ci: updated version update script refs: #20 --- package.json | 2 +- version-bump.mjs | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/package.json b/package.json index b926df0..2421e61 100644 --- a/package.json +++ b/package.json @@ -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 ." diff --git a/version-bump.mjs b/version-bump.mjs index 8706ceb..239aafb 100644 --- a/version-bump.mjs +++ b/version-bump.mjs @@ -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'));