refactor: improve lock files resolution

This commit is contained in:
Catriel Müller
2026-02-05 13:31:46 -03:00
parent 13e37b7cdf
commit 1e18ea466c
3 changed files with 222 additions and 2 deletions
+17
View File
@@ -33,6 +33,9 @@ export interface MergeConfig {
/** Web/docs files */
webFiles: string[]
/** Lock files to accept ours and regenerate after merge */
lockFiles: string[]
/** Directories that are Kilo-specific and should be preserved */
kiloDirectories: string[]
@@ -146,6 +149,20 @@ export const defaultConfig: MergeConfig = {
// Web/docs files
webFiles: ["packages/web/src/content/docs/**/*.mdx"],
// Lock files to accept ours and regenerate after merge
lockFiles: [
"bun.lock",
"**/bun.lock",
"package-lock.json",
"**/package-lock.json",
"yarn.lock",
"**/yarn.lock",
"pnpm-lock.yaml",
"**/pnpm-lock.yaml",
"Cargo.lock",
"**/Cargo.lock",
],
kiloDirectories: [
"packages/opencode/src/kilocode",
"packages/opencode/test/kilocode",