mirror of
https://github.com/Kilo-Org/kilocode.git
synced 2026-09-19 01:51:21 +08:00
fix: align vscode extension publish version with CLI version
Remove the +6 major version offset applied during build and publish for the kilo-vscode package so both packages share the same version.
This commit is contained in:
@@ -2,7 +2,7 @@
|
||||
"name": "kilo-code",
|
||||
"displayName": "Kilo Code: AI Coding Agent, Copilot, and Autocomplete",
|
||||
"description": "Open Source AI coding agent that generates code from natural language, automates tasks, and runs terminal commands. Features inline autocomplete, browser automation, automated refactoring, and custom modes for planning, coding, and debugging. Supports 500+ AI models including Claude (Anthropic), Gemini, Grok, GPT, Codex and GLM.",
|
||||
"version": "7.0.25",
|
||||
"version": "1.0.25",
|
||||
"icon": "assets/icons/logo-outline-black.png",
|
||||
"publisher": "kilocode",
|
||||
"repository": {
|
||||
|
||||
@@ -5,9 +5,7 @@ import { existsSync, mkdirSync, rmSync, chmodSync } from "node:fs"
|
||||
|
||||
const packageJsonPath = join(import.meta.dir, "..", "package.json")
|
||||
const packageJson = await Bun.file(packageJsonPath).json()
|
||||
const version = process.env.KILO_VERSION
|
||||
? process.env.KILO_VERSION.replace(/^\d+/, (m) => String(Number(m) + 6))
|
||||
: packageJson.version
|
||||
const version = process.env.KILO_VERSION ? process.env.KILO_VERSION : packageJson.version
|
||||
|
||||
console.log(`Building VSCode extension version: ${version}`)
|
||||
|
||||
|
||||
+1
-5
@@ -41,11 +41,7 @@ const pkgjsons = await Array.fromAsync(
|
||||
|
||||
for (const file of pkgjsons) {
|
||||
let pkg = await Bun.file(file).text()
|
||||
// kilocode_change start
|
||||
const version = file.includes("packages/kilo-vscode/")
|
||||
? Script.version.replace(/^\d+/, (m) => String(Number(m) + 6))
|
||||
: Script.version
|
||||
// kilocode_change end
|
||||
const version = Script.version
|
||||
pkg = pkg.replaceAll(/"version": "[^"]+"/g, `"version": "${version}"`)
|
||||
console.log("updated:", file)
|
||||
await Bun.file(file).write(pkg)
|
||||
|
||||
Reference in New Issue
Block a user