Skip to content

Commit d81244f

Browse files
committed
'chore: WIP'
1 parent c447e31 commit d81244f

File tree

3 files changed

+6
-5
lines changed

3 files changed

+6
-5
lines changed

webview-ui/src/utils/repository.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
// kilocode_change - Utility to get repository URL from package.json
2-
export const REPOSITORY_URL = process.env.PKG_REPOSITORY_URL || "https://github.com/Kilo-Org/kilocode"
1+
// kilocode_change - Repository URL constant
2+
export const REPOSITORY_URL = "https://github.com/Kilo-Org/kilocode"

webview-ui/vite.config.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,6 @@ export default defineConfig(({ mode }) => {
8989
"process.env.PKG_NAME": JSON.stringify(pkg.name),
9090
"process.env.PKG_VERSION": JSON.stringify(pkg.version),
9191
"process.env.PKG_OUTPUT_CHANNEL": JSON.stringify("Kilo-Code"),
92-
"process.env.PKG_REPOSITORY_URL": JSON.stringify(pkg.repository?.url || "https://github.com/Kilo-Org/kilocode"), // kilocode_change: Add repository URL
9392
...(gitSha ? { "process.env.PKG_SHA": JSON.stringify(gitSha) } : {}),
9493
}
9594

webview-ui/vitest.config.ts

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,9 @@ import { resolveVerbosity } from "../src/utils/vitest-verbosity"
44

55
const { silent, reporters, onConsoleLog } = resolveVerbosity()
66

7-
// Custom plugin to prevent parsing of parent directory package.json
7+
// Custom plugin to prevent parsing of parent directory package.json during tests
8+
// This is needed because vite.config.ts reads package.json for build-time env vars,
9+
// but we don't need those during test runs
810
const skipParentPackageJson = (): Plugin => ({
911
name: "skip-parent-package-json",
1012
enforce: "pre",
@@ -42,7 +44,7 @@ export default defineConfig({
4244
vscode: path.resolve(__dirname, "./src/__mocks__/vscode.ts"),
4345
},
4446
},
45-
// Use custom plugin to skip parent package.json
47+
// Use custom plugin to skip parent package.json during tests
4648
plugins: [skipParentPackageJson()],
4749
assetsInclude: ["**/*.json"],
4850
})

0 commit comments

Comments
 (0)