@shopify/cli 3.86.0 → 3.87.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 (101) hide show
  1. package/README.md +2 -1
  2. package/dist/assets/dev-console/extensions/dev-console/assets/index-0hw3R_TS.css +1 -0
  3. package/dist/assets/dev-console/index.html +2 -2
  4. package/dist/{chunk-NMH42STK.js → chunk-43MAAODZ.js} +29 -17
  5. package/dist/{chunk-O32LAXNO.js → chunk-4RMT22ZG.js} +116 -97
  6. package/dist/{chunk-UAYSVXRU.js → chunk-4X3OSIUW.js} +19 -7
  7. package/dist/{chunk-WZTQS5NN.js → chunk-6CKI4ZVA.js} +8 -8
  8. package/dist/{chunk-J5WELXX6.js → chunk-77FBLQSY.js} +3 -3
  9. package/dist/{chunk-7VKRIIXT.js → chunk-DX2IC6MA.js} +25 -8
  10. package/dist/chunk-EZQWZ57B.js +53 -0
  11. package/dist/{chunk-NIZJP24I.js → chunk-FBDL6M34.js} +4 -4
  12. package/dist/{chunk-TCTK5NQE.js → chunk-GK3L6WCO.js} +8 -8
  13. package/dist/{chunk-4MSYMXAX.js → chunk-GPKHDSF5.js} +2 -2
  14. package/dist/{chunk-5RBPM5MR.js → chunk-GV3VXLHN.js} +7 -7
  15. package/dist/{chunk-6UMZO4DD.js → chunk-H3HXI5FI.js} +5 -5
  16. package/dist/{chunk-LPSHXR57.js → chunk-H5JSK6HV.js} +2 -2
  17. package/dist/{chunk-AM4QB5OM.js → chunk-HMDWNGIV.js} +100 -206
  18. package/dist/{chunk-4YT3BY2B.js → chunk-HMJUSDS7.js} +2 -2
  19. package/dist/{chunk-LOWKEYZ4.js → chunk-ILCR5V7H.js} +2 -2
  20. package/dist/{chunk-GAPPN3SH.js → chunk-JJ3N36EZ.js} +3 -3
  21. package/dist/{chunk-6FH6AJI5.js → chunk-KUJQ4AB6.js} +103 -2
  22. package/dist/{chunk-ZRLTG3SU.js → chunk-KW37WO42.js} +4 -4
  23. package/dist/{chunk-7TE554OT.js → chunk-LMVYXPIS.js} +22 -9
  24. package/dist/{chunk-IZMUO44N.js → chunk-LVH6EINO.js} +5 -5
  25. package/dist/{chunk-G3RY2PNL.js → chunk-LWFYEQVC.js} +4 -4
  26. package/dist/{chunk-KIMPXWRC.js → chunk-MJ2CC5UF.js} +4 -4
  27. package/dist/{chunk-LDJGMHXE.js → chunk-NKJY5K45.js} +4 -4
  28. package/dist/{chunk-DKRTUP7T.js → chunk-PE3YDRXC.js} +2 -2
  29. package/dist/{chunk-PFWYGIIB.js → chunk-PU7263L3.js} +4 -4
  30. package/dist/{chunk-E25JAFOX.js → chunk-PW5V2LBK.js} +3 -3
  31. package/dist/{chunk-JMQJQNH7.js → chunk-QIIIG73M.js} +60 -186
  32. package/dist/{chunk-LDFPMZVN.js → chunk-R7GPNRH3.js} +2 -2
  33. package/dist/{chunk-4TSN5PHA.js → chunk-TVAQLJIT.js} +3 -3
  34. package/dist/{chunk-AA57B6YW.js → chunk-TY4JIQTU.js} +3 -3
  35. package/dist/{chunk-2KZOUSPH.js → chunk-U4EHUN6F.js} +5 -5
  36. package/dist/{chunk-AQK2VHTY.js → chunk-U6SKVYZN.js} +3 -3
  37. package/dist/{chunk-UKECTTQZ.js → chunk-UQLUAYP7.js} +2 -2
  38. package/dist/{chunk-ZZGMPT2W.js → chunk-VDMWZFUE.js} +3 -3
  39. package/dist/{chunk-X2YIODUW.js → chunk-VLBE545G.js} +15 -1237
  40. package/dist/{chunk-5Q7CDSRK.js → chunk-VQVENW26.js} +6 -6
  41. package/dist/{chunk-GU76E24D.js → chunk-VRRM2VMH.js} +6 -6
  42. package/dist/{chunk-F2V6FX7R.js → chunk-WM77PTR2.js} +4 -4
  43. package/dist/chunk-XB6A45UN.js +80 -0
  44. package/dist/{chunk-EG6MBBEN.js → chunk-Y2JP6WFP.js} +2 -2
  45. package/dist/{chunk-UXJEPFC3.js → chunk-ZWG6Y7VK.js} +3 -3
  46. package/dist/cli/commands/auth/login.js +16 -13
  47. package/dist/cli/commands/auth/login.test.js +18 -15
  48. package/dist/cli/commands/auth/logout.js +16 -13
  49. package/dist/cli/commands/auth/logout.test.js +18 -15
  50. package/dist/cli/commands/cache/clear.js +16 -13
  51. package/dist/cli/commands/debug/command-flags.js +16 -13
  52. package/dist/cli/commands/docs/generate.js +16 -13
  53. package/dist/cli/commands/docs/generate.test.js +17 -14
  54. package/dist/cli/commands/help.js +16 -13
  55. package/dist/cli/commands/kitchen-sink/async.js +17 -14
  56. package/dist/cli/commands/kitchen-sink/async.test.js +18 -15
  57. package/dist/cli/commands/kitchen-sink/index.js +19 -16
  58. package/dist/cli/commands/kitchen-sink/index.test.js +20 -17
  59. package/dist/cli/commands/kitchen-sink/prompts.js +17 -14
  60. package/dist/cli/commands/kitchen-sink/prompts.test.js +18 -15
  61. package/dist/cli/commands/kitchen-sink/static.js +17 -14
  62. package/dist/cli/commands/kitchen-sink/static.test.js +18 -15
  63. package/dist/cli/commands/notifications/generate.js +17 -14
  64. package/dist/cli/commands/notifications/list.js +17 -14
  65. package/dist/cli/commands/search.js +17 -14
  66. package/dist/cli/commands/upgrade.js +17 -14
  67. package/dist/cli/commands/upgrade.test.js +1 -1
  68. package/dist/cli/commands/version.js +17 -14
  69. package/dist/cli/commands/version.test.js +18 -15
  70. package/dist/cli/services/commands/notifications.js +12 -9
  71. package/dist/cli/services/commands/search.js +8 -5
  72. package/dist/cli/services/commands/search.test.js +9 -6
  73. package/dist/cli/services/commands/version.js +9 -6
  74. package/dist/cli/services/commands/version.test.js +11 -8
  75. package/dist/cli/services/kitchen-sink/async.js +8 -5
  76. package/dist/cli/services/kitchen-sink/prompts.js +8 -5
  77. package/dist/cli/services/kitchen-sink/static.js +8 -5
  78. package/dist/cli/services/upgrade.js +9 -6
  79. package/dist/cli/services/upgrade.test.js +11 -8
  80. package/dist/{custom-oclif-loader-Y4GWKKAU.js → custom-oclif-loader-QBK7WNIL.js} +18 -11
  81. package/dist/{del-DIPVIUR3.js → del-E4LJOSMR.js} +6 -6
  82. package/dist/{error-handler-WPYX52XY.js → error-handler-YWRJD3ZX.js} +14 -11
  83. package/dist/hooks/postrun.js +14 -72
  84. package/dist/hooks/prerun.js +13 -10
  85. package/dist/{http-proxy-node16-K5X7BUK5.js → http-proxy-node16-VGGP6PLA.js} +5 -5
  86. package/dist/index.js +2882 -1679
  87. package/dist/{lib-EMZRCLCJ.js → lib-G7Q5M6VX.js} +4 -3
  88. package/dist/{local-ZMOSXANE.js → local-DU2CZ6Z3.js} +8 -5
  89. package/dist/{magic-string.es-UZAAPNRE.js → magic-string.es-S5HKFBJX.js} +5 -6
  90. package/dist/{morph-EGK76SED.js → morph-37GC7LQM.js} +16 -20
  91. package/dist/{node-package-manager-4KOKGFQG.js → node-package-manager-W22PEMMM.js} +9 -6
  92. package/dist/{npa-LHT53SWR.js → npa-E675GQOI.js} +5 -3
  93. package/dist/{path-GB4VIEM6.js → path-COZT77T2.js} +2 -2
  94. package/dist/tsconfig.tsbuildinfo +1 -1
  95. package/dist/{ui-YYVT2VLD.js → ui-GTBNK773.js} +8 -5
  96. package/dist/{workerd-35SAC4OI.js → workerd-CT4T6SDW.js} +18 -17
  97. package/oclif.manifest.json +95 -127
  98. package/package.json +8 -8
  99. package/dist/assets/dev-console/extensions/dev-console/assets/index-BteeGmYf.css +0 -1
  100. package/dist/chunk-IWFYXDPH.js +0 -109
  101. /package/dist/assets/dev-console/extensions/dev-console/assets/{index-Cj8WCHlM.js → index-C12jKScn.js} +0 -0
@@ -20,14 +20,14 @@ import {
20
20
  runWithTimer,
21
21
  unixFileIsOwnedByCurrentUser,
22
22
  writeFile
23
- } from "./chunk-JMQJQNH7.js";
23
+ } from "./chunk-QIIIG73M.js";
24
24
  import {
25
25
  require_semver
26
- } from "./chunk-X2YIODUW.js";
26
+ } from "./chunk-HMDWNGIV.js";
27
27
  import {
28
28
  dirname,
29
29
  joinPath
30
- } from "./chunk-EG6MBBEN.js";
30
+ } from "./chunk-Y2JP6WFP.js";
31
31
  import {
32
32
  __commonJS,
33
33
  __export,
@@ -9964,6 +9964,18 @@ async function runWithRateLimit(options, config = cliKitStore()) {
9964
9964
  return config.set("cache", cache), !0;
9965
9965
  }
9966
9966
 
9967
+ // ../cli-kit/dist/public/common/json.js
9968
+ init_cjs_shims();
9969
+ function parseJSON(jsonString, context) {
9970
+ try {
9971
+ return JSON.parse(jsonString);
9972
+ } catch (error) {
9973
+ let errorMessage = error instanceof Error ? error.message : String(error), contextMessage = context ? ` from ${context}` : "";
9974
+ throw new AbortError(`Failed to parse JSON${contextMessage}.
9975
+ ${errorMessage}`);
9976
+ }
9977
+ }
9978
+
9967
9979
  // ../../node_modules/.pnpm/latest-version@7.0.0/node_modules/latest-version/index.js
9968
9980
  init_cjs_shims();
9969
9981
 
@@ -13708,7 +13720,7 @@ async function latestVersion(packageName, options) {
13708
13720
  }
13709
13721
 
13710
13722
  // ../cli-kit/dist/public/node/node-package-manager.js
13711
- var import_semver3 = __toESM(require_semver()), yarnLockfile = "yarn.lock", npmLockfile = "package-lock.json", pnpmLockfile = "pnpm-lock.yaml", bunLockfile = "bun.lockb", pnpmWorkspaceFile = "pnpm-workspace.yaml", lockfiles = [yarnLockfile, pnpmLockfile, npmLockfile, bunLockfile], lockfilesByManager = {
13723
+ var import_semver3 = __toESM(require_semver(), 1), yarnLockfile = "yarn.lock", npmLockfile = "package-lock.json", pnpmLockfile = "pnpm-lock.yaml", bunLockfile = "bun.lockb", pnpmWorkspaceFile = "pnpm-workspace.yaml", lockfiles = [yarnLockfile, pnpmLockfile, npmLockfile, bunLockfile], lockfilesByManager = {
13712
13724
  yarn: yarnLockfile,
13713
13725
  npm: npmLockfile,
13714
13726
  pnpm: pnpmLockfile,
@@ -13811,7 +13823,7 @@ function versionSatisfies(version, requirements) {
13811
13823
  async function readAndParsePackageJson(packageJsonPath) {
13812
13824
  if (!await fileExists(packageJsonPath))
13813
13825
  throw new PackageJsonNotFoundError(dirname(packageJsonPath));
13814
- return JSON.parse(await readFile(packageJsonPath));
13826
+ return parseJSON(await readFile(packageJsonPath), packageJsonPath);
13815
13827
  }
13816
13828
  async function addNPMDependenciesIfNeeded(dependencies, options) {
13817
13829
  outputDebug(outputContent`Adding the following dependencies if needed:
@@ -13918,7 +13930,7 @@ function argumentsToAddDependenciesWithBun(dependencies, type) {
13918
13930
  async function findUpAndReadPackageJson(fromDirectory) {
13919
13931
  let packageJsonPath = await findPathUp("package.json", { cwd: fromDirectory, type: "file" });
13920
13932
  if (packageJsonPath) {
13921
- let packageJson2 = JSON.parse(await readFile(packageJsonPath));
13933
+ let packageJson2 = parseJSON(await readFile(packageJsonPath), packageJsonPath);
13922
13934
  return { path: packageJsonPath, content: packageJson2 };
13923
13935
  } else
13924
13936
  throw new FindUpAndReadPackageJsonNotFoundError(fromDirectory);
@@ -14023,4 +14035,4 @@ deep-extend/lib/deep-extend.js:
14023
14035
  * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
14024
14036
  *)
14025
14037
  */
14026
- //# sourceMappingURL=chunk-UAYSVXRU.js.map
14038
+ //# sourceMappingURL=chunk-4X3OSIUW.js.map
@@ -4,18 +4,18 @@ import {
4
4
  import {
5
5
  fanoutHooks,
6
6
  reportAnalyticsEvent
7
- } from "./chunk-5RBPM5MR.js";
7
+ } from "./chunk-GV3VXLHN.js";
8
8
  import {
9
9
  getEnvironmentData,
10
10
  getLastSeenUserIdAfterAuth,
11
11
  isLocalEnvironment
12
- } from "./chunk-NMH42STK.js";
12
+ } from "./chunk-43MAAODZ.js";
13
13
  import {
14
14
  runWithRateLimit
15
- } from "./chunk-UAYSVXRU.js";
15
+ } from "./chunk-4X3OSIUW.js";
16
16
  import {
17
17
  CLI_KIT_VERSION
18
- } from "./chunk-LDFPMZVN.js";
18
+ } from "./chunk-R7GPNRH3.js";
19
19
  import {
20
20
  AbortSilentError,
21
21
  CancelExecution,
@@ -30,17 +30,17 @@ import {
30
30
  reportingRateLimit,
31
31
  require_stacktracey,
32
32
  shouldReportErrorAsUnexpected
33
- } from "./chunk-JMQJQNH7.js";
33
+ } from "./chunk-QIIIG73M.js";
34
34
  import {
35
35
  require_lib
36
- } from "./chunk-X2YIODUW.js";
36
+ } from "./chunk-VLBE545G.js";
37
37
  import {
38
38
  cwd,
39
39
  isAbsolutePath,
40
40
  joinPath,
41
41
  normalizePath,
42
42
  relativePath
43
- } from "./chunk-EG6MBBEN.js";
43
+ } from "./chunk-Y2JP6WFP.js";
44
44
  import {
45
45
  __commonJS,
46
46
  __require,
@@ -2237,4 +2237,4 @@ export {
2237
2237
  registerCleanBugsnagErrorsFromWithinPlugins,
2238
2238
  addBugsnagMetadata
2239
2239
  };
2240
- //# sourceMappingURL=chunk-WZTQS5NN.js.map
2240
+ //# sourceMappingURL=chunk-6CKI4ZVA.js.map
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  versionService
3
- } from "./chunk-AQK2VHTY.js";
3
+ } from "./chunk-U6SKVYZN.js";
4
4
  import {
5
5
  base_command_default
6
- } from "./chunk-7VKRIIXT.js";
6
+ } from "./chunk-DX2IC6MA.js";
7
7
  import {
8
8
  init_cjs_shims
9
9
  } from "./chunk-PKR7KJ6P.js";
@@ -22,4 +22,4 @@ var Version = class extends base_command_default {
22
22
  export {
23
23
  Version
24
24
  };
25
- //# sourceMappingURL=chunk-J5WELXX6.js.map
25
+ //# sourceMappingURL=chunk-77FBLQSY.js.map
@@ -1,14 +1,14 @@
1
1
  import {
2
2
  errorHandler,
3
3
  registerCleanBugsnagErrorsFromWithinPlugins
4
- } from "./chunk-WZTQS5NN.js";
4
+ } from "./chunk-6CKI4ZVA.js";
5
5
  import {
6
6
  setCurrentCommandId,
7
7
  showNotificationsIfNeeded
8
- } from "./chunk-GU76E24D.js";
8
+ } from "./chunk-VRRM2VMH.js";
9
9
  import {
10
10
  hashString
11
- } from "./chunk-7TE554OT.js";
11
+ } from "./chunk-LMVYXPIS.js";
12
12
  import {
13
13
  AbortError,
14
14
  addPublicMetadata,
@@ -24,13 +24,13 @@ import {
24
24
  renderWarning,
25
25
  terminalSupportsPrompting,
26
26
  underscore
27
- } from "./chunk-JMQJQNH7.js";
27
+ } from "./chunk-QIIIG73M.js";
28
28
  import {
29
29
  require_lib
30
- } from "./chunk-X2YIODUW.js";
30
+ } from "./chunk-VLBE545G.js";
31
31
  import {
32
32
  cwd
33
- } from "./chunk-EG6MBBEN.js";
33
+ } from "./chunk-Y2JP6WFP.js";
34
34
  import {
35
35
  __commonJS,
36
36
  __require,
@@ -1564,7 +1564,7 @@ var import_core = __toESM(require_lib()), BaseCommand = class extends import_cor
1564
1564
  return error.skipOclifErrorHandling = !0, await errorHandler(error, this.config), import_core.Errors.handle(error);
1565
1565
  }
1566
1566
  async init() {
1567
- return this.exitWithTimestampWhenEnvVariablePresent(), setCurrentCommandId(this.id ?? ""), isDevelopment() || await registerCleanBugsnagErrorsFromWithinPlugins(this.config), this.showNpmFlagWarning(), await showNotificationsIfNeeded(), super.init();
1567
+ return this.exitWithTimestampWhenEnvVariablePresent(), setCurrentCommandId(this.id ?? ""), isDevelopment() || await registerCleanBugsnagErrorsFromWithinPlugins(this.config), await removeDuplicatedPlugins(this.config), this.showNpmFlagWarning(), await showNotificationsIfNeeded(), super.init();
1568
1568
  }
1569
1569
  // NPM creates an environment variable for every flag passed to a script.
1570
1570
  // This function checks for the presence of any of the available CLI flags
@@ -1683,6 +1683,23 @@ function argsFromEnvironment(environment, options, noDefaultsResult) {
1683
1683
  function commandSupportsFlag(flags, flagName) {
1684
1684
  return !!flags && Object.prototype.hasOwnProperty.call(flags, flagName);
1685
1685
  }
1686
+ async function removeDuplicatedPlugins(config) {
1687
+ let plugins = Array.from(config.plugins.values()), bundlePlugins = ["@shopify/app", "@shopify/plugin-cloudflare"], pluginsToRemove = plugins.filter((plugin) => bundlePlugins.includes(plugin.name));
1688
+ if (pluginsToRemove.length > 0) {
1689
+ let commandsToRun = pluginsToRemove.map((plugin) => ` - shopify plugins remove ${plugin.name}`).join(`
1690
+ `);
1691
+ renderWarning({
1692
+ headline: `Unsupported plugins detected: ${pluginsToRemove.map((plugin) => plugin.name).join(", ")}`,
1693
+ body: [
1694
+ "They are already included in the CLI and installing them as custom plugins can cause conflicts.",
1695
+ `You can fix it by running:
1696
+ ${commandsToRun}`
1697
+ ]
1698
+ });
1699
+ }
1700
+ let filteredPlugins = plugins.filter((plugin) => !bundlePlugins.includes(plugin.name));
1701
+ config.plugins = new Map(filteredPlugins.map((plugin) => [plugin.name, plugin]));
1702
+ }
1686
1703
  var base_command_default = BaseCommand;
1687
1704
 
1688
1705
  export {
@@ -1692,4 +1709,4 @@ export {
1692
1709
  noDefaultsOptions,
1693
1710
  base_command_default
1694
1711
  };
1695
- //# sourceMappingURL=chunk-7VKRIIXT.js.map
1712
+ //# sourceMappingURL=chunk-DX2IC6MA.js.map
@@ -0,0 +1,53 @@
1
+ import {
2
+ __commonJS,
3
+ __require,
4
+ init_cjs_shims
5
+ } from "./chunk-PKR7KJ6P.js";
6
+
7
+ // ../../node_modules/.pnpm/validate-npm-package-name@5.0.1/node_modules/validate-npm-package-name/lib/index.js
8
+ var require_lib = __commonJS({
9
+ "../../node_modules/.pnpm/validate-npm-package-name@5.0.1/node_modules/validate-npm-package-name/lib/index.js"(exports, module) {
10
+ "use strict";
11
+ init_cjs_shims();
12
+ var { builtinModules: builtins } = __require("module"), scopedPackagePattern = new RegExp("^(?:@([^/]+?)[/])?([^/]+?)$"), blacklist = [
13
+ "node_modules",
14
+ "favicon.ico"
15
+ ];
16
+ function validate(name) {
17
+ var warnings = [], errors = [];
18
+ if (name === null)
19
+ return errors.push("name cannot be null"), done(warnings, errors);
20
+ if (name === void 0)
21
+ return errors.push("name cannot be undefined"), done(warnings, errors);
22
+ if (typeof name != "string")
23
+ return errors.push("name must be a string"), done(warnings, errors);
24
+ if (name.length || errors.push("name length must be greater than zero"), name.match(/^\./) && errors.push("name cannot start with a period"), name.match(/^_/) && errors.push("name cannot start with an underscore"), name.trim() !== name && errors.push("name cannot contain leading or trailing spaces"), blacklist.forEach(function(blacklistedName) {
25
+ name.toLowerCase() === blacklistedName && errors.push(blacklistedName + " is a blacklisted name");
26
+ }), builtins.includes(name.toLowerCase()) && warnings.push(name + " is a core module name"), name.length > 214 && warnings.push("name can no longer contain more than 214 characters"), name.toLowerCase() !== name && warnings.push("name can no longer contain capital letters"), /[~'!()*]/.test(name.split("/").slice(-1)[0]) && warnings.push(`name can no longer contain special characters ("~'!()*")`), encodeURIComponent(name) !== name) {
27
+ var nameMatch = name.match(scopedPackagePattern);
28
+ if (nameMatch) {
29
+ var user = nameMatch[1], pkg = nameMatch[2];
30
+ if (encodeURIComponent(user) === user && encodeURIComponent(pkg) === pkg)
31
+ return done(warnings, errors);
32
+ }
33
+ errors.push("name can only contain URL-friendly characters");
34
+ }
35
+ return done(warnings, errors);
36
+ }
37
+ var done = function(warnings, errors) {
38
+ var result = {
39
+ validForNewPackages: errors.length === 0 && warnings.length === 0,
40
+ validForOldPackages: errors.length === 0,
41
+ warnings,
42
+ errors
43
+ };
44
+ return result.warnings.length || delete result.warnings, result.errors.length || delete result.errors, result;
45
+ };
46
+ module.exports = validate;
47
+ }
48
+ });
49
+
50
+ export {
51
+ require_lib
52
+ };
53
+ //# sourceMappingURL=chunk-EZQWZ57B.js.map
@@ -1,13 +1,13 @@
1
1
  import {
2
2
  base_command_default
3
- } from "./chunk-7VKRIIXT.js";
3
+ } from "./chunk-DX2IC6MA.js";
4
4
  import {
5
5
  outputResult,
6
6
  renderTable
7
- } from "./chunk-JMQJQNH7.js";
7
+ } from "./chunk-QIIIG73M.js";
8
8
  import {
9
9
  require_lib
10
- } from "./chunk-X2YIODUW.js";
10
+ } from "./chunk-VLBE545G.js";
11
11
  import {
12
12
  __toESM,
13
13
  init_cjs_shims
@@ -84,4 +84,4 @@ var import_core = __toESM(require_lib(), 1), CommandFlags = class _CommandFlags
84
84
  export {
85
85
  CommandFlags
86
86
  };
87
- //# sourceMappingURL=chunk-NIZJP24I.js.map
87
+ //# sourceMappingURL=chunk-FBDL6M34.js.map
@@ -1,16 +1,16 @@
1
1
  import {
2
2
  base_command_default
3
- } from "./chunk-7VKRIIXT.js";
3
+ } from "./chunk-DX2IC6MA.js";
4
4
  import {
5
5
  cacheClear
6
- } from "./chunk-UAYSVXRU.js";
6
+ } from "./chunk-4X3OSIUW.js";
7
7
  import {
8
8
  environmentVariables,
9
9
  isTruthy
10
- } from "./chunk-JMQJQNH7.js";
10
+ } from "./chunk-QIIIG73M.js";
11
11
  import {
12
12
  require_lib
13
- } from "./chunk-X2YIODUW.js";
13
+ } from "./chunk-VLBE545G.js";
14
14
  import {
15
15
  __toESM,
16
16
  init_cjs_shims
@@ -26,7 +26,7 @@ init_cjs_shims();
26
26
  init_cjs_shims();
27
27
  import { fileURLToPath } from "node:url";
28
28
  async function launchCLI(options) {
29
- let { errorHandler } = await import("./error-handler-WPYX52XY.js"), { isDevelopment } = await import("./local-ZMOSXANE.js"), oclif = await import("./lib-EMZRCLCJ.js"), { ShopifyConfig } = await import("./custom-oclif-loader-Y4GWKKAU.js");
29
+ let { errorHandler } = await import("./error-handler-YWRJD3ZX.js"), { isDevelopment } = await import("./local-DU2CZ6Z3.js"), oclif = await import("./lib-G7Q5M6VX.js"), { ShopifyConfig } = await import("./custom-oclif-loader-QBK7WNIL.js");
30
30
  isDevelopment() && (oclif.default.settings.debug = !0);
31
31
  try {
32
32
  let config = new ShopifyConfig({ root: fileURLToPath(options.moduleURL) });
@@ -41,7 +41,7 @@ var import_core = __toESM(require_lib());
41
41
  async function exitIfOldNodeVersion(versions = process.versions) {
42
42
  let nodeVersion = versions.node, nodeMajorVersion = Number(nodeVersion.split(".")[0]);
43
43
  if (nodeMajorVersion < 18) {
44
- let { renderError } = await import("./ui-YYVT2VLD.js");
44
+ let { renderError } = await import("./ui-GTBNK773.js");
45
45
  renderError({
46
46
  headline: "Upgrade to a supported Node version now.",
47
47
  body: [
@@ -68,7 +68,7 @@ async function runCLI(options, launchCLI2 = launchCLI, argv = process.argv, env
68
68
  return setupEnvironmentVariables(options, argv, env), options.runInCreateMode && await addInitToArgvWhenRunningCreateCLI(options, argv), forceNoColor(argv, env), await exitIfOldNodeVersion(versions), launchCLI2({ moduleURL: options.moduleURL });
69
69
  }
70
70
  async function addInitToArgvWhenRunningCreateCLI(options, argv = process.argv) {
71
- let { findUpAndReadPackageJson } = await import("./node-package-manager-4KOKGFQG.js"), { moduleDirectory } = await import("./path-GB4VIEM6.js"), name = (await findUpAndReadPackageJson(moduleDirectory(options.moduleURL))).content.name.replace("@shopify/create-", "");
71
+ let { findUpAndReadPackageJson } = await import("./node-package-manager-W22PEMMM.js"), { moduleDirectory } = await import("./path-COZT77T2.js"), name = (await findUpAndReadPackageJson(moduleDirectory(options.moduleURL))).content.name.replace("@shopify/create-", "");
72
72
  if (argv.findIndex((arg) => arg.includes("init")) === -1) {
73
73
  let initIndex2 = argv.findIndex((arg) => arg.match(new RegExp(`bin(\\/|\\\\)+(create-${name}|dev|run)`))) + 1;
74
74
  argv.splice(initIndex2, 0, "init");
@@ -117,4 +117,4 @@ export {
117
117
  jsonFlag,
118
118
  ClearCache
119
119
  };
120
- //# sourceMappingURL=chunk-TCTK5NQE.js.map
120
+ //# sourceMappingURL=chunk-GK3L6WCO.js.map
@@ -9205,7 +9205,7 @@ function offsetToLineNumber(source, offset) {
9205
9205
  return line + 1;
9206
9206
  }
9207
9207
  async function saveInlineSnapshots(environment, snapshots) {
9208
- let MagicString = (await import("./magic-string.es-UZAAPNRE.js")).default, files = new Set(snapshots.map((i) => i.file));
9208
+ let MagicString = (await import("./magic-string.es-S5HKFBJX.js")).default, files = new Set(snapshots.map((i) => i.file));
9209
9209
  await Promise.all(Array.from(files).map(async (file) => {
9210
9210
  let snaps = snapshots.filter((i) => i.file === file), code = await environment.readSnapshotFile(file), s2 = new MagicString(code);
9211
9211
  for (let snap of snaps) {
@@ -11802,4 +11802,4 @@ chai/chai.js:
11802
11802
  * @license MIT License
11803
11803
  *)
11804
11804
  */
11805
- //# sourceMappingURL=chunk-4MSYMXAX.js.map
11805
+ //# sourceMappingURL=chunk-GPKHDSF5.js.map
@@ -3,16 +3,16 @@ import {
3
3
  getLastSeenUserIdAfterAuth,
4
4
  getSensitiveEnvironmentData,
5
5
  requestIdsCollection
6
- } from "./chunk-NMH42STK.js";
6
+ } from "./chunk-43MAAODZ.js";
7
7
  import {
8
8
  fetch
9
- } from "./chunk-7TE554OT.js";
9
+ } from "./chunk-LMVYXPIS.js";
10
10
  import {
11
11
  runWithRateLimit
12
- } from "./chunk-UAYSVXRU.js";
12
+ } from "./chunk-4X3OSIUW.js";
13
13
  import {
14
14
  CLI_KIT_VERSION
15
- } from "./chunk-LDFPMZVN.js";
15
+ } from "./chunk-R7GPNRH3.js";
16
16
  import {
17
17
  alwaysLogAnalytics,
18
18
  alwaysLogMetrics,
@@ -28,7 +28,7 @@ import {
28
28
  outputDebug,
29
29
  outputToken,
30
30
  reportingRateLimit
31
- } from "./chunk-JMQJQNH7.js";
31
+ } from "./chunk-QIIIG73M.js";
32
32
  import {
33
33
  __commonJS,
34
34
  __esm,
@@ -15477,7 +15477,7 @@ init_cjs_shims();
15477
15477
 
15478
15478
  // ../cli-kit/dist/public/node/monorail.js
15479
15479
  init_cjs_shims();
15480
- var url = "https://monorail-edge.shopifysvc.com/v1/produce", MONORAIL_COMMAND_TOPIC = "app_cli3_command/1.19", publishedCommandNames = /* @__PURE__ */ new Set();
15480
+ var url = "https://monorail-edge.shopifysvc.com/v1/produce", MONORAIL_COMMAND_TOPIC = "app_cli3_command/1.20", publishedCommandNames = /* @__PURE__ */ new Set();
15481
15481
  async function publishMonorailEvent(schemaId, publicData, sensitiveData) {
15482
15482
  let commandName = publicData.command;
15483
15483
  if (commandName && typeof commandName == "string") {
@@ -16097,4 +16097,4 @@ export {
16097
16097
  recordEvent2 as recordEvent,
16098
16098
  compileData2 as compileData
16099
16099
  };
16100
- //# sourceMappingURL=chunk-5RBPM5MR.js.map
16100
+ //# sourceMappingURL=chunk-GV3VXLHN.js.map
@@ -1,15 +1,15 @@
1
1
  import {
2
2
  asyncTasks
3
- } from "./chunk-LPSHXR57.js";
3
+ } from "./chunk-H5JSK6HV.js";
4
4
  import {
5
5
  prompts
6
- } from "./chunk-4YT3BY2B.js";
6
+ } from "./chunk-HMJUSDS7.js";
7
7
  import {
8
8
  staticService
9
- } from "./chunk-DKRTUP7T.js";
9
+ } from "./chunk-PE3YDRXC.js";
10
10
  import {
11
11
  base_command_default
12
- } from "./chunk-7VKRIIXT.js";
12
+ } from "./chunk-DX2IC6MA.js";
13
13
  import {
14
14
  init_cjs_shims
15
15
  } from "./chunk-PKR7KJ6P.js";
@@ -34,4 +34,4 @@ var KitchenSinkAll = class extends base_command_default {
34
34
  export {
35
35
  KitchenSinkAll
36
36
  };
37
- //# sourceMappingURL=chunk-6UMZO4DD.js.map
37
+ //# sourceMappingURL=chunk-H3HXI5FI.js.map
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  renderConcurrent,
3
3
  renderTasks
4
- } from "./chunk-JMQJQNH7.js";
4
+ } from "./chunk-QIIIG73M.js";
5
5
  import {
6
6
  init_cjs_shims
7
7
  } from "./chunk-PKR7KJ6P.js";
@@ -43,4 +43,4 @@ async function asyncTasks() {
43
43
  export {
44
44
  asyncTasks
45
45
  };
46
- //# sourceMappingURL=chunk-LPSHXR57.js.map
46
+ //# sourceMappingURL=chunk-H5JSK6HV.js.map