chiefwiggum 1.3.7 → 1.3.10
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 +0 -11
- package/package.json +1 -1
package/dist/cli.cjs
CHANGED
|
@@ -528,15 +528,6 @@ async function cmdNew(planFile) {
|
|
|
528
528
|
console.log(import_picocolors7.default.bold("Project Setup"));
|
|
529
529
|
console.log();
|
|
530
530
|
console.log(`Working directory: ${import_picocolors7.default.cyan(process.cwd())}`);
|
|
531
|
-
console.log();
|
|
532
|
-
const shouldInit = await confirm2({
|
|
533
|
-
message: "Initialize Chief Wiggum in this directory?",
|
|
534
|
-
initialValue: true
|
|
535
|
-
});
|
|
536
|
-
if (!shouldInit) {
|
|
537
|
-
console.log(import_picocolors7.default.yellow("Aborted."));
|
|
538
|
-
process.exit(0);
|
|
539
|
-
}
|
|
540
531
|
await setupProjectConfig();
|
|
541
532
|
await setupTemplates();
|
|
542
533
|
if (planFile) {
|
|
@@ -641,7 +632,6 @@ async function checkExistingFiles() {
|
|
|
641
632
|
}
|
|
642
633
|
async function setupTemplates() {
|
|
643
634
|
if ((0, import_node_fs3.existsSync)(LOCAL_TEMPLATES_DIR)) {
|
|
644
|
-
console.log(import_picocolors7.default.dim(`Templates already exist at ${LOCAL_TEMPLATES_DIR}`));
|
|
645
635
|
return;
|
|
646
636
|
}
|
|
647
637
|
if (!(0, import_node_fs3.existsSync)(BUNDLED_TEMPLATES_DIR)) {
|
|
@@ -657,7 +647,6 @@ async function setupTemplates() {
|
|
|
657
647
|
}
|
|
658
648
|
async function setupProjectConfig() {
|
|
659
649
|
if ((0, import_node_fs3.existsSync)(CONFIG_FILE)) {
|
|
660
|
-
console.log(import_picocolors7.default.dim(`Config already exists at ${CONFIG_FILE}`));
|
|
661
650
|
return;
|
|
662
651
|
}
|
|
663
652
|
console.log();
|