mirror of
https://github.com/Kilo-Org/kilocode.git
synced 2026-09-01 15:32:11 +08:00
fix(jetbrains): preserve plugin package version
This commit is contained in:
@@ -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
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user