chiefwiggum 1.3.11 → 1.3.12
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/cli.cjs +7 -7
- package/package.json +1 -1
package/dist/cli.cjs
CHANGED
|
@@ -655,7 +655,7 @@ async function setupProjectConfig() {
|
|
|
655
655
|
initialValue: false
|
|
656
656
|
});
|
|
657
657
|
const config2 = {
|
|
658
|
-
|
|
658
|
+
projectTracker: useGitHub ? "github" : "todo"
|
|
659
659
|
};
|
|
660
660
|
(0, import_node_fs3.writeFileSync)(CONFIG_FILE, JSON.stringify(config2, null, 2) + "\n");
|
|
661
661
|
console.log(import_picocolors7.default.green(`\u2713 Config saved to ${CONFIG_FILE}`));
|
|
@@ -889,12 +889,12 @@ var import_picocolors9 = __toESM(require("picocolors"), 1);
|
|
|
889
889
|
var CONFIG_FILE2 = ".chiefwiggum/CLAUDE.md";
|
|
890
890
|
function getConfig() {
|
|
891
891
|
if (!(0, import_node_fs5.existsSync)(CONFIG_FILE2)) {
|
|
892
|
-
return {
|
|
892
|
+
return { projectTracker: "todo" };
|
|
893
893
|
}
|
|
894
894
|
try {
|
|
895
895
|
return JSON.parse((0, import_node_fs5.readFileSync)(CONFIG_FILE2, "utf-8"));
|
|
896
896
|
} catch {
|
|
897
|
-
return {
|
|
897
|
+
return { projectTracker: "todo" };
|
|
898
898
|
}
|
|
899
899
|
}
|
|
900
900
|
function saveConfig(config2) {
|
|
@@ -905,7 +905,7 @@ async function cmdConfig() {
|
|
|
905
905
|
console.log(import_picocolors9.default.bold("Configuration"));
|
|
906
906
|
console.log();
|
|
907
907
|
const config2 = getConfig();
|
|
908
|
-
console.log(`Current tracker: ${import_picocolors9.default.cyan(config2.
|
|
908
|
+
console.log(`Current tracker: ${import_picocolors9.default.cyan(config2.projectTracker)}`);
|
|
909
909
|
console.log();
|
|
910
910
|
const newTracker = await select2({
|
|
911
911
|
message: "Project tracker",
|
|
@@ -913,10 +913,10 @@ async function cmdConfig() {
|
|
|
913
913
|
{ value: "github", label: "GitHub Issues", hint: "Track tasks as GitHub Issues" },
|
|
914
914
|
{ value: "todo", label: "TODO.md", hint: "Track tasks in local TODO.md file" }
|
|
915
915
|
],
|
|
916
|
-
initialValue: config2.
|
|
916
|
+
initialValue: config2.projectTracker
|
|
917
917
|
});
|
|
918
|
-
if (newTracker !== config2.
|
|
919
|
-
config2.
|
|
918
|
+
if (newTracker !== config2.projectTracker) {
|
|
919
|
+
config2.projectTracker = newTracker;
|
|
920
920
|
saveConfig(config2);
|
|
921
921
|
console.log();
|
|
922
922
|
console.log(import_picocolors9.default.green(`\u2713 Tracker changed to ${newTracker}`));
|