@codapult/cli 0.10.1 → 0.10.3
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/commands/setup.js +6 -2
- package/package.json +1 -1
package/dist/commands/setup.js
CHANGED
|
@@ -11,6 +11,10 @@ async function selectPrompt(iface, question, options) {
|
|
|
11
11
|
const idx = parseInt(answer, 10) - 1;
|
|
12
12
|
return options[Math.max(0, Math.min(idx, options.length - 1))];
|
|
13
13
|
}
|
|
14
|
+
function line() {
|
|
15
|
+
console.log();
|
|
16
|
+
return true;
|
|
17
|
+
}
|
|
14
18
|
// ---------------------------------------------------------------------------
|
|
15
19
|
// Built-in presets for non-interactive (CI/CD) setup via --preset flag.
|
|
16
20
|
// ---------------------------------------------------------------------------
|
|
@@ -611,7 +615,7 @@ async function interactiveSetup() {
|
|
|
611
615
|
'bullmq',
|
|
612
616
|
]),
|
|
613
617
|
enableAuth: authEnabled,
|
|
614
|
-
enableAI: await confirm(iface, '
|
|
618
|
+
enableAI: line() && (await confirm(iface, 'Enable AI Chat module?')),
|
|
615
619
|
enableBlog: await confirm(iface, 'Enable Blog module?'),
|
|
616
620
|
enableTeams: authEnabled && (await confirm(iface, 'Enable Teams/Organizations?')),
|
|
617
621
|
enableWaitlist: await confirm(iface, 'Enable Waitlist page?'),
|
|
@@ -638,7 +642,7 @@ async function interactiveSetup() {
|
|
|
638
642
|
enableBranding: authEnabled && (await confirm(iface, 'Enable per-org branding (white-label)?')),
|
|
639
643
|
enableTwoFactor: authEnabled && (await confirm(iface, 'Enable two-factor authentication (TOTP)?')),
|
|
640
644
|
enablePlugins: await confirm(iface, 'Enable plugin marketplace (/plugins)?'),
|
|
641
|
-
removeUnusedCode: await confirm(iface, '
|
|
645
|
+
removeUnusedCode: line() && (await confirm(iface, 'Remove unused module code?', false)),
|
|
642
646
|
};
|
|
643
647
|
iface.close();
|
|
644
648
|
return config;
|