File tree Expand file tree Collapse file tree 3 files changed +6
-5
lines changed Expand file tree Collapse file tree 3 files changed +6
-5
lines changed Original file line number Diff line number Diff line change 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"
Original file line number Diff line number Diff 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
Original file line number Diff line number Diff line change @@ -4,7 +4,9 @@ import { resolveVerbosity } from "../src/utils/vitest-verbosity"
44
55const { 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
810const 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} )
You can’t perform that action at this time.
0 commit comments