@shopify/create-app 4.0.0 → 4.1.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.
Files changed (38) hide show
  1. package/README.md +2 -2
  2. package/dist/{analytics-XUVDQAYG.js → analytics-RYQKQ4DG.js} +11 -11
  3. package/dist/{analytics-XLT3JDGP.js → analytics-ZSO2XN53.js} +11 -11
  4. package/dist/{chunk-UMSYG5WJ.js → chunk-32DG2OXV.js} +15 -15
  5. package/dist/{chunk-ANIFE3UR.js → chunk-7OFS6B2C.js} +2 -2
  6. package/dist/{chunk-4CS37CS5.js → chunk-A6TJPMVH.js} +6 -10
  7. package/dist/{chunk-LNOZTAML.js → chunk-BMI6QCMV.js} +10 -11
  8. package/dist/{chunk-YIHECXVH.js → chunk-C5OLLQWI.js} +10 -42
  9. package/dist/{chunk-QN5KFM2B.js → chunk-CEGG2EWP.js} +2 -2
  10. package/dist/{chunk-IGDZPTDH.js → chunk-JT5MT2JE.js} +6 -6
  11. package/dist/{chunk-JUV7D377.js → chunk-MIECGF3H.js} +3 -3
  12. package/dist/{chunk-DNF3EUMN.js → chunk-PVHOBK32.js} +5 -5
  13. package/dist/{chunk-YUPQUA3D.js → chunk-RB7BXTZQ.js} +4 -4
  14. package/dist/{chunk-STHW3YIX.js → chunk-S4YEA2XG.js} +10 -10
  15. package/dist/{chunk-37G3KLO2.js → chunk-SWITKWBS.js} +3 -3
  16. package/dist/{chunk-DHAC6KEL.js → chunk-TS6LOJXS.js} +10 -10
  17. package/dist/{chunk-QMXFPY46.js → chunk-TVUF42MB.js} +2 -2
  18. package/dist/{conf-store-RAVX2WFV.js → conf-store-R26LOTXD.js} +5 -5
  19. package/dist/{deprecations-2QTB3736.js → deprecations-JWETMJFF.js} +7 -7
  20. package/dist/{environments-LTWWRWCC.js → environments-VKYG7DMX.js} +8 -8
  21. package/dist/{error-handler-KHJE653Z.js → error-handler-YXGIUGKI.js} +11 -11
  22. package/dist/{fs-XENRLBMU.js → fs-HPLMOQQD.js} +3 -3
  23. package/dist/hooks/postrun.js +4 -4
  24. package/dist/hooks/prerun.js +6 -6
  25. package/dist/index.js +234 -140
  26. package/dist/{is-global-KZMSAFQT.js → is-global-OXCPPXM7.js} +3 -3
  27. package/dist/{local-NQALOHJX.js → local-6ARTMTVE.js} +2 -4
  28. package/dist/{metadata-FXCUDE5I.js → metadata-Z65VJ53L.js} +3 -3
  29. package/dist/{node-package-manager-7R7HDW4R.js → node-package-manager-Q3Y2FSRM.js} +9 -9
  30. package/dist/{notifications-system-7QMDSL5Y.js → notifications-system-2HPAOE4P.js} +12 -12
  31. package/dist/{output-PQSQ7U45.js → output-MCH67S5U.js} +3 -3
  32. package/dist/{system-W4MMMHEV.js → system-YW6RJ2KQ.js} +7 -7
  33. package/dist/{ui-2FROV2IT.js → ui-AYUE37Z3.js} +7 -7
  34. package/dist/{upgrade-FAUZ7VAF.js → upgrade-DNAT5W4B.js} +13 -13
  35. package/dist/{version-T73ZLUJK.js → version-2J64V5CP.js} +2 -2
  36. package/dist/{version-HKPHVW5M.js → version-V77ZX5N2.js} +8 -8
  37. package/oclif.manifest.json +1 -1
  38. package/package.json +3 -3
package/README.md CHANGED
@@ -5,7 +5,7 @@
5
5
  <img src="https://img.shields.io/badge/License-MIT-green.svg" alt="License">
6
6
  <a href="https://github.com/Shopify/cli/actions/workflows/shopify-cli.yml">![badge](https://github.com/Shopify/cli/actions/workflows/shopify-cli.yml/badge.svg)</a>
7
7
 
8
- With the Shopify command line interface (Shopify CLI 3.0), you can:
8
+ With the Shopify command line interface (Shopify CLI), you can:
9
9
  - initialize, build, dev, and deploy Shopify apps, extensions, functions and themes
10
10
  - build custom storefronts and manage their hosting
11
11
 
@@ -39,7 +39,7 @@ To work with themes, the CLI needs to be installed globally with:
39
39
 
40
40
  - `npm install -g @shopify/cli`
41
41
 
42
- You can also use do it through Homebrew on macOS: `brew tap shopify/shopify && brew install shopify-cli`
42
+ You can also install it through Homebrew on macOS: `brew tap shopify/shopify && brew install shopify-cli`
43
43
 
44
44
  Learn more in the docs: [Shopify CLI for themes](https://shopify.dev/docs/storefronts/themes/tools/cli)
45
45
 
@@ -5,24 +5,24 @@ import {
5
5
  recordRetry,
6
6
  recordTiming,
7
7
  reportAnalyticsEvent
8
- } from "./chunk-STHW3YIX.js";
8
+ } from "./chunk-S4YEA2XG.js";
9
9
  import "./chunk-JCETIRLI.js";
10
- import "./chunk-IGDZPTDH.js";
11
- import "./chunk-ANIFE3UR.js";
10
+ import "./chunk-JT5MT2JE.js";
11
+ import "./chunk-7OFS6B2C.js";
12
12
  import "./chunk-VBBBCVMH.js";
13
- import "./chunk-YUPQUA3D.js";
14
- import "./chunk-YIHECXVH.js";
15
- import "./chunk-37G3KLO2.js";
16
- import "./chunk-JUV7D377.js";
13
+ import "./chunk-RB7BXTZQ.js";
14
+ import "./chunk-C5OLLQWI.js";
15
+ import "./chunk-SWITKWBS.js";
16
+ import "./chunk-MIECGF3H.js";
17
17
  import "./chunk-UX6FRPFM.js";
18
18
  import "./chunk-X2WZCKNE.js";
19
19
  import "./chunk-G2ZZKGSV.js";
20
20
  import "./chunk-OO33NRTL.js";
21
21
  import "./chunk-PES3XMQM.js";
22
22
  import "./chunk-6OOTYTVB.js";
23
- import "./chunk-QN5KFM2B.js";
24
- import "./chunk-LNOZTAML.js";
25
- import "./chunk-4CS37CS5.js";
23
+ import "./chunk-CEGG2EWP.js";
24
+ import "./chunk-BMI6QCMV.js";
25
+ import "./chunk-A6TJPMVH.js";
26
26
  import "./chunk-DJW2W7VA.js";
27
27
  import "./chunk-ACS6S42W.js";
28
28
  import "./chunk-AROS7RI6.js";
@@ -36,4 +36,4 @@ export {
36
36
  recordTiming,
37
37
  reportAnalyticsEvent
38
38
  };
39
- //# sourceMappingURL=analytics-XUVDQAYG.js.map
39
+ //# sourceMappingURL=analytics-RYQKQ4DG.js.map
@@ -2,24 +2,24 @@ import {
2
2
  getEnvironmentData,
3
3
  getSensitiveEnvironmentData,
4
4
  startAnalytics
5
- } from "./chunk-STHW3YIX.js";
5
+ } from "./chunk-S4YEA2XG.js";
6
6
  import "./chunk-JCETIRLI.js";
7
- import "./chunk-IGDZPTDH.js";
8
- import "./chunk-ANIFE3UR.js";
7
+ import "./chunk-JT5MT2JE.js";
8
+ import "./chunk-7OFS6B2C.js";
9
9
  import "./chunk-VBBBCVMH.js";
10
- import "./chunk-YUPQUA3D.js";
11
- import "./chunk-YIHECXVH.js";
12
- import "./chunk-37G3KLO2.js";
13
- import "./chunk-JUV7D377.js";
10
+ import "./chunk-RB7BXTZQ.js";
11
+ import "./chunk-C5OLLQWI.js";
12
+ import "./chunk-SWITKWBS.js";
13
+ import "./chunk-MIECGF3H.js";
14
14
  import "./chunk-UX6FRPFM.js";
15
15
  import "./chunk-X2WZCKNE.js";
16
16
  import "./chunk-G2ZZKGSV.js";
17
17
  import "./chunk-OO33NRTL.js";
18
18
  import "./chunk-PES3XMQM.js";
19
19
  import "./chunk-6OOTYTVB.js";
20
- import "./chunk-QN5KFM2B.js";
21
- import "./chunk-LNOZTAML.js";
22
- import "./chunk-4CS37CS5.js";
20
+ import "./chunk-CEGG2EWP.js";
21
+ import "./chunk-BMI6QCMV.js";
22
+ import "./chunk-A6TJPMVH.js";
23
23
  import "./chunk-DJW2W7VA.js";
24
24
  import "./chunk-ACS6S42W.js";
25
25
  import "./chunk-AROS7RI6.js";
@@ -30,4 +30,4 @@ export {
30
30
  getSensitiveEnvironmentData,
31
31
  startAnalytics
32
32
  };
33
- //# sourceMappingURL=analytics-XLT3JDGP.js.map
33
+ //# sourceMappingURL=analytics-ZSO2XN53.js.map
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  treeKill
3
- } from "./chunk-QN5KFM2B.js";
3
+ } from "./chunk-CEGG2EWP.js";
4
4
  import {
5
5
  init_cjs_shims
6
6
  } from "./chunk-PKR7KJ6P.js";
@@ -26,15 +26,15 @@ function waitForPostRunHookAndExit() {
26
26
  }
27
27
  var hook = async ({ config, Command }) => {
28
28
  await detectStopCommand(Command);
29
- let { reportAnalyticsEvent } = await import("./analytics-XUVDQAYG.js");
29
+ let { reportAnalyticsEvent } = await import("./analytics-RYQKQ4DG.js");
30
30
  await reportAnalyticsEvent({ config, exitMode: "ok" });
31
- let { postrun: deprecationsHook } = await import("./deprecations-2QTB3736.js");
31
+ let { postrun: deprecationsHook } = await import("./deprecations-JWETMJFF.js");
32
32
  deprecationsHook(Command);
33
- let { outputDebug } = await import("./output-PQSQ7U45.js"), command = Command.id.replace(/:/g, " ");
33
+ let { outputDebug } = await import("./output-MCH67S5U.js"), command = Command.id.replace(/:/g, " ");
34
34
  outputDebug(`Completed command ${command}`), !command.includes("notifications") && !command.includes("upgrade") && await autoUpgradeIfNeeded(), postRunHookCompleted = !0;
35
35
  };
36
36
  async function autoUpgradeIfNeeded() {
37
- let { versionToAutoUpgrade, warnIfUpgradeAvailable } = await import("./upgrade-FAUZ7VAF.js"), newerVersion = versionToAutoUpgrade();
37
+ let { versionToAutoUpgrade, warnIfUpgradeAvailable } = await import("./upgrade-DNAT5W4B.js"), newerVersion = versionToAutoUpgrade();
38
38
  if (!newerVersion) {
39
39
  await warnIfUpgradeAvailable();
40
40
  return;
@@ -42,7 +42,7 @@ async function autoUpgradeIfNeeded() {
42
42
  if (process.env.SHOPIFY_CLI_FORCE_AUTO_UPGRADE === "1")
43
43
  await performAutoUpgrade(newerVersion);
44
44
  else {
45
- let { runAtMinimumInterval } = await import("./conf-store-RAVX2WFV.js");
45
+ let { runAtMinimumInterval } = await import("./conf-store-R26LOTXD.js");
46
46
  await runAtMinimumInterval("auto-upgrade", { days: 1 }, async () => {
47
47
  await performAutoUpgrade(newerVersion);
48
48
  });
@@ -50,11 +50,11 @@ async function autoUpgradeIfNeeded() {
50
50
  }
51
51
  async function performAutoUpgrade(newerVersion) {
52
52
  let [{ CLI_KIT_VERSION }, { isMajorVersionChange }, { outputWarn, outputDebug }, { getOutputUpdateCLIReminder, runCLIUpgrade, hasBlockingAutoUpgradeNotification }, metadata] = await Promise.all([
53
- import("./version-T73ZLUJK.js"),
54
- import("./version-HKPHVW5M.js"),
55
- import("./output-PQSQ7U45.js"),
56
- import("./upgrade-FAUZ7VAF.js"),
57
- import("./metadata-FXCUDE5I.js")
53
+ import("./version-2J64V5CP.js"),
54
+ import("./version-V77ZX5N2.js"),
55
+ import("./output-MCH67S5U.js"),
56
+ import("./upgrade-DNAT5W4B.js"),
57
+ import("./metadata-Z65VJ53L.js")
58
58
  ]);
59
59
  if (isMajorVersionChange(CLI_KIT_VERSION, newerVersion)) {
60
60
  outputWarn(getOutputUpdateCLIReminder(newerVersion, !0)), await metadata.addPublicMetadata(() => ({
@@ -74,8 +74,8 @@ async function performAutoUpgrade(newerVersion) {
74
74
  let errorMessage = `Auto-upgrade failed: ${error}`;
75
75
  outputDebug(errorMessage), outputWarn(getOutputUpdateCLIReminder(newerVersion)), await metadata.addPublicMetadata(() => ({ env_auto_upgrade_success: !1 }));
76
76
  let [{ sendErrorToBugsnag }, { inferPackageManagerForGlobalCLI }] = await Promise.all([
77
- import("./error-handler-KHJE653Z.js"),
78
- import("./is-global-KZMSAFQT.js")
77
+ import("./error-handler-YXGIUGKI.js"),
78
+ import("./is-global-OXCPPXM7.js")
79
79
  ]), enrichedError = Object.assign(new Error(errorMessage), {
80
80
  packageManager: inferPackageManagerForGlobalCLI(),
81
81
  platform: process.platform,
@@ -89,7 +89,7 @@ async function detectStopCommand(commandClass) {
89
89
  if (commandClass && "analyticsStopCommand" in commandClass && typeof commandClass.analyticsStopCommand == "function") {
90
90
  let stopCommand = commandClass.analyticsStopCommand();
91
91
  if (stopCommand) {
92
- let metadata = await import("./metadata-FXCUDE5I.js"), { commandStartOptions } = metadata.getAllSensitiveMetadata();
92
+ let metadata = await import("./metadata-Z65VJ53L.js"), { commandStartOptions } = metadata.getAllSensitiveMetadata();
93
93
  if (!commandStartOptions)
94
94
  return;
95
95
  await metadata.addSensitiveMetadata(() => ({
@@ -107,4 +107,4 @@ export {
107
107
  waitForPostRunHookAndExit,
108
108
  hook
109
109
  };
110
- //# sourceMappingURL=chunk-UMSYG5WJ.js.map
110
+ //# sourceMappingURL=chunk-32DG2OXV.js.map
@@ -4,9 +4,9 @@ import {
4
4
 
5
5
  // ../cli-kit/dist/public/common/version.js
6
6
  init_cjs_shims();
7
- var CLI_KIT_VERSION = "4.0.0";
7
+ var CLI_KIT_VERSION = "4.1.0";
8
8
 
9
9
  export {
10
10
  CLI_KIT_VERSION
11
11
  };
12
- //# sourceMappingURL=chunk-ANIFE3UR.js.map
12
+ //# sourceMappingURL=chunk-7OFS6B2C.js.map
@@ -478,7 +478,6 @@ var environmentVariables = {
478
478
  enableCliRedirect: "SHOPIFY_CLI_ENABLE_CLI_REDIRECT",
479
479
  env: "SHOPIFY_CLI_ENV",
480
480
  firstPartyDev: "SHOPIFY_CLI_1P_DEV",
481
- hostedApps: "HOSTED_APPS",
482
481
  noAnalytics: "SHOPIFY_CLI_NO_ANALYTICS",
483
482
  optOutInstrumentation: "OPT_OUT_INSTRUMENTATION",
484
483
  appAutomationToken: "SHOPIFY_APP_AUTOMATION_TOKEN",
@@ -531,11 +530,11 @@ var environmentVariables = {
531
530
  var import_macaddress = __toESM(require_macaddress(), 1);
532
531
  import { homedir as homedir2 } from "os";
533
532
  async function lazyFileExists(path2) {
534
- let { fileExists } = await import("./fs-XENRLBMU.js");
533
+ let { fileExists } = await import("./fs-HPLMOQQD.js");
535
534
  return fileExists(path2);
536
535
  }
537
536
  async function lazyExec(command, args) {
538
- let { exec } = await import("./system-W4MMMHEV.js");
537
+ let { exec } = await import("./system-YW6RJ2KQ.js");
539
538
  await exec(command, args);
540
539
  }
541
540
  function isTerminalInteractive() {
@@ -544,20 +543,18 @@ function isTerminalInteractive() {
544
543
  function homeDirectory() {
545
544
  return homedir2();
546
545
  }
546
+ var memoizedIsVerbose, memoizedIsUnitTest;
547
547
  function isDevelopment(env2 = process.env) {
548
548
  return env2[environmentVariables.env] === "development";
549
549
  }
550
550
  function isVerbose(env2 = process.env) {
551
- return isTruthy(env2[environmentVariables.verbose]) || process.argv.includes("--verbose");
551
+ return env2 === process.env ? memoizedIsVerbose ?? (memoizedIsVerbose = isTruthy(env2[environmentVariables.verbose]) || process.argv.includes("--verbose")) : isTruthy(env2[environmentVariables.verbose]) || process.argv.includes("--verbose");
552
552
  }
553
553
  async function isShopify(env2 = process.env) {
554
554
  return Object.prototype.hasOwnProperty.call(env2, environmentVariables.runAsUser) ? !isTruthy(env2[environmentVariables.runAsUser]) : await lazyFileExists(pathConstants.executables.dev);
555
555
  }
556
556
  function isUnitTest(env2 = process.env) {
557
- return isTruthy(env2[environmentVariables.unitTest]);
558
- }
559
- function isHostedAppsMode(env2 = process.env) {
560
- return isTruthy(env2[environmentVariables.hostedApps]);
557
+ return env2 === process.env ? memoizedIsUnitTest ?? (memoizedIsUnitTest = isTruthy(env2[environmentVariables.unitTest])) : isTruthy(env2[environmentVariables.unitTest]);
561
558
  }
562
559
  function analyticsDisabled(env2 = process.env) {
563
560
  return isTruthy(env2[environmentVariables.noAnalytics]) || isTruthy(env2[environmentVariables.optOutInstrumentation]) || isDevelopment(env2);
@@ -644,7 +641,6 @@ export {
644
641
  isVerbose,
645
642
  isShopify,
646
643
  isUnitTest,
647
- isHostedAppsMode,
648
644
  analyticsDisabled,
649
645
  alwaysLogAnalytics,
650
646
  alwaysLogMetrics,
@@ -662,4 +658,4 @@ export {
662
658
  getThemeKitAccessDomain,
663
659
  opentelemetryDomain
664
660
  };
665
- //# sourceMappingURL=chunk-4CS37CS5.js.map
661
+ //# sourceMappingURL=chunk-A6TJPMVH.js.map
@@ -2,7 +2,7 @@ import {
2
2
  isTruthy,
3
3
  isUnitTest,
4
4
  isVerbose
5
- } from "./chunk-4CS37CS5.js";
5
+ } from "./chunk-A6TJPMVH.js";
6
6
  import {
7
7
  require_has_flag
8
8
  } from "./chunk-DJW2W7VA.js";
@@ -25087,17 +25087,17 @@ function currentProcessIsGlobal(argv = process.argv) {
25087
25087
  }
25088
25088
  }
25089
25089
  async function installGlobalShopifyCLI(packageManager) {
25090
- let { outputInfo: outputInfo2 } = await import("./output-PQSQ7U45.js"), { exec: exec3 } = await import("./system-W4MMMHEV.js"), args = packageManager === "yarn" ? ["global", "add", "@shopify/cli@latest"] : ["install", "-g", "@shopify/cli@latest"];
25090
+ let { outputInfo: outputInfo2 } = await import("./output-MCH67S5U.js"), { exec: exec3 } = await import("./system-YW6RJ2KQ.js"), args = packageManager === "yarn" ? ["global", "add", "@shopify/cli@latest"] : ["install", "-g", "@shopify/cli@latest"];
25091
25091
  outputInfo2(`Running ${packageManager} ${args.join(" ")}...`), await exec3(packageManager, args, { stdio: "inherit" });
25092
25092
  }
25093
25093
  async function installGlobalCLIPrompt() {
25094
- let { terminalSupportsPrompting } = await import("./system-W4MMMHEV.js");
25094
+ let { terminalSupportsPrompting } = await import("./system-YW6RJ2KQ.js");
25095
25095
  if (!terminalSupportsPrompting())
25096
25096
  return { install: !1, alreadyInstalled: !1 };
25097
- let { globalCLIVersion } = await import("./version-HKPHVW5M.js");
25097
+ let { globalCLIVersion } = await import("./version-V77ZX5N2.js");
25098
25098
  if (await globalCLIVersion())
25099
25099
  return { install: !1, alreadyInstalled: !0 };
25100
- let { renderSelectPrompt } = await import("./ui-2FROV2IT.js");
25100
+ let { renderSelectPrompt } = await import("./ui-AYUE37Z3.js");
25101
25101
  return { install: await renderSelectPrompt({
25102
25102
  message: "We recommend installing Shopify CLI globally in your system. Would you like to install it now?",
25103
25103
  choices: [
@@ -31654,7 +31654,8 @@ function outputCompleted(content, logger = consoleWarn) {
31654
31654
  isUnitTest() && collectLog("completed", content), outputWhereAppropriate("info", logger, message);
31655
31655
  }
31656
31656
  function outputDebug(content, logger = consoleWarn) {
31657
- isUnitTest() && collectLog("debug", content);
31657
+ if (isUnitTest() && collectLog("debug", content), !shouldOutput("debug"))
31658
+ return;
31658
31659
  let message = source_default.gray(stringifyMessage(content));
31659
31660
  outputWhereAppropriate("debug", logger, `${(/* @__PURE__ */ new Date()).toISOString()}: ${message}`);
31660
31661
  }
@@ -31921,10 +31922,8 @@ function pascalize(str) {
31921
31922
  return (0, import_change_case.pascalCase)(str);
31922
31923
  }
31923
31924
  function normalizeDelimitedString(delimitedString, delimiter = ",") {
31924
- if (!delimitedString)
31925
- return;
31926
- let sortedItems = delimitedString.split(delimiter).map((value) => value.trim()).filter((value) => value !== "").sort();
31927
- return [...new Set(sortedItems)].join(delimiter);
31925
+ if (delimitedString)
31926
+ return uniq(delimitedString.split(delimiter).map((item) => item.trim()).filter((item) => item !== "")).sort().join(delimiter);
31928
31927
  }
31929
31928
  function timeAgo(from, to) {
31930
31929
  let seconds = Math.floor((to.getTime() - from.getTime()) / 1e3);
@@ -33767,4 +33766,4 @@ react-reconciler/cjs/react-reconciler.development.js:
33767
33766
  * LICENSE file in the root directory of this source tree.
33768
33767
  *)
33769
33768
  */
33770
- //# sourceMappingURL=chunk-LNOZTAML.js.map
33769
+ //# sourceMappingURL=chunk-BMI6QCMV.js.map
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  runWithTimer
3
- } from "./chunk-37G3KLO2.js";
3
+ } from "./chunk-SWITKWBS.js";
4
4
  import {
5
5
  AbortError,
6
6
  AbortSilentError,
@@ -8,7 +8,7 @@ import {
8
8
  ExternalError,
9
9
  cleanSingleStackTracePath,
10
10
  mimicFunction
11
- } from "./chunk-JUV7D377.js";
11
+ } from "./chunk-MIECGF3H.js";
12
12
  import {
13
13
  require_ansi_styles
14
14
  } from "./chunk-UX6FRPFM.js";
@@ -20,7 +20,7 @@ import {
20
20
  } from "./chunk-PES3XMQM.js";
21
21
  import {
22
22
  treeKill
23
- } from "./chunk-QN5KFM2B.js";
23
+ } from "./chunk-CEGG2EWP.js";
24
24
  import {
25
25
  Box_default,
26
26
  Command,
@@ -67,11 +67,11 @@ import {
67
67
  use_input_default,
68
68
  use_stdin_default,
69
69
  use_stdout_default
70
- } from "./chunk-LNOZTAML.js";
70
+ } from "./chunk-BMI6QCMV.js";
71
71
  import {
72
72
  isTruthy,
73
73
  isUnitTest
74
- } from "./chunk-4CS37CS5.js";
74
+ } from "./chunk-A6TJPMVH.js";
75
75
  import {
76
76
  cwd,
77
77
  delimiter,
@@ -3727,46 +3727,14 @@ function parseCommand2(command) {
3727
3727
  return current && result.push(current), result;
3728
3728
  }
3729
3729
  async function captureCommandWithExitCode(command, options) {
3730
- let env = options?.env ?? process.env;
3731
- shouldDisplayColors() && (env.FORCE_COLOR = "1");
3732
- let executionCwd = options?.cwd ?? cwd(), [cmd, ...args] = parseCommand2(command);
3733
- if (!cmd)
3734
- return { stdout: "", stderr: "Empty command", exitCode: 1 };
3735
- checkCommandSafety(cmd, { cwd: executionCwd });
3736
- let result = await execa(cmd, args, {
3737
- env,
3738
- cwd: executionCwd,
3739
- reject: !1
3740
- });
3741
- return {
3742
- stdout: result.stdout,
3743
- stderr: result.stderr,
3744
- exitCode: result.exitCode ?? 0
3745
- };
3730
+ let [cmd, ...args] = parseCommand2(command);
3731
+ return cmd ? captureOutputWithExitCode(cmd, args, options) : { stdout: "", stderr: "Empty command", exitCode: 1 };
3746
3732
  }
3747
3733
  async function execCommand(command, options) {
3748
- let env = options?.env ?? process.env;
3749
- shouldDisplayColors() && (env.FORCE_COLOR = "1");
3750
- let executionCwd = options?.cwd ?? cwd(), [cmd, ...args] = parseCommand2(command);
3734
+ let [cmd, ...args] = parseCommand2(command);
3751
3735
  if (!cmd)
3752
3736
  throw new AbortError("Empty command");
3753
- checkCommandSafety(cmd, { cwd: executionCwd });
3754
- try {
3755
- await execa(cmd, args, {
3756
- env,
3757
- cwd: executionCwd,
3758
- stdin: options?.stdin,
3759
- stdout: options?.stdout === "inherit" ? "inherit" : void 0,
3760
- stderr: options?.stderr === "inherit" ? "inherit" : void 0
3761
- });
3762
- } catch (processError) {
3763
- if (options?.externalErrorHandler)
3764
- await options.externalErrorHandler(processError);
3765
- else {
3766
- let abortError = new ExternalError(processError.message, command, []);
3767
- throw abortError.stack = processError.stack, abortError;
3768
- }
3769
- }
3737
+ await exec(cmd, args, options);
3770
3738
  }
3771
3739
  async function exec(command, args, options) {
3772
3740
  if (options) {
@@ -5649,4 +5617,4 @@ export {
5649
5617
  isStdinPiped,
5650
5618
  readStdinString
5651
5619
  };
5652
- //# sourceMappingURL=chunk-YIHECXVH.js.map
5620
+ //# sourceMappingURL=chunk-C5OLLQWI.js.map
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  outputDebug
3
- } from "./chunk-LNOZTAML.js";
3
+ } from "./chunk-BMI6QCMV.js";
4
4
  import {
5
5
  init_cjs_shims
6
6
  } from "./chunk-PKR7KJ6P.js";
@@ -101,4 +101,4 @@ function buildProcessTree(parentPid, tree, pidsToProcess, spawnChildProcessesLis
101
101
  export {
102
102
  treeKill
103
103
  };
104
- //# sourceMappingURL=chunk-QN5KFM2B.js.map
104
+ //# sourceMappingURL=chunk-CEGG2EWP.js.map
@@ -1,18 +1,18 @@
1
1
  import {
2
2
  cacheRetrieve,
3
3
  cacheRetrieveOrRepopulate
4
- } from "./chunk-YUPQUA3D.js";
4
+ } from "./chunk-RB7BXTZQ.js";
5
5
  import {
6
6
  AbortController,
7
7
  exec
8
- } from "./chunk-YIHECXVH.js";
8
+ } from "./chunk-C5OLLQWI.js";
9
9
  import {
10
10
  runWithTimer
11
- } from "./chunk-37G3KLO2.js";
11
+ } from "./chunk-SWITKWBS.js";
12
12
  import {
13
13
  AbortError,
14
14
  BugError
15
- } from "./chunk-JUV7D377.js";
15
+ } from "./chunk-MIECGF3H.js";
16
16
  import {
17
17
  require_semver
18
18
  } from "./chunk-6OOTYTVB.js";
@@ -27,7 +27,7 @@ import {
27
27
  outputToken,
28
28
  readFile,
29
29
  writeFile
30
- } from "./chunk-LNOZTAML.js";
30
+ } from "./chunk-BMI6QCMV.js";
31
31
  import {
32
32
  dirname,
33
33
  joinPath
@@ -368,4 +368,4 @@ export {
368
368
  writePackageJSON,
369
369
  inferPackageManager
370
370
  };
371
- //# sourceMappingURL=chunk-IGDZPTDH.js.map
371
+ //# sourceMappingURL=chunk-JT5MT2JE.js.map
@@ -5,7 +5,7 @@ import {
5
5
  TokenizedString,
6
6
  stringifyMessage,
7
7
  tokenItemToString
8
- } from "./chunk-LNOZTAML.js";
8
+ } from "./chunk-BMI6QCMV.js";
9
9
  import {
10
10
  normalizePath
11
11
  } from "./chunk-ACS6S42W.js";
@@ -174,7 +174,7 @@ async function handler(error) {
174
174
  let maybeError = error;
175
175
  fatal = new BugError(maybeError?.message ?? "Unknown error"), maybeError?.stack && (fatal.stack = maybeError?.stack);
176
176
  }
177
- let { renderFatalError } = await import("./ui-2FROV2IT.js");
177
+ let { renderFatalError } = await import("./ui-AYUE37Z3.js");
178
178
  return renderFatalError(fatal), Promise.resolve(error);
179
179
  }
180
180
  function errorMapper(error) {
@@ -261,4 +261,4 @@ export {
261
261
  cleanSingleStackTracePath,
262
262
  import_ts_error
263
263
  };
264
- //# sourceMappingURL=chunk-JUV7D377.js.map
264
+ //# sourceMappingURL=chunk-MIECGF3H.js.map
@@ -1,15 +1,15 @@
1
1
  import {
2
2
  renderWarning
3
- } from "./chunk-YIHECXVH.js";
3
+ } from "./chunk-C5OLLQWI.js";
4
4
  import {
5
5
  addSensitiveMetadata
6
- } from "./chunk-37G3KLO2.js";
6
+ } from "./chunk-SWITKWBS.js";
7
7
  import {
8
8
  fileExists,
9
9
  findPathUp,
10
10
  readFile,
11
11
  writeFile
12
- } from "./chunk-LNOZTAML.js";
12
+ } from "./chunk-BMI6QCMV.js";
13
13
  import {
14
14
  cwd
15
15
  } from "./chunk-ACS6S42W.js";
@@ -1620,7 +1620,7 @@ function encodeToml(content) {
1620
1620
  }
1621
1621
 
1622
1622
  // ../cli-kit/dist/public/node/toml/toml-file.js
1623
- var import_toml_patch = __toESM(require_toml_patch()), TomlFileError = class extends Error {
1623
+ var import_toml_patch = __toESM(require_toml_patch(), 1), TomlFileError = class extends Error {
1624
1624
  constructor(path, message) {
1625
1625
  super(message), this.name = "TomlFileError", this.path = path;
1626
1626
  }
@@ -1768,4 +1768,4 @@ export {
1768
1768
  loadEnvironment,
1769
1769
  environmentFilePath
1770
1770
  };
1771
- //# sourceMappingURL=chunk-DNF3EUMN.js.map
1771
+ //# sourceMappingURL=chunk-PVHOBK32.js.map
@@ -2,7 +2,7 @@ import {
2
2
  AbortError,
3
3
  BugError,
4
4
  mimicFunction
5
- } from "./chunk-JUV7D377.js";
5
+ } from "./chunk-MIECGF3H.js";
6
6
  import {
7
7
  require_semver
8
8
  } from "./chunk-6OOTYTVB.js";
@@ -11,12 +11,12 @@ import {
11
11
  outputContent,
12
12
  outputDebug,
13
13
  unixFileIsOwnedByCurrentUser
14
- } from "./chunk-LNOZTAML.js";
14
+ } from "./chunk-BMI6QCMV.js";
15
15
  import {
16
16
  envPaths,
17
17
  environmentVariables,
18
18
  isUnitTest
19
- } from "./chunk-4CS37CS5.js";
19
+ } from "./chunk-A6TJPMVH.js";
20
20
  import {
21
21
  dirname
22
22
  } from "./chunk-ACS6S42W.js";
@@ -6103,4 +6103,4 @@ export {
6103
6103
  getCachedPartnerAccountStatus,
6104
6104
  setCachedPartnerAccountStatus
6105
6105
  };
6106
- //# sourceMappingURL=chunk-YUPQUA3D.js.map
6106
+ //# sourceMappingURL=chunk-RB7BXTZQ.js.map
@@ -4,10 +4,10 @@ import {
4
4
  import {
5
5
  getPackageManager,
6
6
  packageManagerFromUserAgent
7
- } from "./chunk-IGDZPTDH.js";
7
+ } from "./chunk-JT5MT2JE.js";
8
8
  import {
9
9
  CLI_KIT_VERSION
10
- } from "./chunk-ANIFE3UR.js";
10
+ } from "./chunk-7OFS6B2C.js";
11
11
  import {
12
12
  FormData,
13
13
  fetch_blob_default,
@@ -27,7 +27,7 @@ import {
27
27
  setCurrentSessionId,
28
28
  setSessions,
29
29
  timeIntervalToMilliseconds
30
- } from "./chunk-YUPQUA3D.js";
30
+ } from "./chunk-RB7BXTZQ.js";
31
31
  import {
32
32
  isCI,
33
33
  isTTY,
@@ -38,14 +38,14 @@ import {
38
38
  require_baseForOwn,
39
39
  require_stacktracey,
40
40
  sleep
41
- } from "./chunk-YIHECXVH.js";
41
+ } from "./chunk-C5OLLQWI.js";
42
42
  import {
43
43
  addPublicMetadata,
44
44
  addSensitiveMetadata,
45
45
  getAllPublicMetadata,
46
46
  getAllSensitiveMetadata,
47
47
  runWithTimer
48
- } from "./chunk-37G3KLO2.js";
48
+ } from "./chunk-SWITKWBS.js";
49
49
  import {
50
50
  AbortError,
51
51
  AbortSilentError,
@@ -57,7 +57,7 @@ import {
57
57
  handler,
58
58
  import_ts_error,
59
59
  shouldReportErrorAsUnexpected
60
- } from "./chunk-JUV7D377.js";
60
+ } from "./chunk-MIECGF3H.js";
61
61
  import {
62
62
  require_lib
63
63
  } from "./chunk-UX6FRPFM.js";
@@ -104,7 +104,7 @@ import {
104
104
  require_stubArray,
105
105
  require_toKey,
106
106
  stringifyMessage
107
- } from "./chunk-LNOZTAML.js";
107
+ } from "./chunk-BMI6QCMV.js";
108
108
  import {
109
109
  alwaysLogAnalytics,
110
110
  alwaysLogMetrics,
@@ -124,7 +124,7 @@ import {
124
124
  sessionConstants,
125
125
  systemEnvironmentVariables,
126
126
  themeToken
127
- } from "./chunk-4CS37CS5.js";
127
+ } from "./chunk-A6TJPMVH.js";
128
128
  import {
129
129
  cwd,
130
130
  isAbsolutePath,
@@ -51162,7 +51162,7 @@ var RequestClientError = class extends AbortError {
51162
51162
  function sanitizedHeadersOutput(headers) {
51163
51163
  let sanitized = {}, keywords = ["token", "authorization", "subject_token", "cookie"];
51164
51164
  return Object.keys(headers).forEach((header) => {
51165
- keywords.find((keyword) => header.toLocaleLowerCase().includes(keyword)) === void 0 && (sanitized[header] = headers[header]);
51165
+ keywords.find((keyword) => header.toLowerCase().includes(keyword)) === void 0 && (sanitized[header] = headers[header]);
51166
51166
  }), Object.keys(sanitized).map((header) => ` - ${header}: ${sanitized[header]}`).join(`
51167
51167
  `);
51168
51168
  }
@@ -55068,4 +55068,4 @@ mime-types/index.js:
55068
55068
  * MIT Licensed
55069
55069
  *)
55070
55070
  */
55071
- //# sourceMappingURL=chunk-STHW3YIX.js.map
55071
+ //# sourceMappingURL=chunk-S4YEA2XG.js.map
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  isUnitTest
3
- } from "./chunk-4CS37CS5.js";
3
+ } from "./chunk-A6TJPMVH.js";
4
4
  import {
5
5
  init_cjs_shims
6
6
  } from "./chunk-PKR7KJ6P.js";
@@ -32,7 +32,7 @@ function createRuntimeMetadataContainer(defaultPublicMetadata = {}) {
32
32
  try {
33
33
  await getAndSet();
34
34
  } catch (error) {
35
- let { sendErrorToBugsnag } = await import("./error-handler-KHJE653Z.js");
35
+ let { sendErrorToBugsnag } = await import("./error-handler-YXGIUGKI.js");
36
36
  await sendErrorToBugsnag(error, "unexpected_error");
37
37
  }
38
38
  }, durationStack = [];
@@ -75,4 +75,4 @@ export {
75
75
  addSensitiveMetadata,
76
76
  runWithTimer
77
77
  };
78
- //# sourceMappingURL=chunk-37G3KLO2.js.map
78
+ //# sourceMappingURL=chunk-SWITKWBS.js.map