@salesforce/storefront-next-dev 1.2.0 → 1.3.0-alpha.1

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/logger.js CHANGED
@@ -3,7 +3,7 @@ import chalk from "chalk";
3
3
  import { createRequire } from "module";
4
4
 
5
5
  //#region package.json
6
- var version = "1.2.0";
6
+ var version = "1.3.0-alpha.1";
7
7
 
8
8
  //#endregion
9
9
  //#region src/utils/logger.ts
@@ -106,15 +106,17 @@ const handleUninstall = async (extensionConfig, options) => {
106
106
  consoleLog(` • ${depExtension?.name || depKey} (depends on ${dependsOnName})`, "info");
107
107
  });
108
108
  consoleLog("\n", "info");
109
- const { confirmUninstall } = await prompts({
110
- type: "confirm",
111
- name: "confirmUninstall",
112
- message: `Uninstall all ${extensionsToUninstall.length} extensions?`,
113
- initial: true
114
- });
115
- if (!confirmUninstall) {
116
- consoleLog("Uninstallation aborted.", "info");
117
- return;
109
+ if (!options.yes) {
110
+ const { confirmUninstall } = await prompts({
111
+ type: "confirm",
112
+ name: "confirmUninstall",
113
+ message: `Uninstall all ${extensionsToUninstall.length} extensions?`,
114
+ initial: true
115
+ });
116
+ if (!confirmUninstall) {
117
+ consoleLog("Uninstallation aborted.", "info");
118
+ return;
119
+ }
118
120
  }
119
121
  }
120
122
  extensionsToUninstall.forEach((ext) => {