@shopify/create-app 4.5.2 → 4.6.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.
Files changed (50) hide show
  1. package/dist/{analytics-S4SMDD46.js → analytics-GP57RR6R.js} +14 -14
  2. package/dist/{analytics-FXDS645P.js → analytics-HXZNGNCN.js} +14 -14
  3. package/dist/{chokidar-JYHMNWDF.js → chokidar-OCE4HB5W.js} +2 -2
  4. package/dist/{chunk-B2ZXFZCY.js → chunk-3JSJSGAQ.js} +2 -2
  5. package/dist/{chunk-BONVUA65.js → chunk-BPIA4T3X.js} +3 -9
  6. package/dist/{chunk-XR7ELYLE.js → chunk-CMK3RV4O.js} +13 -5
  7. package/dist/{chunk-MSETDX6T.js → chunk-HNMF25KI.js} +9 -10
  8. package/dist/{chunk-GEEDJI25.js → chunk-JK6PBDEW.js} +16 -16
  9. package/dist/{chunk-KWG6VAVE.js → chunk-K5NLRHZR.js} +37 -28
  10. package/dist/{chunk-V2YWOBZ6.js → chunk-K5UHKI43.js} +9 -8
  11. package/dist/{chunk-MCW4ES3V.js → chunk-N7J64MYF.js} +10 -10
  12. package/dist/{chunk-GDVNJLIG.js → chunk-QK2IQEBY.js} +10 -15
  13. package/dist/{chunk-HABWQC37.js → chunk-SI4LHZYW.js} +167 -16
  14. package/dist/chunk-T446SGE5.js +21746 -0
  15. package/dist/{chunk-HISALD2J.js → chunk-TNZEM7JJ.js} +5 -5
  16. package/dist/{chunk-OE3FSIHW.js → chunk-UFLX7QDP.js} +2 -2
  17. package/dist/{chunk-TGBPX4PY.js → chunk-VLCFLRJB.js} +2 -2
  18. package/dist/{chunk-RJWAPUKM.js → chunk-ZGSDAUKG.js} +627 -21970
  19. package/dist/{chunk-KJGNF64X.js → chunk-ZLYYWQWW.js} +3 -3
  20. package/dist/{chunk-MRVSRQ5W.js → chunk-ZUKA5LQU.js} +13 -18
  21. package/dist/{conf-store-U47RHH7F.js → conf-store-ZYB6IGB7.js} +8 -8
  22. package/dist/{custom-oclif-loader-7BTLNXYR.js → custom-oclif-loader-MNCB3QFM.js} +2 -2
  23. package/dist/{deprecations-EXDNIO7X.js → deprecations-FOMUQSMA.js} +10 -10
  24. package/dist/environments-SWXYO6KQ.js +26 -0
  25. package/dist/{error-handler-NPN6TP4N.js → error-handler-PXVIL3GI.js} +14 -14
  26. package/dist/{fs-KQ7D45P4.js → fs-FVYWMVWY.js} +5 -5
  27. package/dist/hooks/postrun.js +6 -6
  28. package/dist/hooks/prerun.js +6 -6
  29. package/dist/index.js +6313 -8144
  30. package/dist/index.test.js +54 -45
  31. package/dist/{is-global-4TFBXA6F.js → is-global-QP5DA2PW.js} +5 -5
  32. package/dist/{latest-version-6X5NXQEO.js → latest-version-HW6YILV7.js} +20 -19
  33. package/dist/{lib-NKDE2QNY.js → lib-SEAHPNPA.js} +2 -2
  34. package/dist/{local-XEWL77WP.js → local-FQ2FNAKK.js} +2 -4
  35. package/dist/{metadata-5SJEO2RF.js → metadata-7RRKVERI.js} +3 -3
  36. package/dist/{node-package-manager-MI6ZJ7MA.js → node-package-manager-7MTYEDAO.js} +12 -12
  37. package/dist/{notifications-system-JPDTXFT5.js → notifications-system-GHCK5E2U.js} +15 -15
  38. package/dist/out-LBNH64BP.js +7 -0
  39. package/dist/{output-RCLOYTHC.js → output-7VC5AJM7.js} +5 -5
  40. package/dist/{system-4JFNY3SE.js → system-OTGPJVTA.js} +10 -10
  41. package/dist/tsconfig.tsbuildinfo +1 -1
  42. package/dist/{ui-KAGET7XQ.js → ui-3H6HVYPD.js} +10 -10
  43. package/dist/{upgrade-2XD477LW.js → upgrade-AYIRDOVJ.js} +16 -16
  44. package/dist/{version-4JYVUV7D.js → version-CCMJSEAI.js} +11 -11
  45. package/dist/{version-4U52DFWP.js → version-OHC3XUOI.js} +2 -2
  46. package/oclif.manifest.json +9 -1
  47. package/package.json +4 -4
  48. package/dist/chunk-UC7ROXAW.js +0 -264
  49. package/dist/environments-W7S7754G.js +0 -26
  50. package/dist/out-B5JNCU2S.js +0 -7
@@ -5,28 +5,28 @@ import {
5
5
  recordRetry,
6
6
  recordTiming,
7
7
  reportAnalyticsEvent
8
- } from "./chunk-RJWAPUKM.js";
8
+ } from "./chunk-ZGSDAUKG.js";
9
9
  import "./chunk-MSED5ZFM.js";
10
- import "./chunk-V2YWOBZ6.js";
11
- import "./chunk-TGBPX4PY.js";
10
+ import "./chunk-K5UHKI43.js";
11
+ import "./chunk-VLCFLRJB.js";
12
12
  import "./chunk-G53O4PDO.js";
13
- import "./chunk-XR7ELYLE.js";
14
- import "./chunk-MSETDX6T.js";
15
- import "./chunk-KJGNF64X.js";
16
- import "./chunk-UC7ROXAW.js";
17
- import "./chunk-KWG6VAVE.js";
13
+ import "./chunk-CMK3RV4O.js";
14
+ import "./chunk-HNMF25KI.js";
15
+ import "./chunk-ZLYYWQWW.js";
16
+ import "./chunk-T446SGE5.js";
17
+ import "./chunk-K5NLRHZR.js";
18
18
  import "./chunk-ODCXYGJ2.js";
19
19
  import "./chunk-LBXDGVFS.js";
20
20
  import "./chunk-D6NYWNY2.js";
21
21
  import "./chunk-JGGOQOPO.js";
22
22
  import "./chunk-OQ3KXXGH.js";
23
- import "./chunk-GDVNJLIG.js";
24
- import "./chunk-MRVSRQ5W.js";
25
- import "./chunk-BONVUA65.js";
23
+ import "./chunk-QK2IQEBY.js";
24
+ import "./chunk-ZUKA5LQU.js";
25
+ import "./chunk-BPIA4T3X.js";
26
26
  import "./chunk-7OHJH7BF.js";
27
27
  import "./chunk-C3J4HVUN.js";
28
- import "./chunk-OE3FSIHW.js";
29
- import "./chunk-HABWQC37.js";
28
+ import "./chunk-UFLX7QDP.js";
29
+ import "./chunk-SI4LHZYW.js";
30
30
  import "./chunk-3XNI6LP4.js";
31
31
  export {
32
32
  compileData,
@@ -36,4 +36,4 @@ export {
36
36
  recordTiming,
37
37
  reportAnalyticsEvent
38
38
  };
39
- //# sourceMappingURL=analytics-S4SMDD46.js.map
39
+ //# sourceMappingURL=analytics-GP57RR6R.js.map
@@ -2,32 +2,32 @@ import {
2
2
  getEnvironmentData,
3
3
  getSensitiveEnvironmentData,
4
4
  startAnalytics
5
- } from "./chunk-RJWAPUKM.js";
5
+ } from "./chunk-ZGSDAUKG.js";
6
6
  import "./chunk-MSED5ZFM.js";
7
- import "./chunk-V2YWOBZ6.js";
8
- import "./chunk-TGBPX4PY.js";
7
+ import "./chunk-K5UHKI43.js";
8
+ import "./chunk-VLCFLRJB.js";
9
9
  import "./chunk-G53O4PDO.js";
10
- import "./chunk-XR7ELYLE.js";
11
- import "./chunk-MSETDX6T.js";
12
- import "./chunk-KJGNF64X.js";
13
- import "./chunk-UC7ROXAW.js";
14
- import "./chunk-KWG6VAVE.js";
10
+ import "./chunk-CMK3RV4O.js";
11
+ import "./chunk-HNMF25KI.js";
12
+ import "./chunk-ZLYYWQWW.js";
13
+ import "./chunk-T446SGE5.js";
14
+ import "./chunk-K5NLRHZR.js";
15
15
  import "./chunk-ODCXYGJ2.js";
16
16
  import "./chunk-LBXDGVFS.js";
17
17
  import "./chunk-D6NYWNY2.js";
18
18
  import "./chunk-JGGOQOPO.js";
19
19
  import "./chunk-OQ3KXXGH.js";
20
- import "./chunk-GDVNJLIG.js";
21
- import "./chunk-MRVSRQ5W.js";
22
- import "./chunk-BONVUA65.js";
20
+ import "./chunk-QK2IQEBY.js";
21
+ import "./chunk-ZUKA5LQU.js";
22
+ import "./chunk-BPIA4T3X.js";
23
23
  import "./chunk-7OHJH7BF.js";
24
24
  import "./chunk-C3J4HVUN.js";
25
- import "./chunk-OE3FSIHW.js";
26
- import "./chunk-HABWQC37.js";
25
+ import "./chunk-UFLX7QDP.js";
26
+ import "./chunk-SI4LHZYW.js";
27
27
  import "./chunk-3XNI6LP4.js";
28
28
  export {
29
29
  getEnvironmentData,
30
30
  getSensitiveEnvironmentData,
31
31
  startAnalytics
32
32
  };
33
- //# sourceMappingURL=analytics-FXDS645P.js.map
33
+ //# sourceMappingURL=analytics-HXZNGNCN.js.map
@@ -6,7 +6,7 @@ import {
6
6
  require_glob_parent,
7
7
  require_is_glob,
8
8
  require_picomatch
9
- } from "./chunk-HABWQC37.js";
9
+ } from "./chunk-SI4LHZYW.js";
10
10
  import {
11
11
  __commonJS,
12
12
  __require,
@@ -1594,4 +1594,4 @@ var require_chokidar = __commonJS({
1594
1594
  }
1595
1595
  });
1596
1596
  export default require_chokidar();
1597
- //# sourceMappingURL=chokidar-JYHMNWDF.js.map
1597
+ //# sourceMappingURL=chokidar-OCE4HB5W.js.map
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  captureOutput,
3
3
  require_lib
4
- } from "./chunk-MSETDX6T.js";
4
+ } from "./chunk-HNMF25KI.js";
5
5
  import {
6
6
  require_semver
7
7
  } from "./chunk-OQ3KXXGH.js";
@@ -52,4 +52,4 @@ export {
52
52
  isPreReleaseVersion,
53
53
  isMajorVersionChange
54
54
  };
55
- //# sourceMappingURL=chunk-B2ZXFZCY.js.map
55
+ //# sourceMappingURL=chunk-3JSJSGAQ.js.map
@@ -477,7 +477,6 @@ var environmentVariables = {
477
477
  doctor: "SHOPIFY_CLI_DOCTOR",
478
478
  enableCliRedirect: "SHOPIFY_CLI_ENABLE_CLI_REDIRECT",
479
479
  env: "SHOPIFY_CLI_ENV",
480
- firstPartyDev: "SHOPIFY_CLI_1P_DEV",
481
480
  noAnalytics: "SHOPIFY_CLI_NO_ANALYTICS",
482
481
  optOutInstrumentation: "OPT_OUT_INSTRUMENTATION",
483
482
  appAutomationToken: "SHOPIFY_APP_AUTOMATION_TOKEN",
@@ -503,7 +502,6 @@ var environmentVariables = {
503
502
  otelURL: "SHOPIFY_CLI_OTEL_EXPORTER_OTLP_ENDPOINT",
504
503
  themeKitAccessDomain: "SHOPIFY_CLI_THEME_KIT_ACCESS_DOMAIN",
505
504
  json: "SHOPIFY_FLAG_JSON",
506
- neverUsePartnersApi: "SHOPIFY_CLI_NEVER_USE_PARTNERS_API",
507
505
  skipNetworkLevelRetry: "SHOPIFY_CLI_SKIP_NETWORK_LEVEL_RETRY",
508
506
  maxRequestTimeForNetworkCalls: "SHOPIFY_CLI_MAX_REQUEST_TIME_FOR_NETWORK_CALLS",
509
507
  disableImportScanning: "SHOPIFY_CLI_DISABLE_IMPORT_SCANNING"
@@ -530,11 +528,11 @@ var environmentVariables = {
530
528
  var import_macaddress = __toESM(require_macaddress(), 1);
531
529
  import { homedir as homedir2 } from "os";
532
530
  async function lazyFileExists(path2) {
533
- let { fileExists } = await import("./fs-KQ7D45P4.js");
531
+ let { fileExists } = await import("./fs-FVYWMVWY.js");
534
532
  return fileExists(path2);
535
533
  }
536
534
  async function lazyExec(command, args) {
537
- let { exec } = await import("./system-4JFNY3SE.js");
535
+ let { exec } = await import("./system-OTGPJVTA.js");
538
536
  await exec(command, args);
539
537
  }
540
538
  function isTerminalInteractive() {
@@ -565,9 +563,6 @@ function alwaysLogAnalytics(env2 = process.env) {
565
563
  function alwaysLogMetrics(env2 = process.env) {
566
564
  return isTruthy(env2[environmentVariables.alwaysLogMetrics]);
567
565
  }
568
- function firstPartyDev(env2 = process.env) {
569
- return isTruthy(env2[environmentVariables.firstPartyDev]);
570
- }
571
566
  function canRunDoctorRelease(env2 = process.env) {
572
567
  return isTruthy(env2[environmentVariables.doctor]);
573
568
  }
@@ -644,7 +639,6 @@ export {
644
639
  analyticsDisabled,
645
640
  alwaysLogAnalytics,
646
641
  alwaysLogMetrics,
647
- firstPartyDev,
648
642
  canRunDoctorRelease,
649
643
  gitpodURL,
650
644
  codespaceURL,
@@ -658,4 +652,4 @@ export {
658
652
  getThemeKitAccessDomain,
659
653
  opentelemetryDomain
660
654
  };
661
- //# sourceMappingURL=chunk-BONVUA65.js.map
655
+ //# sourceMappingURL=chunk-BPIA4T3X.js.map
@@ -2,7 +2,7 @@ import {
2
2
  AbortError,
3
3
  BugError,
4
4
  mimicFunction
5
- } from "./chunk-UC7ROXAW.js";
5
+ } from "./chunk-T446SGE5.js";
6
6
  import {
7
7
  require_semver
8
8
  } from "./chunk-OQ3KXXGH.js";
@@ -11,12 +11,12 @@ import {
11
11
  outputContent,
12
12
  outputDebug,
13
13
  unixFileIsOwnedByCurrentUser
14
- } from "./chunk-MRVSRQ5W.js";
14
+ } from "./chunk-ZUKA5LQU.js";
15
15
  import {
16
16
  envPaths,
17
17
  environmentVariables,
18
18
  isUnitTest
19
- } from "./chunk-BONVUA65.js";
19
+ } from "./chunk-BPIA4T3X.js";
20
20
  import {
21
21
  dirname
22
22
  } from "./chunk-C3J4HVUN.js";
@@ -5910,9 +5910,17 @@ var import_semver = __toESM(require_semver(), 1), __classPrivateFieldSet = funct
5910
5910
  };
5911
5911
 
5912
5912
  // ../cli-kit/dist/public/node/local-storage.js
5913
+ function deserializeJson(value) {
5914
+ let valueWithoutByteOrderMark = value.replace(/^\uFEFF/, "");
5915
+ return JSON.parse(valueWithoutByteOrderMark);
5916
+ }
5913
5917
  var LocalStorage = class {
5914
5918
  constructor(options) {
5915
- this.config = new Conf(options);
5919
+ this.config = new Conf({
5920
+ ...options,
5921
+ clearInvalidConfig: !0,
5922
+ deserialize: deserializeJson
5923
+ });
5916
5924
  }
5917
5925
  /**
5918
5926
  * Get a value from the local storage.
@@ -6103,4 +6111,4 @@ export {
6103
6111
  getCachedPartnerAccountStatus,
6104
6112
  setCachedPartnerAccountStatus
6105
6113
  };
6106
- //# sourceMappingURL=chunk-XR7ELYLE.js.map
6114
+ //# sourceMappingURL=chunk-CMK3RV4O.js.map
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  runWithTimer
3
- } from "./chunk-KJGNF64X.js";
3
+ } from "./chunk-ZLYYWQWW.js";
4
4
  import {
5
5
  AbortError,
6
6
  AbortSilentError,
@@ -8,10 +8,10 @@ import {
8
8
  ExternalError,
9
9
  cleanSingleStackTracePath,
10
10
  mimicFunction
11
- } from "./chunk-UC7ROXAW.js";
11
+ } from "./chunk-T446SGE5.js";
12
12
  import {
13
13
  require_ansi_styles
14
- } from "./chunk-KWG6VAVE.js";
14
+ } from "./chunk-K5NLRHZR.js";
15
15
  import {
16
16
  require_source_map
17
17
  } from "./chunk-D6NYWNY2.js";
@@ -20,7 +20,7 @@ import {
20
20
  } from "./chunk-JGGOQOPO.js";
21
21
  import {
22
22
  treeKill
23
- } from "./chunk-GDVNJLIG.js";
23
+ } from "./chunk-QK2IQEBY.js";
24
24
  import {
25
25
  Box_default,
26
26
  Command,
@@ -67,12 +67,12 @@ import {
67
67
  use_input_default,
68
68
  use_stdin_default,
69
69
  use_stdout_default
70
- } from "./chunk-MRVSRQ5W.js";
70
+ } from "./chunk-ZUKA5LQU.js";
71
71
  import {
72
72
  isCloudEnvironment,
73
73
  isTruthy,
74
74
  isUnitTest
75
- } from "./chunk-BONVUA65.js";
75
+ } from "./chunk-BPIA4T3X.js";
76
76
  import {
77
77
  cwd,
78
78
  delimiter,
@@ -3701,6 +3701,7 @@ function makeUsernameFromId(userId) {
3701
3701
  // ../cli-kit/dist/public/node/system.js
3702
3702
  var import_supports_hyperlinks = __toESM(require_supports_hyperlinks(), 1), import_which = __toESM(require_lib(), 1);
3703
3703
  import { fstatSync } from "fs";
3704
+ import { setTimeout as setTimeout2 } from "timers/promises";
3704
3705
  var MAX_STDIN_SIZE = 10 * 1024 * 1024;
3705
3706
  async function openURL(url) {
3706
3707
  if (isCloudEnvironment())
@@ -3800,9 +3801,7 @@ function checkCommandSafety(command, _options) {
3800
3801
  }
3801
3802
  }
3802
3803
  async function sleep(seconds) {
3803
- return new Promise((resolve) => {
3804
- setTimeout(resolve, 1e3 * seconds);
3805
- });
3804
+ await setTimeout2(1e3 * seconds);
3806
3805
  }
3807
3806
  function terminalSupportsHyperlinks() {
3808
3807
  return import_supports_hyperlinks.default.stdout;
@@ -5630,4 +5629,4 @@ export {
5630
5629
  isStdinPiped,
5631
5630
  readStdinString
5632
5631
  };
5633
- //# sourceMappingURL=chunk-MSETDX6T.js.map
5632
+ //# sourceMappingURL=chunk-HNMF25KI.js.map
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  treeKill
3
- } from "./chunk-GDVNJLIG.js";
3
+ } from "./chunk-QK2IQEBY.js";
4
4
  import {
5
5
  init_cjs_shims
6
6
  } from "./chunk-3XNI6LP4.js";
@@ -26,22 +26,22 @@ function waitForPostRunHookAndExit() {
26
26
  }
27
27
  var hook = async ({ config, Command }) => {
28
28
  await detectStopCommand(Command);
29
- let metadata = await import("./metadata-5SJEO2RF.js"), { commandStartOptions } = metadata.getAllSensitiveMetadata();
29
+ let metadata = await import("./metadata-7RRKVERI.js"), { commandStartOptions } = metadata.getAllSensitiveMetadata();
30
30
  commandStartOptions && await metadata.addSensitiveMetadata(() => ({
31
31
  commandStartOptions: {
32
32
  ...commandStartOptions,
33
33
  endTime: (/* @__PURE__ */ new Date()).getTime()
34
34
  }
35
35
  }));
36
- let { postrun: deprecationsHook } = await import("./deprecations-EXDNIO7X.js");
36
+ let { postrun: deprecationsHook } = await import("./deprecations-FOMUQSMA.js");
37
37
  deprecationsHook(Command);
38
- let { outputDebug } = await import("./output-RCLOYTHC.js"), command = Command.id.replace(/:/g, " ");
38
+ let { outputDebug } = await import("./output-7VC5AJM7.js"), command = Command.id.replace(/:/g, " ");
39
39
  outputDebug(`Completed command ${command}`), !command.includes("notifications") && !command.includes("upgrade") && await autoUpgradeIfNeeded();
40
- let { reportAnalyticsEvent } = await import("./analytics-S4SMDD46.js");
40
+ let { reportAnalyticsEvent } = await import("./analytics-GP57RR6R.js");
41
41
  await reportAnalyticsEvent({ config, exitMode: "ok" }), postRunHookCompleted = !0;
42
42
  };
43
43
  async function autoUpgradeIfNeeded() {
44
- let { versionToAutoUpgrade, warnIfUpgradeAvailable } = await import("./upgrade-2XD477LW.js"), newerVersion = versionToAutoUpgrade();
44
+ let { versionToAutoUpgrade, warnIfUpgradeAvailable } = await import("./upgrade-AYIRDOVJ.js"), newerVersion = versionToAutoUpgrade();
45
45
  if (!newerVersion) {
46
46
  await warnIfUpgradeAvailable();
47
47
  return;
@@ -49,7 +49,7 @@ async function autoUpgradeIfNeeded() {
49
49
  if (process.env.SHOPIFY_CLI_FORCE_AUTO_UPGRADE === "1")
50
50
  await performAutoUpgrade(newerVersion);
51
51
  else {
52
- let { runAtMinimumInterval } = await import("./conf-store-U47RHH7F.js");
52
+ let { runAtMinimumInterval } = await import("./conf-store-ZYB6IGB7.js");
53
53
  await runAtMinimumInterval("auto-upgrade", { days: 1 }, async () => {
54
54
  await performAutoUpgrade(newerVersion);
55
55
  });
@@ -57,11 +57,11 @@ async function autoUpgradeIfNeeded() {
57
57
  }
58
58
  async function performAutoUpgrade(newerVersion) {
59
59
  let [{ CLI_KIT_VERSION }, { isMajorVersionChange }, { outputWarn, outputDebug }, { getOutputUpdateCLIReminder, runCLIUpgrade, hasBlockingAutoUpgradeNotification }, metadata] = await Promise.all([
60
- import("./version-4U52DFWP.js"),
61
- import("./version-4JYVUV7D.js"),
62
- import("./output-RCLOYTHC.js"),
63
- import("./upgrade-2XD477LW.js"),
64
- import("./metadata-5SJEO2RF.js")
60
+ import("./version-OHC3XUOI.js"),
61
+ import("./version-CCMJSEAI.js"),
62
+ import("./output-7VC5AJM7.js"),
63
+ import("./upgrade-AYIRDOVJ.js"),
64
+ import("./metadata-7RRKVERI.js")
65
65
  ]);
66
66
  if (isMajorVersionChange(CLI_KIT_VERSION, newerVersion)) {
67
67
  outputWarn(getOutputUpdateCLIReminder(newerVersion, !0)), await metadata.addPublicMetadata(() => ({
@@ -81,8 +81,8 @@ async function performAutoUpgrade(newerVersion) {
81
81
  let errorMessage = `Auto-upgrade failed: ${error}`;
82
82
  outputDebug(errorMessage), outputWarn(getOutputUpdateCLIReminder(newerVersion)), await metadata.addPublicMetadata(() => ({ env_auto_upgrade_success: !1 }));
83
83
  let [{ sendErrorToBugsnag }, { inferPackageManagerForGlobalCLI }] = await Promise.all([
84
- import("./error-handler-NPN6TP4N.js"),
85
- import("./is-global-4TFBXA6F.js")
84
+ import("./error-handler-PXVIL3GI.js"),
85
+ import("./is-global-QP5DA2PW.js")
86
86
  ]), enrichedError = Object.assign(new Error(errorMessage), {
87
87
  packageManager: inferPackageManagerForGlobalCLI(),
88
88
  platform: process.platform,
@@ -96,7 +96,7 @@ async function detectStopCommand(commandClass) {
96
96
  if (commandClass && "analyticsStopCommand" in commandClass && typeof commandClass.analyticsStopCommand == "function") {
97
97
  let stopCommand = commandClass.analyticsStopCommand();
98
98
  if (stopCommand) {
99
- let metadata = await import("./metadata-5SJEO2RF.js"), { commandStartOptions } = metadata.getAllSensitiveMetadata();
99
+ let metadata = await import("./metadata-7RRKVERI.js"), { commandStartOptions } = metadata.getAllSensitiveMetadata();
100
100
  if (!commandStartOptions)
101
101
  return;
102
102
  await metadata.addSensitiveMetadata(() => ({
@@ -114,4 +114,4 @@ export {
114
114
  waitForPostRunHookAndExit,
115
115
  hook
116
116
  };
117
- //# sourceMappingURL=chunk-GEEDJI25.js.map
117
+ //# sourceMappingURL=chunk-JK6PBDEW.js.map
@@ -6017,9 +6017,9 @@ var require_os = __commonJS({
6017
6017
  }
6018
6018
  });
6019
6019
 
6020
- // ../../node_modules/.pnpm/balanced-match@4.0.4/node_modules/balanced-match/dist/commonjs/index.js
6020
+ // ../../node_modules/.pnpm/balanced-match@4.0.3/node_modules/balanced-match/dist/commonjs/index.js
6021
6021
  var require_commonjs = __commonJS({
6022
- "../../node_modules/.pnpm/balanced-match@4.0.4/node_modules/balanced-match/dist/commonjs/index.js"(exports) {
6022
+ "../../node_modules/.pnpm/balanced-match@4.0.3/node_modules/balanced-match/dist/commonjs/index.js"(exports) {
6023
6023
  "use strict";
6024
6024
  init_cjs_shims();
6025
6025
  Object.defineProperty(exports, "__esModule", { value: !0 });
@@ -6061,9 +6061,9 @@ var require_commonjs = __commonJS({
6061
6061
  }
6062
6062
  });
6063
6063
 
6064
- // ../../node_modules/.pnpm/brace-expansion@5.0.5/node_modules/brace-expansion/dist/commonjs/index.js
6064
+ // ../../node_modules/.pnpm/brace-expansion@5.0.6/node_modules/brace-expansion/dist/commonjs/index.js
6065
6065
  var require_commonjs2 = __commonJS({
6066
- "../../node_modules/.pnpm/brace-expansion@5.0.5/node_modules/brace-expansion/dist/commonjs/index.js"(exports) {
6066
+ "../../node_modules/.pnpm/brace-expansion@5.0.6/node_modules/brace-expansion/dist/commonjs/index.js"(exports) {
6067
6067
  "use strict";
6068
6068
  init_cjs_shims();
6069
6069
  Object.defineProperty(exports, "__esModule", { value: !0 });
@@ -6134,7 +6134,7 @@ var require_commonjs2 = __commonJS({
6134
6134
  y < x && (incr *= -1, test = gte);
6135
6135
  let pad = n.some(isPadded);
6136
6136
  N = [];
6137
- for (let i = x; test(i, y); i += incr) {
6137
+ for (let i = x; test(i, y) && N.length < max; i += incr) {
6138
6138
  let c;
6139
6139
  if (isAlphaSequence)
6140
6140
  c = String.fromCharCode(i), c === "\\" && (c = "");
@@ -7270,9 +7270,9 @@ var require_commonjs3 = __commonJS({
7270
7270
  }
7271
7271
  });
7272
7272
 
7273
- // ../../node_modules/.pnpm/picomatch@4.0.4/node_modules/picomatch/lib/constants.js
7273
+ // ../../node_modules/.pnpm/picomatch@4.0.5/node_modules/picomatch/lib/constants.js
7274
7274
  var require_constants = __commonJS({
7275
- "../../node_modules/.pnpm/picomatch@4.0.4/node_modules/picomatch/lib/constants.js"(exports, module) {
7275
+ "../../node_modules/.pnpm/picomatch@4.0.5/node_modules/picomatch/lib/constants.js"(exports, module) {
7276
7276
  "use strict";
7277
7277
  init_cjs_shims();
7278
7278
  var WIN_NO_SLASH = "[^\\\\/]", ONE_CHAR = "(?=.)", QMARK = "[^/]", END_ANCHOR = "(?:\\/|$)", START_ANCHOR = "(?:^|\\/)", DOTS_SLASH = `\\.{1,2}${END_ANCHOR}`, NO_DOT = "(?!\\.)", NO_DOTS = `(?!${START_ANCHOR}${DOTS_SLASH})`, NO_DOT_SLASH = `(?!\\.{0,1}${END_ANCHOR})`, NO_DOTS_SLASH = `(?!${DOTS_SLASH})`, QMARK_NO_DOT = "[^.\\/]", STAR = `${QMARK}*?`, SEP = "/", POSIX_CHARS = {
@@ -7452,9 +7452,9 @@ var require_constants = __commonJS({
7452
7452
  }
7453
7453
  });
7454
7454
 
7455
- // ../../node_modules/.pnpm/picomatch@4.0.4/node_modules/picomatch/lib/utils.js
7455
+ // ../../node_modules/.pnpm/picomatch@4.0.5/node_modules/picomatch/lib/utils.js
7456
7456
  var require_utils2 = __commonJS({
7457
- "../../node_modules/.pnpm/picomatch@4.0.4/node_modules/picomatch/lib/utils.js"(exports) {
7457
+ "../../node_modules/.pnpm/picomatch@4.0.5/node_modules/picomatch/lib/utils.js"(exports) {
7458
7458
  "use strict";
7459
7459
  init_cjs_shims();
7460
7460
  var {
@@ -7495,9 +7495,9 @@ var require_utils2 = __commonJS({
7495
7495
  }
7496
7496
  });
7497
7497
 
7498
- // ../../node_modules/.pnpm/picomatch@4.0.4/node_modules/picomatch/lib/scan.js
7498
+ // ../../node_modules/.pnpm/picomatch@4.0.5/node_modules/picomatch/lib/scan.js
7499
7499
  var require_scan = __commonJS({
7500
- "../../node_modules/.pnpm/picomatch@4.0.4/node_modules/picomatch/lib/scan.js"(exports, module) {
7500
+ "../../node_modules/.pnpm/picomatch@4.0.5/node_modules/picomatch/lib/scan.js"(exports, module) {
7501
7501
  "use strict";
7502
7502
  init_cjs_shims();
7503
7503
  var utils = require_utils2(), {
@@ -7682,9 +7682,9 @@ var require_scan = __commonJS({
7682
7682
  }
7683
7683
  });
7684
7684
 
7685
- // ../../node_modules/.pnpm/picomatch@4.0.4/node_modules/picomatch/lib/parse.js
7685
+ // ../../node_modules/.pnpm/picomatch@4.0.5/node_modules/picomatch/lib/parse.js
7686
7686
  var require_parse = __commonJS({
7687
- "../../node_modules/.pnpm/picomatch@4.0.4/node_modules/picomatch/lib/parse.js"(exports, module) {
7687
+ "../../node_modules/.pnpm/picomatch@4.0.5/node_modules/picomatch/lib/parse.js"(exports, module) {
7688
7688
  "use strict";
7689
7689
  init_cjs_shims();
7690
7690
  var constants = require_constants(), utils = require_utils2(), {
@@ -7809,7 +7809,7 @@ var require_parse = __commonJS({
7809
7809
  }
7810
7810
  }
7811
7811
  }
7812
- }, getStarExtglobSequenceOutput = (pattern) => {
7812
+ }, buildCharClassStar = (chars) => `${chars.length === 1 ? utils.escapeRegex(chars[0]) : `[${chars.map((ch) => utils.escapeRegex(ch)).join("")}]`}*`, getStarExtglobSequenceChars = (pattern) => {
7813
7813
  let index = 0, chars = [];
7814
7814
  for (; index < pattern.length; ) {
7815
7815
  let match = parseRepeatedExtglob(pattern.slice(index), !1);
@@ -7823,7 +7823,8 @@ var require_parse = __commonJS({
7823
7823
  return;
7824
7824
  chars.push(branch), index += match.end + 1;
7825
7825
  }
7826
- return chars.length < 1 ? void 0 : `${chars.length === 1 ? utils.escapeRegex(chars[0]) : `[${chars.map((ch) => utils.escapeRegex(ch)).join("")}]`}*`;
7826
+ if (!(chars.length < 1))
7827
+ return chars;
7827
7828
  }, repeatedExtglobRecursion = (pattern) => {
7828
7829
  let depth = 0, value = pattern.trim(), match = parseRepeatedExtglob(value);
7829
7830
  for (; match; )
@@ -7835,14 +7836,22 @@ var require_parse = __commonJS({
7835
7836
  let max = typeof options.maxExtglobRecursion == "number" ? options.maxExtglobRecursion : constants.DEFAULT_MAX_EXTGLOB_RECURSION, branches = splitTopLevel(body).map((branch) => branch.trim());
7836
7837
  if (branches.length > 1 && (branches.some((branch) => branch === "") || branches.some((branch) => /^[*?]+$/.test(branch)) || hasRepeatedCharPrefixOverlap(branches)))
7837
7838
  return { risky: !0 };
7839
+ let safeChars = [], sawStarSequence = !1, combinable = !0;
7838
7840
  for (let branch of branches) {
7839
- let safeOutput = getStarExtglobSequenceOutput(branch);
7840
- if (safeOutput)
7841
- return { risky: !0, safeOutput };
7842
- if (repeatedExtglobRecursion(branch) > max)
7841
+ let chars = getStarExtglobSequenceChars(branch);
7842
+ if (chars) {
7843
+ sawStarSequence = !0, safeChars.push(...chars);
7844
+ continue;
7845
+ }
7846
+ let literal = normalizeSimpleBranch(branch);
7847
+ if (literal && literal.length === 1) {
7848
+ safeChars.push(literal);
7849
+ continue;
7850
+ }
7851
+ if (combinable = !1, repeatedExtglobRecursion(branch) > max)
7843
7852
  return { risky: !0 };
7844
7853
  }
7845
- return { risky: !1 };
7854
+ return sawStarSequence ? combinable ? { risky: !0, safeOutput: buildCharClassStar([...new Set(safeChars)]) } : { risky: !0 } : { risky: !1 };
7846
7855
  }, parse = (input, options) => {
7847
7856
  if (typeof input != "string")
7848
7857
  throw new TypeError("Expected a string");
@@ -8274,9 +8283,9 @@ var require_parse = __commonJS({
8274
8283
  }
8275
8284
  });
8276
8285
 
8277
- // ../../node_modules/.pnpm/picomatch@4.0.4/node_modules/picomatch/lib/picomatch.js
8286
+ // ../../node_modules/.pnpm/picomatch@4.0.5/node_modules/picomatch/lib/picomatch.js
8278
8287
  var require_picomatch = __commonJS({
8279
- "../../node_modules/.pnpm/picomatch@4.0.4/node_modules/picomatch/lib/picomatch.js"(exports, module) {
8288
+ "../../node_modules/.pnpm/picomatch@4.0.5/node_modules/picomatch/lib/picomatch.js"(exports, module) {
8280
8289
  "use strict";
8281
8290
  init_cjs_shims();
8282
8291
  var scan = require_scan(), parse = require_parse(), utils = require_utils2(), constants = require_constants(), isObject = (val) => val && typeof val == "object" && !Array.isArray(val), picomatch = (glob, options, returnState = !1) => {
@@ -8314,7 +8323,7 @@ var require_picomatch = __commonJS({
8314
8323
  let opts = options || {}, format = opts.format || (posix ? utils.toPosixSlashes : null), match = input === glob, output = match && format ? format(input) : input;
8315
8324
  return match === !1 && (output = format ? format(input) : input, match = output === glob), (match === !1 || opts.capture === !0) && (opts.matchBase === !0 || opts.basename === !0 ? match = picomatch.matchBase(input, regex, options, posix) : match = regex.exec(output)), { isMatch: !!match, match, output };
8316
8325
  };
8317
- picomatch.matchBase = (input, glob, options) => (glob instanceof RegExp ? glob : picomatch.makeRe(glob, options)).test(utils.basename(input));
8326
+ picomatch.matchBase = (input, glob, options, posix = options && options.windows) => (glob instanceof RegExp ? glob : picomatch.makeRe(glob, options)).test(utils.basename(input, { windows: posix }));
8318
8327
  picomatch.isMatch = (str, patterns, options) => picomatch(patterns, options)(str);
8319
8328
  picomatch.parse = (pattern, options) => Array.isArray(pattern) ? pattern.map((p) => picomatch.parse(p, options)) : parse(pattern, { ...options, fastpaths: !1 });
8320
8329
  picomatch.scan = (input, options) => scan(input, options);
@@ -8346,9 +8355,9 @@ var require_picomatch = __commonJS({
8346
8355
  }
8347
8356
  });
8348
8357
 
8349
- // ../../node_modules/.pnpm/picomatch@4.0.4/node_modules/picomatch/index.js
8358
+ // ../../node_modules/.pnpm/picomatch@4.0.5/node_modules/picomatch/index.js
8350
8359
  var require_picomatch2 = __commonJS({
8351
- "../../node_modules/.pnpm/picomatch@4.0.4/node_modules/picomatch/index.js"(exports, module) {
8360
+ "../../node_modules/.pnpm/picomatch@4.0.5/node_modules/picomatch/index.js"(exports, module) {
8352
8361
  "use strict";
8353
8362
  init_cjs_shims();
8354
8363
  var pico = require_picomatch(), utils = require_utils2();
@@ -8360,9 +8369,9 @@ var require_picomatch2 = __commonJS({
8360
8369
  }
8361
8370
  });
8362
8371
 
8363
- // ../../node_modules/.pnpm/fdir@6.5.0_picomatch@4.0.4/node_modules/fdir/dist/index.cjs
8372
+ // ../../node_modules/.pnpm/fdir@6.5.0_picomatch@4.0.5/node_modules/fdir/dist/index.cjs
8364
8373
  var require_dist = __commonJS({
8365
- "../../node_modules/.pnpm/fdir@6.5.0_picomatch@4.0.4/node_modules/fdir/dist/index.cjs"(exports) {
8374
+ "../../node_modules/.pnpm/fdir@6.5.0_picomatch@4.0.5/node_modules/fdir/dist/index.cjs"(exports) {
8366
8375
  init_cjs_shims();
8367
8376
  var __create = Object.create, __defProp = Object.defineProperty, __getOwnPropDesc = Object.getOwnPropertyDescriptor, __getOwnPropNames = Object.getOwnPropertyNames, __getProtoOf = Object.getPrototypeOf, __hasOwnProp = Object.prototype.hasOwnProperty, __copyProps = (to, from, except, desc) => {
8368
8377
  if (from && typeof from == "object" || typeof from == "function") for (var keys = __getOwnPropNames(from), i = 0, n = keys.length, key; i < n; i++)
@@ -11793,4 +11802,4 @@ ejs/lib/ejs.js:
11793
11802
  * @license {@link http://www.apache.org/licenses/LICENSE-2.0 Apache License, Version 2.0}
11794
11803
  *)
11795
11804
  */
11796
- //# sourceMappingURL=chunk-KWG6VAVE.js.map
11805
+ //# sourceMappingURL=chunk-K5NLRHZR.js.map
@@ -1,18 +1,18 @@
1
1
  import {
2
2
  cacheRetrieve,
3
3
  cacheRetrieveOrRepopulate
4
- } from "./chunk-XR7ELYLE.js";
4
+ } from "./chunk-CMK3RV4O.js";
5
5
  import {
6
6
  AbortController,
7
7
  exec
8
- } from "./chunk-MSETDX6T.js";
8
+ } from "./chunk-HNMF25KI.js";
9
9
  import {
10
10
  runWithTimer
11
- } from "./chunk-KJGNF64X.js";
11
+ } from "./chunk-ZLYYWQWW.js";
12
12
  import {
13
13
  AbortError,
14
14
  BugError
15
- } from "./chunk-UC7ROXAW.js";
15
+ } from "./chunk-T446SGE5.js";
16
16
  import {
17
17
  require_semver
18
18
  } from "./chunk-OQ3KXXGH.js";
@@ -27,7 +27,7 @@ import {
27
27
  outputToken,
28
28
  readFile,
29
29
  writeFile
30
- } from "./chunk-MRVSRQ5W.js";
30
+ } from "./chunk-ZUKA5LQU.js";
31
31
  import {
32
32
  dirname,
33
33
  joinPath
@@ -74,7 +74,8 @@ var import_semver = __toESM(require_semver(), 1), yarnLockfile = "yarn.lock", np
74
74
  }
75
75
  };
76
76
  function packageManagerFromUserAgent(env = process.env) {
77
- return env.npm_config_user_agent?.includes("yarn") ? "yarn" : env.npm_config_user_agent?.includes("pnpm") ? "pnpm" : env.npm_config_user_agent?.includes("bun") ? "bun" : env.npm_config_user_agent?.includes("npm") ? "npm" : "unknown";
77
+ let userAgent = env.npm_config_user_agent;
78
+ return ["yarn", "pnpm", "bun", "npm"].find((pm) => userAgent?.includes(pm)) ?? "unknown";
78
79
  }
79
80
  function hasBunLockfileSync(directory) {
80
81
  return fileExistsSync(joinPath(directory, bunLockfile)) || fileExistsSync(joinPath(directory, modernBunLockfile));
@@ -316,7 +317,7 @@ async function addResolutionOrOverride(directory, dependencies) {
316
317
  }
317
318
  async function getLatestNPMPackageVersion(name) {
318
319
  return outputDebug(outputContent`Getting the latest version of NPM package: ${outputToken.raw(name)}`), runWithTimer("cmd_all_timing_network_ms")(async () => {
319
- let { default: latestVersion } = await import("./latest-version-6X5NXQEO.js");
320
+ let { default: latestVersion } = await import("./latest-version-HW6YILV7.js");
320
321
  return latestVersion(name);
321
322
  });
322
323
  }
@@ -368,4 +369,4 @@ export {
368
369
  writePackageJSON,
369
370
  inferPackageManager
370
371
  };
371
- //# sourceMappingURL=chunk-V2YWOBZ6.js.map
372
+ //# sourceMappingURL=chunk-K5UHKI43.js.map