fix(jetbrains): preserve plugin package version

This commit is contained in:
kirillk
2026-05-29 11:45:33 -04:00
parent 4ee8b4b63f
commit dfe3961087
4 changed files with 26 additions and 6 deletions
+8 -1
View File
@@ -50,7 +50,14 @@ const pkgjsons = await Array.fromAsync(
new Bun.Glob("**/package.json").scan({
absolute: true,
}),
).then((arr) => arr.filter((x) => !x.includes("node_modules") && !x.includes("dist")))
).then((arr) =>
arr.filter(
(x) =>
!x.includes("node_modules") &&
!x.includes("dist") &&
!x.endsWith("/packages/kilo-jetbrains/package.json"), // kilocode_change
),
)
for (const file of pkgjsons) {
let pkg = await Bun.file(file).text()
+8 -1
View File
@@ -42,7 +42,14 @@ const pkgjsons = await Array.fromAsync(
new Bun.Glob("**/package.json").scan({
absolute: true,
}),
).then((arr) => arr.filter((x) => !x.includes("node_modules") && !x.includes("dist")))
).then((arr) =>
arr.filter(
(x) =>
!x.includes("node_modules") &&
!x.includes("dist") &&
!x.endsWith("/packages/kilo-jetbrains/package.json"), // kilocode_change
),
)
for (const file of pkgjsons) {
let pkg = await Bun.file(file).text()
@@ -76,6 +76,8 @@ export async function preserveAllVersions(options: PreserveOptions = {}): Promis
info(`Target version: ${targetVersion}`)
for await (const path of glob.scan({ absolute: true })) {
if (path.endsWith("/packages/kilo-jetbrains/package.json")) continue
// Skip excluded paths
if (excludes.some((ex) => path.includes(ex.replace(/\*\*/g, "")))) {
continue