@codapult/cli 0.10.3 → 0.11.0
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 +5 -0
- package/package.json +1 -1
package/dist/commands/setup.js
CHANGED
|
@@ -567,6 +567,7 @@ function pruneMarkedBlocksInFiles(root, config) {
|
|
|
567
567
|
}
|
|
568
568
|
}
|
|
569
569
|
function removeModules(root, config) {
|
|
570
|
+
let totalRemoved = 0;
|
|
570
571
|
for (const removal of MODULE_REMOVALS) {
|
|
571
572
|
if (config[removal.key])
|
|
572
573
|
continue;
|
|
@@ -584,6 +585,7 @@ function removeModules(root, config) {
|
|
|
584
585
|
missing.push(p);
|
|
585
586
|
}
|
|
586
587
|
}
|
|
588
|
+
totalRemoved += removed;
|
|
587
589
|
// Surface stale paths so removals don't silently no-op when the host
|
|
588
590
|
// project's file layout changes (e.g. moving routes under [locale]).
|
|
589
591
|
if (removed === 0 && missing.length > 0) {
|
|
@@ -591,6 +593,9 @@ function removeModules(root, config) {
|
|
|
591
593
|
}
|
|
592
594
|
}
|
|
593
595
|
pruneMarkedBlocksInFiles(root, config);
|
|
596
|
+
if (totalRemoved > 0) {
|
|
597
|
+
dim(`Total removed: ${totalRemoved}`);
|
|
598
|
+
}
|
|
594
599
|
}
|
|
595
600
|
async function interactiveSetup() {
|
|
596
601
|
const iface = createInterface({ input: process.stdin, output: process.stdout });
|