@shopify/cli 3.79.2 → 3.80.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 (98) hide show
  1. package/dist/{chokidar-OATAHMV6.js → chokidar-TTCYG5AA.js} +3 -3
  2. package/dist/{chokidar-BLUAYFAB.js → chokidar-XUA2BN3J.js} +3 -3
  3. package/dist/{chunk-T3I7QQ2S.js → chunk-2SENSD2I.js} +101 -90
  4. package/dist/{chunk-MW7RWHY5.js → chunk-3GXB4ZRP.js} +4 -4
  5. package/dist/{chunk-WAVVSCTB.js → chunk-4N62VJCW.js} +6 -6
  6. package/dist/{chunk-WN4KLPHC.js → chunk-4O7JN5N7.js} +2 -2
  7. package/dist/{chunk-UTDSSCPI.js → chunk-5AFYDRV4.js} +886 -574
  8. package/dist/{chunk-FBLZEAHG.js → chunk-5EUF2EDL.js} +4 -4
  9. package/dist/{chunk-PRNDW4A4.js → chunk-6SM3SPO2.js} +4 -4
  10. package/dist/{chunk-X6UFRMT6.js → chunk-6ZDFI7RQ.js} +2 -2
  11. package/dist/{chunk-BD4DMB7P.js → chunk-7ABG3SAU.js} +5 -5
  12. package/dist/{chunk-B3YWYURY.js → chunk-7IK72W75.js} +3 -3
  13. package/dist/{chunk-77YUNYVM.js → chunk-7RVTZY4V.js} +23 -11
  14. package/dist/{chunk-OJYLAVCF.js → chunk-AA6YHL4H.js} +6 -6
  15. package/dist/{chunk-ZZG4I4Y2.js → chunk-BJKFVTUU.js} +7 -7
  16. package/dist/{chunk-MDJIPIDQ.js → chunk-CC5JTJRC.js} +6 -6
  17. package/dist/{chunk-PMA5QAUF.js → chunk-CIGCMM7Y.js} +2 -2
  18. package/dist/{chunk-EMPP4I5H.js → chunk-F7J5CUMZ.js} +2 -2
  19. package/dist/{chunk-Y4DB5LTR.js → chunk-GXYYUJCZ.js} +8 -8
  20. package/dist/{chunk-LD7EUWUQ.js → chunk-JEZFZHJT.js} +19 -15
  21. package/dist/{chunk-IUNLWSXD.js → chunk-JTTPS2WH.js} +2 -2
  22. package/dist/{chunk-HHVCEPRF.js → chunk-MGQUMYJJ.js} +3 -3
  23. package/dist/{chunk-ZEHIERTA.js → chunk-MK43HXRP.js} +3 -3
  24. package/dist/{chunk-63BE7GDY.js → chunk-MRSGUMFQ.js} +3 -3
  25. package/dist/{chunk-6G4NC476.js → chunk-MUBX4Z7T.js} +3 -3
  26. package/dist/{chunk-M5F4CXDR.js → chunk-O47Y2LR2.js} +5 -5
  27. package/dist/{chunk-DV2YYPEI.js → chunk-OEN366HT.js} +2 -2
  28. package/dist/{chunk-VSYHQUMS.js → chunk-OV2WT25T.js} +4 -4
  29. package/dist/{chunk-MP5RLDFN.js → chunk-OWRPRJTD.js} +2 -2
  30. package/dist/{chunk-BSUS3MTW.js → chunk-PLPRXDTH.js} +4 -4
  31. package/dist/{chunk-FUEMEAJ6.js → chunk-RA6X53DS.js} +3 -3
  32. package/dist/{chunk-JAKMNE2C.js → chunk-SA6W52ZM.js} +3 -3
  33. package/dist/{chunk-5DBS6QOU.js → chunk-TJM3YBLQ.js} +2 -2
  34. package/dist/{chunk-IEJMNCLB.js → chunk-TV7RQJQS.js} +4 -4
  35. package/dist/{chunk-PLILKCK3.js → chunk-TZT6MG73.js} +3 -3
  36. package/dist/{chunk-MQV3MC5Y.js → chunk-UNLDWBJ7.js} +3 -3
  37. package/dist/{chunk-W2I3UPYU.js → chunk-UWQ5RHX4.js} +9 -9
  38. package/dist/{chunk-MAWOPVTD.js → chunk-WGIJUWK3.js} +3 -3
  39. package/dist/{chunk-JYRZAF2V.js → chunk-WUIY4ZKO.js} +7 -7
  40. package/dist/{chunk-G2H4UKYT.js → chunk-YWMIXHIW.js} +5 -5
  41. package/dist/{chunk-NPPP3L5N.js → chunk-Z4MGMNXM.js} +2 -2
  42. package/dist/{chunk-Y53XECL6.js → chunk-ZEM3T4UY.js} +1 -7
  43. package/dist/{chunk-57Q6OQG4.js → chunk-ZUCWDIGE.js} +2 -2
  44. package/dist/{chunk-UZADGPF5.js → chunk-ZXBYB5U7.js} +4 -4
  45. package/dist/cli/commands/auth/logout.js +16 -16
  46. package/dist/cli/commands/auth/logout.test.js +18 -18
  47. package/dist/cli/commands/cache/clear.js +15 -15
  48. package/dist/cli/commands/debug/command-flags.js +15 -15
  49. package/dist/cli/commands/docs/generate.js +15 -15
  50. package/dist/cli/commands/docs/generate.test.js +16 -16
  51. package/dist/cli/commands/help.js +15 -15
  52. package/dist/cli/commands/kitchen-sink/async.js +16 -16
  53. package/dist/cli/commands/kitchen-sink/async.test.js +17 -17
  54. package/dist/cli/commands/kitchen-sink/index.js +18 -18
  55. package/dist/cli/commands/kitchen-sink/index.test.js +19 -19
  56. package/dist/cli/commands/kitchen-sink/prompts.js +16 -16
  57. package/dist/cli/commands/kitchen-sink/prompts.test.js +17 -17
  58. package/dist/cli/commands/kitchen-sink/static.js +16 -16
  59. package/dist/cli/commands/kitchen-sink/static.test.js +17 -17
  60. package/dist/cli/commands/notifications/generate.js +16 -16
  61. package/dist/cli/commands/notifications/list.js +16 -16
  62. package/dist/cli/commands/search.js +16 -16
  63. package/dist/cli/commands/upgrade.js +16 -16
  64. package/dist/cli/commands/upgrade.test.js +1 -1
  65. package/dist/cli/commands/version.js +16 -16
  66. package/dist/cli/commands/version.test.js +17 -17
  67. package/dist/cli/services/commands/notifications.js +11 -11
  68. package/dist/cli/services/commands/search.js +7 -7
  69. package/dist/cli/services/commands/search.test.js +8 -8
  70. package/dist/cli/services/commands/version.js +8 -8
  71. package/dist/cli/services/commands/version.test.js +10 -10
  72. package/dist/cli/services/kitchen-sink/async.js +7 -7
  73. package/dist/cli/services/kitchen-sink/prompts.js +7 -7
  74. package/dist/cli/services/kitchen-sink/static.js +7 -7
  75. package/dist/cli/services/upgrade.js +8 -8
  76. package/dist/cli/services/upgrade.test.js +10 -10
  77. package/dist/{custom-oclif-loader-SNCTJFAW.js → custom-oclif-loader-FXIJAWX7.js} +7 -7
  78. package/dist/{del-2SYBVRHB.js → del-YIU34DZ5.js} +4 -4
  79. package/dist/{devtools-BA4WST2D.js → devtools-EVCDECOU.js} +2 -2
  80. package/dist/{devtools-6LOQORRT.js → devtools-J4QAI6HR.js} +2 -2
  81. package/dist/{error-handler-KC5QI22K.js → error-handler-EDZQQPRP.js} +13 -13
  82. package/dist/hooks/postrun.js +11 -11
  83. package/dist/hooks/prerun.js +14 -13
  84. package/dist/{http-proxy-L3MCJRQS.js → http-proxy-KGLXPNEY.js} +1 -9
  85. package/dist/index.js +152844 -15761
  86. package/dist/{lib-MWWAATIC.js → lib-MIBR2T7P.js} +5 -5
  87. package/dist/{local-BE7LTPTW.js → local-7RAANNJV.js} +7 -7
  88. package/dist/{morph-MDY3DSJL.js → morph-EB6ON4RE.js} +45 -45
  89. package/dist/{node-D2EIZN3I.js → node-UQTVOAV2.js} +17 -17
  90. package/dist/{node-package-manager-URP7ZOL6.js → node-package-manager-EM4XDXO6.js} +8 -8
  91. package/dist/out-5KP5WGIK.js +7 -0
  92. package/dist/{path-2K5HIMHZ.js → path-GWAZZN2N.js} +2 -2
  93. package/dist/tsconfig.tsbuildinfo +1 -1
  94. package/dist/{ui-UWCAHSHB.js → ui-OHY6IY4A.js} +7 -7
  95. package/dist/{workerd-IJSWR4MJ.js → workerd-UWTQ4ECK.js} +17 -17
  96. package/oclif.manifest.json +5 -21
  97. package/package.json +7 -7
  98. package/dist/out-AZBX4ITJ.js +0 -7
@@ -1,13 +1,13 @@
1
1
  import {
2
2
  base_command_default
3
- } from "./chunk-JYRZAF2V.js";
3
+ } from "./chunk-WUIY4ZKO.js";
4
4
  import {
5
5
  renderTable,
6
6
  renderText
7
- } from "./chunk-T3I7QQ2S.js";
7
+ } from "./chunk-2SENSD2I.js";
8
8
  import {
9
9
  require_lib
10
- } from "./chunk-UTDSSCPI.js";
10
+ } from "./chunk-5AFYDRV4.js";
11
11
  import {
12
12
  __toESM,
13
13
  init_cjs_shims
@@ -83,4 +83,4 @@ var import_core = __toESM(require_lib(), 1), CommandFlags = class _CommandFlags
83
83
  export {
84
84
  CommandFlags
85
85
  };
86
- //# sourceMappingURL=chunk-FBLZEAHG.js.map
86
+ //# sourceMappingURL=chunk-5EUF2EDL.js.map
@@ -1,12 +1,12 @@
1
1
  import {
2
2
  searchService
3
- } from "./chunk-PMA5QAUF.js";
3
+ } from "./chunk-CIGCMM7Y.js";
4
4
  import {
5
5
  base_command_default
6
- } from "./chunk-JYRZAF2V.js";
6
+ } from "./chunk-WUIY4ZKO.js";
7
7
  import {
8
8
  require_lib
9
- } from "./chunk-UTDSSCPI.js";
9
+ } from "./chunk-5AFYDRV4.js";
10
10
  import {
11
11
  __toESM,
12
12
  init_cjs_shims
@@ -48,4 +48,4 @@ var import_core = __toESM(require_lib(), 1), Search = class _Search extends base
48
48
  export {
49
49
  Search
50
50
  };
51
- //# sourceMappingURL=chunk-PRNDW4A4.js.map
51
+ //# sourceMappingURL=chunk-6SM3SPO2.js.map
@@ -5,7 +5,7 @@ import {
5
5
  renderDangerousConfirmationPrompt,
6
6
  renderSelectPrompt,
7
7
  renderTextPrompt
8
- } from "./chunk-T3I7QQ2S.js";
8
+ } from "./chunk-2SENSD2I.js";
9
9
  import {
10
10
  init_cjs_shims
11
11
  } from "./chunk-PKR7KJ6P.js";
@@ -175,4 +175,4 @@ async function prompts() {
175
175
  export {
176
176
  prompts
177
177
  };
178
- //# sourceMappingURL=chunk-X6UFRMT6.js.map
178
+ //# sourceMappingURL=chunk-6ZDFI7RQ.js.map
@@ -1,15 +1,15 @@
1
1
  import {
2
2
  list
3
- } from "./chunk-G2H4UKYT.js";
3
+ } from "./chunk-YWMIXHIW.js";
4
4
  import {
5
5
  base_command_default
6
- } from "./chunk-JYRZAF2V.js";
6
+ } from "./chunk-WUIY4ZKO.js";
7
7
  import {
8
8
  sendErrorToBugsnag
9
- } from "./chunk-W2I3UPYU.js";
9
+ } from "./chunk-UWQ5RHX4.js";
10
10
  import {
11
11
  require_lib
12
- } from "./chunk-UTDSSCPI.js";
12
+ } from "./chunk-5AFYDRV4.js";
13
13
  import {
14
14
  __toESM,
15
15
  init_cjs_shims
@@ -49,4 +49,4 @@ var List = class _List extends base_command_default {
49
49
  export {
50
50
  List
51
51
  };
52
- //# sourceMappingURL=chunk-BD4DMB7P.js.map
52
+ //# sourceMappingURL=chunk-7ABG3SAU.js.map
@@ -105,8 +105,8 @@ var require_utils = __commonJS({
105
105
  let node = block.nodes[n];
106
106
  node && (type && node.type === type || node.type === "open" || node.type === "close") && node.escaped !== !0 && (node.value = "\\" + node.value, node.escaped = !0);
107
107
  };
108
- exports.encloseBrace = (node) => node.type !== "brace" || node.commas >> 0 + node.ranges >> 0 ? !1 : (node.invalid = !0, !0);
109
- exports.isInvalidBrace = (block) => block.type !== "brace" ? !1 : block.invalid === !0 || block.dollar ? !0 : !(block.commas >> 0 + block.ranges >> 0) || block.open !== !0 || block.close !== !0 ? (block.invalid = !0, !0) : !1;
108
+ exports.encloseBrace = (node) => node.type !== "brace" ? !1 : node.commas >> 0 + node.ranges >> 0 === 0 ? (node.invalid = !0, !0) : !1;
109
+ exports.isInvalidBrace = (block) => block.type !== "brace" ? !1 : block.invalid === !0 || block.dollar ? !0 : block.commas >> 0 + block.ranges >> 0 === 0 || block.open !== !0 || block.close !== !0 ? (block.invalid = !0, !0) : !1;
110
110
  exports.isOpenOrClose = (node) => node.type === "open" || node.type === "close" ? !0 : node.open === !0 || node.close === !0;
111
111
  exports.reduce = (nodes) => nodes.reduce((acc, node) => (node.type === "text" && acc.push(node.value), node.type === "range" && (node.type = "text"), acc), []);
112
112
  exports.flatten = (...args) => {
@@ -1753,4 +1753,4 @@ fill-range/index.js:
1753
1753
  * Licensed under the MIT License.
1754
1754
  *)
1755
1755
  */
1756
- //# sourceMappingURL=chunk-B3YWYURY.js.map
1756
+ //# sourceMappingURL=chunk-7IK72W75.js.map
@@ -7,14 +7,14 @@ import {
7
7
  nonRandomUUID,
8
8
  shopifyFetch,
9
9
  z
10
- } from "./chunk-OJYLAVCF.js";
10
+ } from "./chunk-AA6YHL4H.js";
11
11
  import {
12
12
  getPackageManager,
13
13
  getSession,
14
14
  packageManagerFromUserAgent,
15
15
  removeSession,
16
16
  setSession
17
- } from "./chunk-JAKMNE2C.js";
17
+ } from "./chunk-SA6W52ZM.js";
18
18
  import {
19
19
  AbortError,
20
20
  BugError,
@@ -45,10 +45,10 @@ import {
45
45
  sessionConstants,
46
46
  spinFqdn,
47
47
  themeToken
48
- } from "./chunk-T3I7QQ2S.js";
48
+ } from "./chunk-2SENSD2I.js";
49
49
  import {
50
50
  cwd
51
- } from "./chunk-57Q6OQG4.js";
51
+ } from "./chunk-ZUCWDIGE.js";
52
52
  import {
53
53
  __commonJS,
54
54
  __require,
@@ -516,6 +516,17 @@ async function partnersFqdn() {
516
516
  return productionFqdn;
517
517
  }
518
518
  }
519
+ async function adminFqdn() {
520
+ let environment = serviceEnvironment(), productionFqdn = "admin.shopify.com";
521
+ switch (environment) {
522
+ case "local":
523
+ return new DevServerCore().host("admin");
524
+ case "spin":
525
+ return `admin.shopify.${await spinFqdn()}`;
526
+ default:
527
+ return productionFqdn;
528
+ }
529
+ }
519
530
  async function appManagementFqdn() {
520
531
  let environment = serviceEnvironment(), productionFqdn = "app.shopify.com";
521
532
  switch (environment) {
@@ -833,7 +844,7 @@ async function exchangeDeviceCodeForAccessToken(deviceCode) {
833
844
  client_id: clientId2
834
845
  });
835
846
  if (tokenResult.isErr())
836
- return err(tokenResult.error);
847
+ return err(tokenResult.error.error);
837
848
  let identityToken = buildIdentityToken(tokenResult.value);
838
849
  return ok(identityToken);
839
850
  }
@@ -846,25 +857,25 @@ async function requestAppToken(api, token, scopes = [], store2) {
846
857
  audience: appId,
847
858
  scope: scopes.join(" "),
848
859
  subject_token: token,
849
- ...api === "admin" && { destination: `https://${store2}/admin` }
860
+ ...api === "admin" && { destination: `https://${store2}/admin`, store: store2 }
850
861
  }, identifier = appId;
851
862
  api === "admin" && store2 && (identifier = `${store2}-${appId}`);
852
863
  let value = (await tokenRequest(params)).mapError(tokenRequestErrorHandler).valueOrBug(), appToken = buildApplicationToken(value);
853
864
  return { [identifier]: appToken };
854
865
  }
855
- function tokenRequestErrorHandler(error) {
856
- let invalidTargetErrorMessage = `You are not authorized to use the CLI to develop in the provided store.
866
+ function tokenRequestErrorHandler({ error, store: store2 }) {
867
+ let invalidTargetErrorMessage = `You are not authorized to use the CLI to develop in the provided store${store2 ? `: ${store2}` : "."}
857
868
 
858
869
  You can't use Shopify CLI with development stores if you only have Partner staff member access. If you want to use Shopify CLI to work on a development store, then you should be the store owner or create a staff account on the store.
859
870
 
860
- If you're the store owner, then you need to log in to the store directly using the store URL at least once before you log in using Shopify CLI.Logging in to the Shopify admin directly connects the development store with your Shopify login.`;
871
+ If you're the store owner, then you need to log in to the store directly using the store URL at least once before you log in using Shopify CLI. Logging in to the Shopify admin directly connects the development store with your Shopify login.`;
861
872
  return error === "invalid_grant" ? new InvalidGrantError() : error === "invalid_request" ? new InvalidRequestError() : error === "invalid_target" ? new InvalidTargetError(invalidTargetErrorMessage) : new AbortError(error);
862
873
  }
863
874
  async function tokenRequest(params) {
864
875
  let fqdn = await identityFqdn(), url4 = new URL(`https://${fqdn}/oauth/token`);
865
876
  url4.search = new URLSearchParams(Object.entries(params)).toString();
866
877
  let res = await shopifyFetch(url4.href, { method: "POST" }), payload = await res.json();
867
- return res.ok ? ok(payload) : err(payload.error);
878
+ return res.ok ? ok(payload) : err({ error: payload.error, store: params.store });
868
879
  }
869
880
  function buildIdentityToken(result, existingUserId) {
870
881
  let userId2 = existingUserId ?? (result.id_token ? decodeJwt(result.id_token).sub : void 0);
@@ -1172,6 +1183,7 @@ function flagIncluded(flag, commandClass) {
1172
1183
 
1173
1184
  export {
1174
1185
  partnersFqdn,
1186
+ adminFqdn,
1175
1187
  appManagementFqdn,
1176
1188
  appDevFqdn,
1177
1189
  developerDashboardFqdn,
@@ -1192,4 +1204,4 @@ export {
1192
1204
  getEnvironmentData,
1193
1205
  getSensitiveEnvironmentData
1194
1206
  };
1195
- //# sourceMappingURL=chunk-77YUNYVM.js.map
1207
+ //# sourceMappingURL=chunk-7RVTZY4V.js.map
@@ -5,7 +5,7 @@ import {
5
5
  } from "./chunk-25IMI7TH.js";
6
6
  import {
7
7
  CLI_KIT_VERSION
8
- } from "./chunk-DV2YYPEI.js";
8
+ } from "./chunk-OEN366HT.js";
9
9
  import {
10
10
  Environment,
11
11
  environmentVariables,
@@ -18,10 +18,10 @@ import {
18
18
  serviceEnvironment,
19
19
  sleep,
20
20
  systemEnvironmentVariables
21
- } from "./chunk-T3I7QQ2S.js";
21
+ } from "./chunk-2SENSD2I.js";
22
22
  import {
23
23
  sniffForJson
24
- } from "./chunk-57Q6OQG4.js";
24
+ } from "./chunk-ZUCWDIGE.js";
25
25
  import {
26
26
  __commonJS,
27
27
  __require,
@@ -14557,7 +14557,7 @@ var require_lib = __commonJS({
14557
14557
  return options.globals ? options.globals.Number(value) : Number(value);
14558
14558
  }
14559
14559
  function evenRound(x) {
14560
- return x > 0 && x % 1 === 0.5 && !(x & 1) || x < 0 && x % 1 === -0.5 && (x & 1) === 1 ? censorNegativeZero(Math.floor(x)) : censorNegativeZero(Math.round(x));
14560
+ return x > 0 && x % 1 === 0.5 && (x & 1) === 0 || x < 0 && x % 1 === -0.5 && (x & 1) === 1 ? censorNegativeZero(Math.floor(x)) : censorNegativeZero(Math.round(x));
14561
14561
  }
14562
14562
  function integerPart(n) {
14563
14563
  return censorNegativeZero(Math.trunc(n));
@@ -27526,7 +27526,7 @@ ${result.sanitizedHeaders}
27526
27526
  }
27527
27527
 
27528
27528
  // ../cli-kit/dist/public/node/http.js
27529
- var import_form_data = __toESM(require_form_data(), 1);
27529
+ var import_form_data = __toESM(require_form_data());
27530
27530
 
27531
27531
  // ../../node_modules/.pnpm/node-fetch@3.3.2/node_modules/node-fetch/src/index.js
27532
27532
  init_cjs_shims();
@@ -31452,4 +31452,4 @@ mime-types/index.js:
31452
31452
  * MIT Licensed
31453
31453
  *)
31454
31454
  */
31455
- //# sourceMappingURL=chunk-OJYLAVCF.js.map
31455
+ //# sourceMappingURL=chunk-AA6YHL4H.js.map
@@ -1,16 +1,16 @@
1
1
  import {
2
2
  base_command_default
3
- } from "./chunk-JYRZAF2V.js";
3
+ } from "./chunk-WUIY4ZKO.js";
4
4
  import {
5
5
  mkdir,
6
6
  outputInfo,
7
7
  rmdir,
8
8
  writeFile
9
- } from "./chunk-T3I7QQ2S.js";
9
+ } from "./chunk-2SENSD2I.js";
10
10
  import {
11
11
  cwd,
12
12
  joinPath
13
- } from "./chunk-57Q6OQG4.js";
13
+ } from "./chunk-ZUCWDIGE.js";
14
14
  import {
15
15
  init_cjs_shims
16
16
  } from "./chunk-PKR7KJ6P.js";
@@ -51,7 +51,7 @@ async function writeCommandDocumentation(command, { commandName, fileName, inter
51
51
  title: 'Flags',
52
52
  description: 'The following flags are available for the \`${commandName}\` command:',
53
53
  type: '${interfaceName}',
54
- },`, description = command.descriptionWithMarkdown ?? command.description ?? command.summary ?? "", cleanDescription = description?.replace(/`/g, "\\`").replace(/https:\/\/shopify\.dev/g, ""), cleanPreview = (command.summary ?? description ?? "").replace(/`/g, "\\`").replace(/https:\/\/shopify\.dev/g, ""), category = hasTopic && !generalTopics.includes(topic) ? topic : "general commands", string = `// This is an autogenerated file. Don't edit this file manually.
54
+ },`, description = command.descriptionWithMarkdown ?? command.description ?? command.summary ?? "", cleanDescription = description?.replace(/`/g, "\\`").replace(/https:\/\/shopify\.dev/g, ""), cleanPreview = (command.summary ?? description ?? "").replace(/`/g, "\\`").replace(/https:\/\/shopify\.dev/g, ""), category = hasTopic && !generalTopics.includes(topic) ? topic : "general commands", updatedDocString = `// This is an autogenerated file. Don't edit this file manually.
55
55
  import {ReferenceEntityTemplateSchema} from '@shopify/generate-docs'
56
56
 
57
57
  const data: ReferenceEntityTemplateSchema = {
@@ -79,8 +79,8 @@ const data: ReferenceEntityTemplateSchema = {
79
79
  ],
80
80
  }
81
81
 
82
- export default data`;
83
- await writeFile(`${docsPath}/${fileName}.doc.ts`, string), outputInfo(`Generated docs for ${commandName}`);
82
+ export default data`.replaceAll("<%= config.bin %>", "shopify");
83
+ await writeFile(`${docsPath}/${fileName}.doc.ts`, updatedDocString), outputInfo(`Generated docs for ${commandName}`);
84
84
  }
85
85
  async function writeCommandFlagInterface(command, { fileName, interfaceName }) {
86
86
  let flagsDetails = Object.keys(command.flags).map((flagName) => {
@@ -118,4 +118,4 @@ export {
118
118
  writeCommandFlagInterface,
119
119
  writeCommandUsageExampleFile
120
120
  };
121
- //# sourceMappingURL=chunk-ZZG4I4Y2.js.map
121
+ //# sourceMappingURL=chunk-BJKFVTUU.js.map
@@ -2,15 +2,15 @@ import {
2
2
  fetch,
3
3
  jsonOutputEnabled,
4
4
  z
5
- } from "./chunk-OJYLAVCF.js";
5
+ } from "./chunk-AA6YHL4H.js";
6
6
  import {
7
7
  CLI_KIT_VERSION
8
- } from "./chunk-DV2YYPEI.js";
8
+ } from "./chunk-OEN366HT.js";
9
9
  import {
10
10
  cacheRetrieve,
11
11
  cacheStore,
12
12
  versionSatisfies
13
- } from "./chunk-JAKMNE2C.js";
13
+ } from "./chunk-SA6W52ZM.js";
14
14
  import {
15
15
  AbortSilentError,
16
16
  exec,
@@ -19,7 +19,7 @@ import {
19
19
  renderError,
20
20
  renderInfo,
21
21
  renderWarning
22
- } from "./chunk-T3I7QQ2S.js";
22
+ } from "./chunk-2SENSD2I.js";
23
23
  import {
24
24
  init_cjs_shims
25
25
  } from "./chunk-PKR7KJ6P.js";
@@ -87,7 +87,7 @@ async function showNotificationsIfNeeded(currentSurfaces, environment = process.
87
87
  throw new AbortSilentError();
88
88
  let errorMessage = `Error showing notifications: ${error.message}`;
89
89
  outputDebug(errorMessage);
90
- let { sendErrorToBugsnag } = await import("./error-handler-KC5QI22K.js");
90
+ let { sendErrorToBugsnag } = await import("./error-handler-EDZQQPRP.js");
91
91
  await sendErrorToBugsnag(errorMessage, "unexpected_error");
92
92
  }
93
93
  }
@@ -200,4 +200,4 @@ export {
200
200
  fetchNotificationsInBackground,
201
201
  stringifyFilters
202
202
  };
203
- //# sourceMappingURL=chunk-MDJIPIDQ.js.map
203
+ //# sourceMappingURL=chunk-CC5JTJRC.js.map
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  openURL
3
- } from "./chunk-T3I7QQ2S.js";
3
+ } from "./chunk-2SENSD2I.js";
4
4
  import {
5
5
  init_cjs_shims
6
6
  } from "./chunk-PKR7KJ6P.js";
@@ -15,4 +15,4 @@ async function searchService(query) {
15
15
  export {
16
16
  searchService
17
17
  };
18
- //# sourceMappingURL=chunk-PMA5QAUF.js.map
18
+ //# sourceMappingURL=chunk-CIGCMM7Y.js.map
@@ -3,7 +3,7 @@ import {
3
3
  } from "./chunk-X7YTIMNN.js";
4
4
  import {
5
5
  require_picomatch
6
- } from "./chunk-B3YWYURY.js";
6
+ } from "./chunk-7IK72W75.js";
7
7
  import {
8
8
  __commonJS,
9
9
  __require,
@@ -494,4 +494,4 @@ export {
494
494
  require_anymatch,
495
495
  require_is_binary_path
496
496
  };
497
- //# sourceMappingURL=chunk-EMPP4I5H.js.map
497
+ //# sourceMappingURL=chunk-F7J5CUMZ.js.map
@@ -1,16 +1,16 @@
1
1
  import {
2
2
  base_command_default
3
- } from "./chunk-JYRZAF2V.js";
3
+ } from "./chunk-WUIY4ZKO.js";
4
4
  import {
5
5
  cacheClear
6
- } from "./chunk-JAKMNE2C.js";
6
+ } from "./chunk-SA6W52ZM.js";
7
7
  import {
8
8
  environmentVariables,
9
9
  isTruthy
10
- } from "./chunk-T3I7QQ2S.js";
10
+ } from "./chunk-2SENSD2I.js";
11
11
  import {
12
12
  require_lib
13
- } from "./chunk-UTDSSCPI.js";
13
+ } from "./chunk-5AFYDRV4.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-KC5QI22K.js"), { isDevelopment } = await import("./local-BE7LTPTW.js"), oclif = await import("./lib-MWWAATIC.js"), { ShopifyConfig } = await import("./custom-oclif-loader-SNCTJFAW.js");
29
+ let { errorHandler } = await import("./error-handler-EDZQQPRP.js"), { isDevelopment } = await import("./local-7RAANNJV.js"), oclif = await import("./lib-MIBR2T7P.js"), { ShopifyConfig } = await import("./custom-oclif-loader-FXIJAWX7.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-UWCAHSHB.js");
44
+ let { renderError } = await import("./ui-OHY6IY4A.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-URP7ZOL6.js"), { moduleDirectory } = await import("./path-2K5HIMHZ.js"), name = (await findUpAndReadPackageJson(moduleDirectory(options.moduleURL))).content.name.replace("@shopify/create-", "");
71
+ let { findUpAndReadPackageJson } = await import("./node-package-manager-EM4XDXO6.js"), { moduleDirectory } = await import("./path-GWAZZN2N.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-Y4DB5LTR.js.map
120
+ //# sourceMappingURL=chunk-GXYYUJCZ.js.map
@@ -8,19 +8,19 @@ import {
8
8
  ensureAuthenticatedAdmin,
9
9
  ensureAuthenticatedBusinessPlatform,
10
10
  logout
11
- } from "./chunk-VSYHQUMS.js";
11
+ } from "./chunk-OV2WT25T.js";
12
12
  import {
13
13
  base_command_default
14
- } from "./chunk-JYRZAF2V.js";
14
+ } from "./chunk-WUIY4ZKO.js";
15
15
  import {
16
16
  fanoutHooks,
17
17
  requestIdsCollection
18
- } from "./chunk-WAVVSCTB.js";
18
+ } from "./chunk-4N62VJCW.js";
19
19
  import {
20
20
  businessPlatformFqdn,
21
21
  normalizeStoreFqdn,
22
22
  partnersFqdn
23
- } from "./chunk-77YUNYVM.js";
23
+ } from "./chunk-7RVTZY4V.js";
24
24
  import {
25
25
  ClientError,
26
26
  GraphQLClient,
@@ -34,10 +34,10 @@ import {
34
34
  retryAwareRequest,
35
35
  sanitizeURL,
36
36
  sanitizedHeadersOutput
37
- } from "./chunk-OJYLAVCF.js";
37
+ } from "./chunk-AA6YHL4H.js";
38
38
  import {
39
39
  CLI_KIT_VERSION
40
- } from "./chunk-DV2YYPEI.js";
40
+ } from "./chunk-OEN366HT.js";
41
41
  import {
42
42
  cacheRetrieveOrRepopulate,
43
43
  findUpAndReadPackageJson,
@@ -47,7 +47,7 @@ import {
47
47
  readAndParsePackageJson,
48
48
  timeIntervalToMilliseconds,
49
49
  writePackageJSON
50
- } from "./chunk-JAKMNE2C.js";
50
+ } from "./chunk-SA6W52ZM.js";
51
51
  import {
52
52
  AbortError,
53
53
  BugError,
@@ -87,7 +87,7 @@ import {
87
87
  source_default,
88
88
  stringifyMessage,
89
89
  writeFile
90
- } from "./chunk-T3I7QQ2S.js";
90
+ } from "./chunk-2SENSD2I.js";
91
91
  import {
92
92
  basename,
93
93
  cwd,
@@ -97,10 +97,10 @@ import {
97
97
  relativePath,
98
98
  relativizePath,
99
99
  resolvePath
100
- } from "./chunk-57Q6OQG4.js";
100
+ } from "./chunk-ZUCWDIGE.js";
101
101
  import {
102
102
  require_lib
103
- } from "./chunk-UTDSSCPI.js";
103
+ } from "./chunk-5AFYDRV4.js";
104
104
  import {
105
105
  require_source_map_support
106
106
  } from "./chunk-G5R6YD27.js";
@@ -1918,7 +1918,7 @@ var require_third_party = __commonJS({
1918
1918
  return l = (2 - s) * v, lmin = (2 - s) * vmin, sl = s * vmin, sl /= lmin <= 1 ? lmin : 2 - lmin, sl = sl || 0, l /= 2, [h, sl * 100, l * 100];
1919
1919
  }, convert.hwb.rgb = function(hwb) {
1920
1920
  var h = hwb[0] / 360, wh = hwb[1] / 100, bl = hwb[2] / 100, ratio = wh + bl, i, v, f, n;
1921
- ratio > 1 && (wh /= ratio, bl /= ratio), i = Math.floor(6 * h), v = 1 - bl, f = 6 * h - i, i & 1 && (f = 1 - f), n = wh + f * (v - wh);
1921
+ ratio > 1 && (wh /= ratio, bl /= ratio), i = Math.floor(6 * h), v = 1 - bl, f = 6 * h - i, (i & 1) !== 0 && (f = 1 - f), n = wh + f * (v - wh);
1922
1922
  var r, g, b;
1923
1923
  switch (i) {
1924
1924
  default:
@@ -108842,7 +108842,7 @@ var require_prettier = __commonJS({
108842
108842
  return l = (2 - s) * v, lmin = (2 - s) * vmin, sl = s * vmin, sl /= lmin <= 1 ? lmin : 2 - lmin, sl = sl || 0, l /= 2, [h, sl * 100, l * 100];
108843
108843
  }, convert.hwb.rgb = function(hwb) {
108844
108844
  var h = hwb[0] / 360, wh = hwb[1] / 100, bl = hwb[2] / 100, ratio = wh + bl, i, v, f, n;
108845
- ratio > 1 && (wh /= ratio, bl /= ratio), i = Math.floor(6 * h), v = 1 - bl, f = 6 * h - i, i & 1 && (f = 1 - f), n = wh + f * (v - wh);
108845
+ ratio > 1 && (wh /= ratio, bl /= ratio), i = Math.floor(6 * h), v = 1 - bl, f = 6 * h - i, (i & 1) !== 0 && (f = 1 - f), n = wh + f * (v - wh);
108846
108846
  var r, g, b;
108847
108847
  switch (i) {
108848
108848
  default:
@@ -111933,7 +111933,7 @@ ${frame}`), highlighted ? chalk.reset(frame) : frame;
111933
111933
  exports22.isInteger = (num) => typeof num == "number" ? Number.isInteger(num) : typeof num == "string" && num.trim() !== "" ? Number.isInteger(Number(num)) : !1, exports22.find = (node, type) => node.nodes.find((node2) => node2.type === type), exports22.exceedsLimit = (min, max, step = 1, limit) => limit === !1 || !exports22.isInteger(min) || !exports22.isInteger(max) ? !1 : (Number(max) - Number(min)) / Number(step) >= limit, exports22.escapeNode = (block, n = 0, type) => {
111934
111934
  let node = block.nodes[n];
111935
111935
  node && (type && node.type === type || node.type === "open" || node.type === "close") && node.escaped !== !0 && (node.value = "\\" + node.value, node.escaped = !0);
111936
- }, exports22.encloseBrace = (node) => node.type !== "brace" || node.commas >> 0 + node.ranges >> 0 ? !1 : (node.invalid = !0, !0), exports22.isInvalidBrace = (block) => block.type !== "brace" ? !1 : block.invalid === !0 || block.dollar ? !0 : !(block.commas >> 0 + block.ranges >> 0) || block.open !== !0 || block.close !== !0 ? (block.invalid = !0, !0) : !1, exports22.isOpenOrClose = (node) => node.type === "open" || node.type === "close" ? !0 : node.open === !0 || node.close === !0, exports22.reduce = (nodes) => nodes.reduce((acc, node) => (node.type === "text" && acc.push(node.value), node.type === "range" && (node.type = "text"), acc), []), exports22.flatten = (...args) => {
111936
+ }, exports22.encloseBrace = (node) => node.type !== "brace" ? !1 : node.commas >> 0 + node.ranges >> 0 === 0 ? (node.invalid = !0, !0) : !1, exports22.isInvalidBrace = (block) => block.type !== "brace" ? !1 : block.invalid === !0 || block.dollar ? !0 : block.commas >> 0 + block.ranges >> 0 === 0 || block.open !== !0 || block.close !== !0 ? (block.invalid = !0, !0) : !1, exports22.isOpenOrClose = (node) => node.type === "open" || node.type === "close" ? !0 : node.open === !0 || node.close === !0, exports22.reduce = (nodes) => nodes.reduce((acc, node) => (node.type === "text" && acc.push(node.value), node.type === "range" && (node.type = "text"), acc), []), exports22.flatten = (...args) => {
111937
111937
  let result = [], flat = (arr) => {
111938
111938
  for (let i = 0; i < arr.length; i++) {
111939
111939
  let ele = arr[i];
@@ -135807,7 +135807,7 @@ init_cjs_shims();
135807
135807
  // ../../node_modules/.pnpm/@shopify+cli-hydrogen@10.0.1_@graphql-codegen+cli@5.0.4_graphql@16.10.0_react-dom@17.0.2_react@17.0.2/node_modules/@shopify/cli-hydrogen/dist/lib/transpile/file.js
135808
135808
  init_cjs_shims();
135809
135809
  async function transpileFile(code, filepath, keepTypes = !0) {
135810
- let { transpileTs } = await import("./morph-MDY3DSJL.js");
135810
+ let { transpileTs } = await import("./morph-EB6ON4RE.js");
135811
135811
  return transpileTs(code, filepath, keepTypes);
135812
135812
  }
135813
135813
 
@@ -140873,6 +140873,9 @@ async function ensureIsClean(directory) {
140873
140873
  async function isClean(directory) {
140874
140874
  return (await esm_default({ baseDir: directory }).status()).isClean();
140875
140875
  }
140876
+ async function getLatestTag(directory) {
140877
+ return (await esm_default({ baseDir: directory }).tags()).latest;
140878
+ }
140876
140879
 
140877
140880
  // ../../node_modules/.pnpm/@shopify+cli-hydrogen@10.0.1_@graphql-codegen+cli@5.0.4_graphql@16.10.0_react-dom@17.0.2_react@17.0.2/node_modules/@shopify/cli-hydrogen/dist/lib/setups/routes/generate.js
140878
140881
  init_cjs_shims();
@@ -142437,6 +142440,7 @@ export {
142437
142440
  GitDirectoryNotCleanError,
142438
142441
  ensureIsClean,
142439
142442
  isClean,
142443
+ getLatestTag,
142440
142444
  execAsync,
142441
142445
  supressNodeExperimentalWarnings,
142442
142446
  isHydrogenMonorepo,
@@ -142558,4 +142562,4 @@ export {
142558
142562
  getDebugBannerLine,
142559
142563
  getUtilityBannerlines
142560
142564
  };
142561
- //# sourceMappingURL=chunk-LD7EUWUQ.js.map
142565
+ //# sourceMappingURL=chunk-JEZFZHJT.js.map
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  renderConcurrent,
3
3
  renderTasks
4
- } from "./chunk-T3I7QQ2S.js";
4
+ } from "./chunk-2SENSD2I.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-IUNLWSXD.js.map
46
+ //# sourceMappingURL=chunk-JTTPS2WH.js.map
@@ -1,12 +1,12 @@
1
1
  import {
2
2
  packageManagerFromUserAgent
3
- } from "./chunk-JAKMNE2C.js";
3
+ } from "./chunk-SA6W52ZM.js";
4
4
  import {
5
5
  currentProcessIsGlobal,
6
6
  inferPackageManagerForGlobalCLI,
7
7
  outputContent,
8
8
  outputToken
9
- } from "./chunk-T3I7QQ2S.js";
9
+ } from "./chunk-2SENSD2I.js";
10
10
  import {
11
11
  init_cjs_shims
12
12
  } from "./chunk-PKR7KJ6P.js";
@@ -25,4 +25,4 @@ export {
25
25
  cliInstallCommand,
26
26
  getOutputUpdateCLIReminder
27
27
  };
28
- //# sourceMappingURL=chunk-HHVCEPRF.js.map
28
+ //# sourceMappingURL=chunk-MGQUMYJJ.js.map
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  prompts
3
- } from "./chunk-X6UFRMT6.js";
3
+ } from "./chunk-6ZDFI7RQ.js";
4
4
  import {
5
5
  base_command_default
6
- } from "./chunk-JYRZAF2V.js";
6
+ } from "./chunk-WUIY4ZKO.js";
7
7
  import {
8
8
  init_cjs_shims
9
9
  } from "./chunk-PKR7KJ6P.js";
@@ -25,4 +25,4 @@ var KitchenSinkPrompts = class extends base_command_default {
25
25
  export {
26
26
  KitchenSinkPrompts
27
27
  };
28
- //# sourceMappingURL=chunk-ZEHIERTA.js.map
28
+ //# sourceMappingURL=chunk-MK43HXRP.js.map
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  asyncTasks
3
- } from "./chunk-IUNLWSXD.js";
3
+ } from "./chunk-JTTPS2WH.js";
4
4
  import {
5
5
  base_command_default
6
- } from "./chunk-JYRZAF2V.js";
6
+ } from "./chunk-WUIY4ZKO.js";
7
7
  import {
8
8
  init_cjs_shims
9
9
  } from "./chunk-PKR7KJ6P.js";
@@ -25,4 +25,4 @@ var KitchenSinkAsync = class extends base_command_default {
25
25
  export {
26
26
  KitchenSinkAsync
27
27
  };
28
- //# sourceMappingURL=chunk-63BE7GDY.js.map
28
+ //# sourceMappingURL=chunk-MRSGUMFQ.js.map
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  base_command_default
3
- } from "./chunk-JYRZAF2V.js";
3
+ } from "./chunk-WUIY4ZKO.js";
4
4
  import {
5
5
  require_lib
6
- } from "./chunk-UTDSSCPI.js";
6
+ } from "./chunk-5AFYDRV4.js";
7
7
  import {
8
8
  __toESM,
9
9
  init_cjs_shims
@@ -46,4 +46,4 @@ var HelpCommand = class _HelpCommand extends base_command_default {
46
46
  export {
47
47
  HelpCommand
48
48
  };
49
- //# sourceMappingURL=chunk-6G4NC476.js.map
49
+ //# sourceMappingURL=chunk-MUBX4Z7T.js.map