summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorShreya Keshive <[email protected]>2025-07-30 18:49:26 -0400
committerGitHub <[email protected]>2025-07-30 22:49:26 +0000
commit0c6f7884060bd30996b212ffa135d95b1c779798 (patch)
treec73bab8999c65e3ac7861f71ce7ce4001861ba68
parent325bb8913776c60b763ee5f66375a4ca90d22ce0 (diff)
Exclude companion extension from release versioning (#5226)
Co-authored-by: Jacob Richman <[email protected]>
-rw-r--r--package-lock.json2
-rw-r--r--packages/vscode-ide-companion/package.json2
-rw-r--r--scripts/version.js19
3 files changed, 18 insertions, 5 deletions
diff --git a/package-lock.json b/package-lock.json
index bb6e0a50..70db287c 100644
--- a/package-lock.json
+++ b/package-lock.json
@@ -11934,7 +11934,7 @@
},
"packages/vscode-ide-companion": {
"name": "gemini-cli-vscode-ide-companion",
- "version": "0.1.15",
+ "version": "0.0.1",
"license": "LICENSE",
"dependencies": {
"@modelcontextprotocol/sdk": "^1.15.1",
diff --git a/packages/vscode-ide-companion/package.json b/packages/vscode-ide-companion/package.json
index 78968125..c4ff2b68 100644
--- a/packages/vscode-ide-companion/package.json
+++ b/packages/vscode-ide-companion/package.json
@@ -2,7 +2,7 @@
"name": "gemini-cli-vscode-ide-companion",
"displayName": "Gemini CLI Companion",
"description": "Enable Gemini CLI with direct access to your VS Code workspace.",
- "version": "0.1.15",
+ "version": "0.0.1",
"publisher": "google",
"icon": "assets/icon.png",
"repository": {
diff --git a/scripts/version.js b/scripts/version.js
index a5d2c203..741e6e2e 100644
--- a/scripts/version.js
+++ b/scripts/version.js
@@ -33,11 +33,24 @@ if (!versionType) {
// 2. Bump the version in the root and all workspace package.json files.
run(`npm version ${versionType} --no-git-tag-version --allow-same-version`);
-run(
- `npm version ${versionType} --workspaces --no-git-tag-version --allow-same-version`,
+
+// 3. Get all workspaces and filter out the one we don't want to version.
+const workspacesToExclude = ['gemini-cli-vscode-ide-companion'];
+const lsOutput = JSON.parse(
+ execSync('npm ls --workspaces --json --depth=0').toString(),
+);
+const allWorkspaces = Object.keys(lsOutput.dependencies || {});
+const workspacesToVersion = allWorkspaces.filter(
+ (wsName) => !workspacesToExclude.includes(wsName),
);
-// 3. Get the new version number from the root package.json
+for (const workspaceName of workspacesToVersion) {
+ run(
+ `npm version ${versionType} --workspace ${workspaceName} --no-git-tag-version --allow-same-version`,
+ );
+}
+
+// 4. Get the new version number from the root package.json
const rootPackageJsonPath = resolve(process.cwd(), 'package.json');
const newVersion = readJson(rootPackageJsonPath).version;