Skip to content

Commit

Permalink
Bump version in manifest; add version patch script
Browse files Browse the repository at this point in the history
  • Loading branch information
petrgazarov committed Dec 12, 2023
1 parent ce7803f commit e8de653
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 3 deletions.
3 changes: 2 additions & 1 deletion .eslintignore
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
webpack.config.js
webpack.config.js
scripts/**/*
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "aws-chrome-extension",
"version": "0.1.2",
"version": "0.1.1",
"private": true,
"engines": {
"node": ">20.0.0"
Expand All @@ -26,6 +26,7 @@
"build": "pnpm clean && webpack --mode production",
"prepare-for-upload": "pnpm build && zip -r build-v$(pnpm pkg get version | tr -d '\"').zip build/*",
"watch": "NODE_ENV=development webpack --watch",
"version:patch": "pnpm version patch && node scripts/update-manifest-version.js",
"lint": "pnpm lint:js && pnpm lint:css",
"lint:fix": "pnpm lint:js:fix && pnpm lint:css:fix",
"lint:js": "eslint --ext .ts,.tsx src",
Expand Down
2 changes: 1 addition & 1 deletion public/manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"manifest_version": 3,
"name": "Cumuli - AWS Console Chat",
"description": "Chat with GPT-4 turbo on any AWS management console page",
"version": "0.1.0",
"version": "0.1.1",
"action": {
"default_title": "Cumuli - AWS Console Chat"
},
Expand Down
10 changes: 10 additions & 0 deletions scripts/update-manifest-version.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
const fs = require("fs");
const path = require("path");
const packageJson = require("../package.json");

const manifestPath = path.join(__dirname, "../public/manifest.json");
const manifestJson = require(manifestPath);

manifestJson.version = packageJson.version;

fs.writeFileSync(manifestPath, JSON.stringify(manifestJson, null, 2));

0 comments on commit e8de653

Please sign in to comment.