claudekit-cli 3.13.1 → 3.13.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +19 -2
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -34348,8 +34348,25 @@ class ConfigManager {
|
|
|
34348
34348
|
if (!existsSync15(configDir)) {
|
|
34349
34349
|
await mkdir16(configDir, { recursive: true });
|
|
34350
34350
|
}
|
|
34351
|
+
let existingConfig = {};
|
|
34352
|
+
if (existsSync15(configPath)) {
|
|
34353
|
+
try {
|
|
34354
|
+
const content = await readFile16(configPath, "utf-8");
|
|
34355
|
+
existingConfig = JSON.parse(content);
|
|
34356
|
+
} catch (error) {
|
|
34357
|
+
logger.debug(`Could not parse existing config, starting fresh: ${error instanceof Error ? error.message : "Unknown error"}`);
|
|
34358
|
+
}
|
|
34359
|
+
}
|
|
34351
34360
|
const validFolders = FoldersConfigSchema.parse(folders);
|
|
34352
|
-
|
|
34361
|
+
const existingPaths = existingConfig.paths && typeof existingConfig.paths === "object" ? existingConfig.paths : {};
|
|
34362
|
+
const mergedConfig = {
|
|
34363
|
+
...existingConfig,
|
|
34364
|
+
paths: {
|
|
34365
|
+
...existingPaths,
|
|
34366
|
+
...validFolders
|
|
34367
|
+
}
|
|
34368
|
+
};
|
|
34369
|
+
await writeFile13(configPath, JSON.stringify(mergedConfig, null, 2), "utf-8");
|
|
34353
34370
|
logger.debug(`Project config saved to ${configPath}`);
|
|
34354
34371
|
} catch (error) {
|
|
34355
34372
|
throw new Error(`Failed to save project config: ${error instanceof Error ? error.message : "Unknown error"}`);
|
|
@@ -36135,7 +36152,7 @@ var import_compare_versions2 = __toESM(require_umd(), 1);
|
|
|
36135
36152
|
// package.json
|
|
36136
36153
|
var package_default = {
|
|
36137
36154
|
name: "claudekit-cli",
|
|
36138
|
-
version: "3.13.
|
|
36155
|
+
version: "3.13.2",
|
|
36139
36156
|
description: "CLI tool for bootstrapping and updating ClaudeKit projects",
|
|
36140
36157
|
type: "module",
|
|
36141
36158
|
repository: {
|