@shopify/cli 3.82.1 → 3.83.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 (99) hide show
  1. package/dist/{chokidar-TTCYG5AA.js → chokidar-KCZH6DIC.js} +5 -5
  2. package/dist/{chokidar-XUA2BN3J.js → chokidar-XPSJ2FUJ.js} +5 -5
  3. package/dist/{chunk-LPU2VGJR.js → chunk-3FBDJEGD.js} +6153 -11319
  4. package/dist/{chunk-IXOKLO2J.js → chunk-3UWCIMCN.js} +8 -8
  5. package/dist/{chunk-MPCIJZRR.js → chunk-4PTDVIME.js} +3 -3
  6. package/dist/{chunk-OSWJJWB4.js → chunk-5X5Y3IET.js} +5 -5
  7. package/dist/{chunk-F7J5CUMZ.js → chunk-66VZYBID.js} +4 -4
  8. package/dist/{chunk-MOIB2YST.js → chunk-7I7D2AB7.js} +2 -2
  9. package/dist/{chunk-TRPRYAWB.js → chunk-7J6ZE55N.js} +4 -4
  10. package/dist/{chunk-VOPDBKMR.js → chunk-7XAQKXYH.js} +3 -3
  11. package/dist/{chunk-B2IEJ5WW.js → chunk-BCMTVG7I.js} +4 -4
  12. package/dist/{chunk-AE3MLJMV.js → chunk-D5BJW27F.js} +779 -24
  13. package/dist/{chunk-7E5ELMEP.js → chunk-DEDYC4OS.js} +6 -6
  14. package/dist/{chunk-EE5FOU6D.js → chunk-DQ7IVWF5.js} +2 -2
  15. package/dist/{chunk-HPTCTDPD.js → chunk-DUVXMFQV.js} +3 -3
  16. package/dist/{chunk-2UOPOSAQ.js → chunk-EMB6CXID.js} +5 -5
  17. package/dist/{chunk-SRBYTZSG.js → chunk-FLP2CHCV.js} +4 -4
  18. package/dist/{chunk-YJPCY2LS.js → chunk-FX4FEEOP.js} +3 -3
  19. package/dist/{chunk-IHFQ3F23.js → chunk-G3NP7WGS.js} +3 -3
  20. package/dist/{chunk-N4LQOIDN.js → chunk-HB6JA5JP.js} +3 -3
  21. package/dist/{chunk-QDLC5TZP.js → chunk-JYGYXNTS.js} +3 -3
  22. package/dist/{chunk-API6SOPE.js → chunk-K7E7R4WS.js} +3 -3
  23. package/dist/{chunk-GCPVC7EU.js → chunk-KQ6EUJSO.js} +5 -5
  24. package/dist/{chunk-SFDHLWEI.js → chunk-KTDX7ILI.js} +4 -4
  25. package/dist/{chunk-W7ISQU7I.js → chunk-LNKEJMFC.js} +2 -2
  26. package/dist/{chunk-6HSVIAHC.js → chunk-LPFXBJSA.js} +13 -11
  27. package/dist/{chunk-RBHXB7LY.js → chunk-LPVUYMVK.js} +2 -2
  28. package/dist/{chunk-7AGM22KG.js → chunk-MUUMCGTU.js} +3 -3
  29. package/dist/{chunk-TOYQ6OGF.js → chunk-NCY3OOON.js} +3 -3
  30. package/dist/{chunk-JFCQDJFN.js → chunk-NYME2DVS.js} +12 -12
  31. package/dist/{chunk-CLFWIHUG.js → chunk-NZV3PGJI.js} +4 -4
  32. package/dist/{chunk-MBYV3HFV.js → chunk-P2OGMB6O.js} +3 -3
  33. package/dist/{chunk-YN4HBUI3.js → chunk-Q5MC6CL3.js} +5 -5
  34. package/dist/{chunk-UENXYFT3.js → chunk-TEGDYNIU.js} +11 -9
  35. package/dist/chunk-UV5N2VL7.js +39 -0
  36. package/dist/{chunk-5NCPSAFZ.js → chunk-VTBFHPET.js} +2 -2
  37. package/dist/{chunk-YPVB6B34.js → chunk-XG23534A.js} +7 -7
  38. package/dist/{chunk-M4TCGXII.js → chunk-XHDAKO3K.js} +7 -7
  39. package/dist/{chunk-LHLR2V5J.js → chunk-YBKI4WVT.js} +2 -2
  40. package/dist/cli/commands/auth/logout.js +15 -17
  41. package/dist/cli/commands/auth/logout.test.js +16 -18
  42. package/dist/cli/commands/cache/clear.js +14 -16
  43. package/dist/cli/commands/debug/command-flags.d.ts +1 -1
  44. package/dist/cli/commands/debug/command-flags.js +14 -16
  45. package/dist/cli/commands/docs/generate.js +14 -16
  46. package/dist/cli/commands/docs/generate.test.js +14 -16
  47. package/dist/cli/commands/help.d.ts +2 -2
  48. package/dist/cli/commands/help.js +14 -16
  49. package/dist/cli/commands/kitchen-sink/async.js +15 -17
  50. package/dist/cli/commands/kitchen-sink/async.test.js +15 -17
  51. package/dist/cli/commands/kitchen-sink/index.js +17 -19
  52. package/dist/cli/commands/kitchen-sink/index.test.js +17 -19
  53. package/dist/cli/commands/kitchen-sink/prompts.js +15 -17
  54. package/dist/cli/commands/kitchen-sink/prompts.test.js +15 -17
  55. package/dist/cli/commands/kitchen-sink/static.js +15 -17
  56. package/dist/cli/commands/kitchen-sink/static.test.js +15 -17
  57. package/dist/cli/commands/notifications/generate.js +15 -17
  58. package/dist/cli/commands/notifications/list.d.ts +1 -1
  59. package/dist/cli/commands/notifications/list.js +15 -17
  60. package/dist/cli/commands/search.d.ts +1 -1
  61. package/dist/cli/commands/search.js +15 -17
  62. package/dist/cli/commands/upgrade.js +15 -17
  63. package/dist/cli/commands/version.js +15 -17
  64. package/dist/cli/commands/version.test.js +15 -17
  65. package/dist/cli/services/commands/notifications.js +10 -12
  66. package/dist/cli/services/commands/search.js +6 -8
  67. package/dist/cli/services/commands/search.test.js +6 -8
  68. package/dist/cli/services/commands/version.js +7 -9
  69. package/dist/cli/services/commands/version.test.js +8 -10
  70. package/dist/cli/services/kitchen-sink/async.js +6 -8
  71. package/dist/cli/services/kitchen-sink/prompts.js +6 -8
  72. package/dist/cli/services/kitchen-sink/static.js +6 -8
  73. package/dist/cli/services/upgrade.js +7 -9
  74. package/dist/cli/services/upgrade.test.js +8 -10
  75. package/dist/configs/all.yml +9 -0
  76. package/dist/configs/recommended.yml +9 -0
  77. package/dist/{custom-oclif-loader-SQEUSZSS.js → custom-oclif-loader-4SQWZCJO.js} +6 -8
  78. package/dist/data/filters.json +40 -0
  79. package/dist/data/latest.json +1 -1
  80. package/dist/data/objects.json +28 -16
  81. package/dist/data/tags.json +7 -7
  82. package/dist/data/translations.json +9 -2
  83. package/dist/{chunk-FAITFLRX.js → del-SAZHGAZZ.js} +372 -42
  84. package/dist/{error-handler-EUTRPJGF.js → error-handler-AU7YI2YV.js} +12 -14
  85. package/dist/hooks/postrun.js +10 -12
  86. package/dist/hooks/prerun.js +11 -13
  87. package/dist/{http-proxy-LHSVRGJ5.js → http-proxy-node16-T623PGD4.js} +37 -29
  88. package/dist/index.js +20780 -20287
  89. package/dist/{lib-2ZBT3UR2.js → lib-OSXFX3I2.js} +4 -5
  90. package/dist/{local-DTWKQE2A.js → local-4S6IAIPU.js} +6 -8
  91. package/dist/{morph-DFRO3NRL.js → morph-5LWJDWYB.js} +5 -5
  92. package/dist/{node-MZOMVUI6.js → node-S5IAFUYU.js} +16 -18
  93. package/dist/{node-package-manager-NJGCZMAX.js → node-package-manager-4KNYIZWV.js} +7 -9
  94. package/dist/tsconfig.tsbuildinfo +1 -1
  95. package/dist/{ui-OUT2NXBE.js → ui-ALLFW3C3.js} +6 -8
  96. package/dist/{workerd-JR3RQRVU.js → workerd-7B5KK6HK.js} +16 -18
  97. package/oclif.manifest.json +212 -1
  98. package/package.json +14 -12
  99. package/dist/del-4JSTEFDW.js +0 -375
@@ -2,15 +2,15 @@ import {
2
2
  fetch,
3
3
  jsonOutputEnabled,
4
4
  z
5
- } from "./chunk-YJPCY2LS.js";
5
+ } from "./chunk-FX4FEEOP.js";
6
6
  import {
7
7
  CLI_KIT_VERSION
8
- } from "./chunk-EE5FOU6D.js";
8
+ } from "./chunk-DQ7IVWF5.js";
9
9
  import {
10
10
  cacheRetrieve,
11
11
  cacheStore,
12
12
  versionSatisfies
13
- } from "./chunk-YN4HBUI3.js";
13
+ } from "./chunk-Q5MC6CL3.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-AE3MLJMV.js";
22
+ } from "./chunk-D5BJW27F.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-EUTRPJGF.js");
90
+ let { sendErrorToBugsnag } = await import("./error-handler-AU7YI2YV.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-7E5ELMEP.js.map
203
+ //# sourceMappingURL=chunk-DEDYC4OS.js.map
@@ -4,9 +4,9 @@ import {
4
4
 
5
5
  // ../cli-kit/dist/public/common/version.js
6
6
  init_cjs_shims();
7
- var CLI_KIT_VERSION = "3.82.1";
7
+ var CLI_KIT_VERSION = "3.83.0";
8
8
 
9
9
  export {
10
10
  CLI_KIT_VERSION
11
11
  };
12
- //# sourceMappingURL=chunk-EE5FOU6D.js.map
12
+ //# sourceMappingURL=chunk-DQ7IVWF5.js.map
@@ -4,7 +4,7 @@ import {
4
4
  findUpAndReadPackageJson,
5
5
  getPackageManager,
6
6
  usesWorkspaces
7
- } from "./chunk-YN4HBUI3.js";
7
+ } from "./chunk-Q5MC6CL3.js";
8
8
  import {
9
9
  AbortError,
10
10
  exec,
@@ -15,7 +15,7 @@ import {
15
15
  outputSuccess,
16
16
  outputToken,
17
17
  outputWarn
18
- } from "./chunk-AE3MLJMV.js";
18
+ } from "./chunk-D5BJW27F.js";
19
19
  import {
20
20
  dirname,
21
21
  joinPath,
@@ -139,4 +139,4 @@ function usingPackageManager({ env } = { env: process.env }) {
139
139
  export {
140
140
  upgrade
141
141
  };
142
- //# sourceMappingURL=chunk-HPTCTDPD.js.map
142
+ //# sourceMappingURL=chunk-DUVXMFQV.js.map
@@ -2,13 +2,13 @@ import {
2
2
  fetchNotifications,
3
3
  getNotifications,
4
4
  stringifyFilters
5
- } from "./chunk-7E5ELMEP.js";
5
+ } from "./chunk-DEDYC4OS.js";
6
6
  import {
7
7
  randomUUID
8
- } from "./chunk-YJPCY2LS.js";
8
+ } from "./chunk-FX4FEEOP.js";
9
9
  import {
10
10
  CLI_KIT_VERSION
11
- } from "./chunk-EE5FOU6D.js";
11
+ } from "./chunk-DQ7IVWF5.js";
12
12
  import {
13
13
  outputInfo,
14
14
  renderSelectPrompt,
@@ -16,7 +16,7 @@ import {
16
16
  renderTable,
17
17
  renderTextPrompt,
18
18
  writeFile
19
- } from "./chunk-AE3MLJMV.js";
19
+ } from "./chunk-D5BJW27F.js";
20
20
  import {
21
21
  init_cjs_shims
22
22
  } from "./chunk-PKR7KJ6P.js";
@@ -103,4 +103,4 @@ export {
103
103
  generate,
104
104
  list
105
105
  };
106
- //# sourceMappingURL=chunk-2UOPOSAQ.js.map
106
+ //# sourceMappingURL=chunk-EMB6CXID.js.map
@@ -1,12 +1,12 @@
1
1
  import {
2
2
  cliInstallCommand
3
- } from "./chunk-MPCIJZRR.js";
3
+ } from "./chunk-4PTDVIME.js";
4
4
  import {
5
5
  base_command_default
6
- } from "./chunk-UENXYFT3.js";
6
+ } from "./chunk-TEGDYNIU.js";
7
7
  import {
8
8
  renderInfo
9
- } from "./chunk-AE3MLJMV.js";
9
+ } from "./chunk-D5BJW27F.js";
10
10
  import {
11
11
  init_cjs_shims
12
12
  } from "./chunk-PKR7KJ6P.js";
@@ -34,4 +34,4 @@ var Upgrade = class extends base_command_default {
34
34
  export {
35
35
  Upgrade
36
36
  };
37
- //# sourceMappingURL=chunk-SRBYTZSG.js.map
37
+ //# sourceMappingURL=chunk-FLP2CHCV.js.map
@@ -5,7 +5,7 @@ import {
5
5
  } from "./chunk-25IMI7TH.js";
6
6
  import {
7
7
  CLI_KIT_VERSION
8
- } from "./chunk-EE5FOU6D.js";
8
+ } from "./chunk-DQ7IVWF5.js";
9
9
  import {
10
10
  Environment,
11
11
  environmentVariables,
@@ -18,7 +18,7 @@ import {
18
18
  serviceEnvironment,
19
19
  sleep,
20
20
  systemEnvironmentVariables
21
- } from "./chunk-AE3MLJMV.js";
21
+ } from "./chunk-D5BJW27F.js";
22
22
  import {
23
23
  sniffForJson
24
24
  } from "./chunk-EG6MBBEN.js";
@@ -31449,4 +31449,4 @@ mime-types/index.js:
31449
31449
  * MIT Licensed
31450
31450
  *)
31451
31451
  */
31452
- //# sourceMappingURL=chunk-YJPCY2LS.js.map
31452
+ //# sourceMappingURL=chunk-FX4FEEOP.js.map
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  versionService
3
- } from "./chunk-N4LQOIDN.js";
3
+ } from "./chunk-HB6JA5JP.js";
4
4
  import {
5
5
  base_command_default
6
- } from "./chunk-UENXYFT3.js";
6
+ } from "./chunk-TEGDYNIU.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-IHFQ3F23.js.map
25
+ //# sourceMappingURL=chunk-G3NP7WGS.js.map
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  CLI_KIT_VERSION
3
- } from "./chunk-EE5FOU6D.js";
3
+ } from "./chunk-DQ7IVWF5.js";
4
4
  import {
5
5
  outputResult
6
- } from "./chunk-AE3MLJMV.js";
6
+ } from "./chunk-D5BJW27F.js";
7
7
  import {
8
8
  init_cjs_shims
9
9
  } from "./chunk-PKR7KJ6P.js";
@@ -17,4 +17,4 @@ async function versionService() {
17
17
  export {
18
18
  versionService
19
19
  };
20
- //# sourceMappingURL=chunk-N4LQOIDN.js.map
20
+ //# sourceMappingURL=chunk-HB6JA5JP.js.map
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  generate
3
- } from "./chunk-2UOPOSAQ.js";
3
+ } from "./chunk-EMB6CXID.js";
4
4
  import {
5
5
  base_command_default
6
- } from "./chunk-UENXYFT3.js";
6
+ } from "./chunk-TEGDYNIU.js";
7
7
  import {
8
8
  init_cjs_shims
9
9
  } from "./chunk-PKR7KJ6P.js";
@@ -25,4 +25,4 @@ var Generate = class extends base_command_default {
25
25
  export {
26
26
  Generate
27
27
  };
28
- //# sourceMappingURL=chunk-QDLC5TZP.js.map
28
+ //# sourceMappingURL=chunk-JYGYXNTS.js.map
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  asyncTasks
3
- } from "./chunk-LHLR2V5J.js";
3
+ } from "./chunk-YBKI4WVT.js";
4
4
  import {
5
5
  base_command_default
6
- } from "./chunk-UENXYFT3.js";
6
+ } from "./chunk-TEGDYNIU.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-API6SOPE.js.map
28
+ //# sourceMappingURL=chunk-K7E7R4WS.js.map
@@ -1,15 +1,15 @@
1
1
  import {
2
2
  prompts
3
- } from "./chunk-RBHXB7LY.js";
3
+ } from "./chunk-LPVUYMVK.js";
4
4
  import {
5
5
  staticService
6
- } from "./chunk-MOIB2YST.js";
6
+ } from "./chunk-7I7D2AB7.js";
7
7
  import {
8
8
  asyncTasks
9
- } from "./chunk-LHLR2V5J.js";
9
+ } from "./chunk-YBKI4WVT.js";
10
10
  import {
11
11
  base_command_default
12
- } from "./chunk-UENXYFT3.js";
12
+ } from "./chunk-TEGDYNIU.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-GCPVC7EU.js.map
37
+ //# sourceMappingURL=chunk-KQ6EUJSO.js.map
@@ -1,12 +1,12 @@
1
1
  import {
2
2
  logout
3
- } from "./chunk-CLFWIHUG.js";
3
+ } from "./chunk-NZV3PGJI.js";
4
4
  import {
5
5
  base_command_default
6
- } from "./chunk-UENXYFT3.js";
6
+ } from "./chunk-TEGDYNIU.js";
7
7
  import {
8
8
  outputSuccess
9
- } from "./chunk-AE3MLJMV.js";
9
+ } from "./chunk-D5BJW27F.js";
10
10
  import {
11
11
  init_cjs_shims
12
12
  } from "./chunk-PKR7KJ6P.js";
@@ -25,4 +25,4 @@ var Logout = class extends base_command_default {
25
25
  export {
26
26
  Logout
27
27
  };
28
- //# sourceMappingURL=chunk-SFDHLWEI.js.map
28
+ //# sourceMappingURL=chunk-KTDX7ILI.js.map
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  openURL
3
- } from "./chunk-AE3MLJMV.js";
3
+ } from "./chunk-D5BJW27F.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-W7ISQU7I.js.map
18
+ //# sourceMappingURL=chunk-LNKEJMFC.js.map
@@ -7,14 +7,14 @@ import {
7
7
  nonRandomUUID,
8
8
  shopifyFetch,
9
9
  z
10
- } from "./chunk-YJPCY2LS.js";
10
+ } from "./chunk-FX4FEEOP.js";
11
11
  import {
12
12
  getPackageManager,
13
13
  getSession,
14
14
  packageManagerFromUserAgent,
15
15
  removeSession,
16
16
  setSession
17
- } from "./chunk-YN4HBUI3.js";
17
+ } from "./chunk-Q5MC6CL3.js";
18
18
  import {
19
19
  AbortError,
20
20
  BugError,
@@ -45,7 +45,7 @@ import {
45
45
  sessionConstants,
46
46
  spinFqdn,
47
47
  themeToken
48
- } from "./chunk-AE3MLJMV.js";
48
+ } from "./chunk-D5BJW27F.js";
49
49
  import {
50
50
  cwd
51
51
  } from "./chunk-EG6MBBEN.js";
@@ -866,12 +866,12 @@ async function requestAppToken(api, token, scopes = [], store2) {
866
866
  return { [identifier]: appToken };
867
867
  }
868
868
  function tokenRequestErrorHandler({ error, store: store2 }) {
869
- let invalidTargetErrorMessage = `You are not authorized to use the CLI to develop in the provided store${store2 ? `: ${store2}` : "."}
870
-
871
- 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.
872
-
873
- 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.`;
874
- return error === "invalid_grant" ? new InvalidGrantError() : error === "invalid_request" ? new InvalidRequestError() : error === "invalid_target" ? new InvalidTargetError(invalidTargetErrorMessage) : new AbortError(error);
869
+ let invalidTargetErrorMessage = `You are not authorized to use the CLI to develop in the provided store${store2 ? `: ${store2}` : "."}`;
870
+ return error === "invalid_grant" ? new InvalidGrantError() : error === "invalid_request" ? new InvalidRequestError() : error === "invalid_target" ? new InvalidTargetError(invalidTargetErrorMessage, "", [
871
+ "Ensure you have logged in to the store using the Shopify admin at least once.",
872
+ "Ensure you are the store owner, or have a staff account if you are attempting to log in to a development store.",
873
+ "Ensure you are using the permanent store domain, not a vanity domain."
874
+ ]) : new AbortError(error);
875
875
  }
876
876
  async function tokenRequest(params) {
877
877
  let fqdn = await identityFqdn(), url4 = new URL(`https://${fqdn}/oauth/token`);
@@ -1170,7 +1170,8 @@ async function getEnvironmentData(config) {
1170
1170
  env_package_manager: await getPackageManager(cwd()),
1171
1171
  env_is_global: currentProcessIsGlobal(),
1172
1172
  env_auth_method: await getLastSeenAuthMethod(),
1173
- env_is_wsl: await isWsl()
1173
+ env_is_wsl: await isWsl(),
1174
+ env_build_repository: "Shopify/cli"
1174
1175
  };
1175
1176
  }
1176
1177
  async function getSensitiveEnvironmentData(config) {
@@ -1189,6 +1190,7 @@ function flagIncluded(flag, commandClass) {
1189
1190
  }
1190
1191
 
1191
1192
  export {
1193
+ DevServerCore,
1192
1194
  partnersFqdn,
1193
1195
  adminFqdn,
1194
1196
  appManagementFqdn,
@@ -1211,4 +1213,4 @@ export {
1211
1213
  getEnvironmentData,
1212
1214
  getSensitiveEnvironmentData
1213
1215
  };
1214
- //# sourceMappingURL=chunk-6HSVIAHC.js.map
1216
+ //# sourceMappingURL=chunk-LPFXBJSA.js.map
@@ -5,7 +5,7 @@ import {
5
5
  renderDangerousConfirmationPrompt,
6
6
  renderSelectPrompt,
7
7
  renderTextPrompt
8
- } from "./chunk-AE3MLJMV.js";
8
+ } from "./chunk-D5BJW27F.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-RBHXB7LY.js.map
178
+ //# sourceMappingURL=chunk-LPVUYMVK.js.map
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  prompts
3
- } from "./chunk-RBHXB7LY.js";
3
+ } from "./chunk-LPVUYMVK.js";
4
4
  import {
5
5
  base_command_default
6
- } from "./chunk-UENXYFT3.js";
6
+ } from "./chunk-TEGDYNIU.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-7AGM22KG.js.map
28
+ //# sourceMappingURL=chunk-MUUMCGTU.js.map
@@ -1,12 +1,12 @@
1
1
  import {
2
2
  base_command_default
3
- } from "./chunk-UENXYFT3.js";
3
+ } from "./chunk-TEGDYNIU.js";
4
4
  import {
5
5
  mkdir,
6
6
  outputInfo,
7
7
  rmdir,
8
8
  writeFile
9
- } from "./chunk-AE3MLJMV.js";
9
+ } from "./chunk-D5BJW27F.js";
10
10
  import {
11
11
  cwd,
12
12
  joinPath
@@ -118,4 +118,4 @@ export {
118
118
  writeCommandFlagInterface,
119
119
  writeCommandUsageExampleFile
120
120
  };
121
- //# sourceMappingURL=chunk-TOYQ6OGF.js.map
121
+ //# sourceMappingURL=chunk-NCY3OOON.js.map
@@ -5,19 +5,19 @@ import {
5
5
  ensureAuthenticatedAdmin,
6
6
  ensureAuthenticatedBusinessPlatform,
7
7
  logout
8
- } from "./chunk-CLFWIHUG.js";
8
+ } from "./chunk-NZV3PGJI.js";
9
9
  import {
10
10
  base_command_default
11
- } from "./chunk-UENXYFT3.js";
11
+ } from "./chunk-TEGDYNIU.js";
12
12
  import {
13
13
  fanoutHooks,
14
14
  requestIdsCollection
15
- } from "./chunk-M4TCGXII.js";
15
+ } from "./chunk-XHDAKO3K.js";
16
16
  import {
17
17
  businessPlatformFqdn,
18
18
  normalizeStoreFqdn,
19
19
  partnersFqdn
20
- } from "./chunk-6HSVIAHC.js";
20
+ } from "./chunk-LPFXBJSA.js";
21
21
  import {
22
22
  ClientError,
23
23
  GraphQLClient,
@@ -31,10 +31,10 @@ import {
31
31
  retryAwareRequest,
32
32
  sanitizeURL,
33
33
  sanitizedHeadersOutput
34
- } from "./chunk-YJPCY2LS.js";
34
+ } from "./chunk-FX4FEEOP.js";
35
35
  import {
36
36
  CLI_KIT_VERSION
37
- } from "./chunk-EE5FOU6D.js";
37
+ } from "./chunk-DQ7IVWF5.js";
38
38
  import {
39
39
  cacheRetrieveOrRepopulate,
40
40
  findUpAndReadPackageJson,
@@ -44,7 +44,7 @@ import {
44
44
  readAndParsePackageJson,
45
45
  timeIntervalToMilliseconds,
46
46
  writePackageJSON
47
- } from "./chunk-YN4HBUI3.js";
47
+ } from "./chunk-Q5MC6CL3.js";
48
48
  import {
49
49
  AbortError,
50
50
  BugError,
@@ -84,7 +84,7 @@ import {
84
84
  source_default,
85
85
  stringifyMessage,
86
86
  writeFile
87
- } from "./chunk-AE3MLJMV.js";
87
+ } from "./chunk-D5BJW27F.js";
88
88
  import {
89
89
  basename,
90
90
  cwd,
@@ -97,7 +97,7 @@ import {
97
97
  } from "./chunk-EG6MBBEN.js";
98
98
  import {
99
99
  require_lib
100
- } from "./chunk-LPU2VGJR.js";
100
+ } from "./chunk-3FBDJEGD.js";
101
101
  import {
102
102
  require_src
103
103
  } from "./chunk-UMUTXITN.js";
@@ -135807,7 +135807,7 @@ init_cjs_shims();
135807
135807
  // ../../node_modules/.pnpm/@shopify+cli-hydrogen@10.0.1_@graphql-codegen+cli@5.0.4_@parcel+watcher@2.5.1_@types+no_700217a4222a08650099cd57a51aa579/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-DFRO3NRL.js");
135810
+ let { transpileTs } = await import("./morph-5LWJDWYB.js");
135811
135811
  return transpileTs(code, filepath, keepTypes);
135812
135812
  }
135813
135813
 
@@ -136966,7 +136966,7 @@ var addCursorAndFiltersToAppLogsUrl = (baseUrl, cursor, filters) => {
136966
136966
  };
136967
136967
 
136968
136968
  // ../cli-kit/dist/public/node/api/partners.js
136969
- var import_bottleneck = __toESM(require_lib2(), 1), limiter = new import_bottleneck.default({
136969
+ var import_bottleneck = __toESM(require_lib2()), limiter = new import_bottleneck.default({
136970
136970
  minTime: 150,
136971
136971
  maxConcurrent: 10
136972
136972
  });
@@ -142602,4 +142602,4 @@ export {
142602
142602
  getDebugBannerLine,
142603
142603
  getUtilityBannerlines
142604
142604
  };
142605
- //# sourceMappingURL=chunk-JFCQDJFN.js.map
142605
+ //# sourceMappingURL=chunk-NYME2DVS.js.map
@@ -8,17 +8,17 @@ import {
8
8
  remove,
9
9
  setLastSeenAuthMethod,
10
10
  setLastSeenUserIdAfterAuth
11
- } from "./chunk-6HSVIAHC.js";
11
+ } from "./chunk-LPFXBJSA.js";
12
12
  import {
13
13
  getPartnersToken,
14
14
  nonRandomUUID
15
- } from "./chunk-YJPCY2LS.js";
15
+ } from "./chunk-FX4FEEOP.js";
16
16
  import {
17
17
  BugError,
18
18
  outputContent,
19
19
  outputDebug,
20
20
  outputToken
21
- } from "./chunk-AE3MLJMV.js";
21
+ } from "./chunk-D5BJW27F.js";
22
22
  import {
23
23
  init_cjs_shims
24
24
  } from "./chunk-PKR7KJ6P.js";
@@ -117,4 +117,4 @@ export {
117
117
  ensureAuthenticatedBusinessPlatform,
118
118
  logout
119
119
  };
120
- //# sourceMappingURL=chunk-CLFWIHUG.js.map
120
+ //# sourceMappingURL=chunk-NZV3PGJI.js.map
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  base_command_default
3
- } from "./chunk-UENXYFT3.js";
3
+ } from "./chunk-TEGDYNIU.js";
4
4
  import {
5
5
  require_lib
6
- } from "./chunk-LPU2VGJR.js";
6
+ } from "./chunk-3FBDJEGD.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-MBYV3HFV.js.map
49
+ //# sourceMappingURL=chunk-P2OGMB6O.js.map
@@ -18,14 +18,14 @@ import {
18
18
  require_get_stream,
19
19
  runWithTimer,
20
20
  writeFile
21
- } from "./chunk-AE3MLJMV.js";
22
- import {
23
- require_semver
24
- } from "./chunk-HMDWNGIV.js";
21
+ } from "./chunk-D5BJW27F.js";
25
22
  import {
26
23
  dirname,
27
24
  joinPath
28
25
  } from "./chunk-EG6MBBEN.js";
26
+ import {
27
+ require_semver
28
+ } from "./chunk-HMDWNGIV.js";
29
29
  import {
30
30
  __commonJS,
31
31
  __export,
@@ -13948,4 +13948,4 @@ deep-extend/lib/deep-extend.js:
13948
13948
  * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
13949
13949
  *)
13950
13950
  */
13951
- //# sourceMappingURL=chunk-YN4HBUI3.js.map
13951
+ //# sourceMappingURL=chunk-Q5MC6CL3.js.map
@@ -1,14 +1,14 @@
1
1
  import {
2
2
  errorHandler,
3
3
  registerCleanBugsnagErrorsFromWithinPlugins
4
- } from "./chunk-YPVB6B34.js";
4
+ } from "./chunk-XG23534A.js";
5
5
  import {
6
6
  setCurrentCommandId,
7
7
  showNotificationsIfNeeded
8
- } from "./chunk-7E5ELMEP.js";
8
+ } from "./chunk-DEDYC4OS.js";
9
9
  import {
10
10
  hashString
11
- } from "./chunk-YJPCY2LS.js";
11
+ } from "./chunk-FX4FEEOP.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-AE3MLJMV.js";
27
+ } from "./chunk-D5BJW27F.js";
28
28
  import {
29
29
  cwd
30
30
  } from "./chunk-EG6MBBEN.js";
31
31
  import {
32
32
  require_lib
33
- } from "./chunk-LPU2VGJR.js";
33
+ } from "./chunk-3FBDJEGD.js";
34
34
  import {
35
35
  __commonJS,
36
36
  __require,
@@ -1563,7 +1563,6 @@ var import_core = __toESM(require_lib()), BaseCommand = class extends import_cor
1563
1563
  async catch(error) {
1564
1564
  return error.skipOclifErrorHandling = !0, await errorHandler(error, this.config), import_core.Errors.handle(error);
1565
1565
  }
1566
- // eslint-disable-next-line @typescript-eslint/no-explicit-any
1567
1566
  async init() {
1568
1567
  return this.exitWithTimestampWhenEnvVariablePresent(), setCurrentCommandId(this.id ?? ""), isDevelopment() || await registerCleanBugsnagErrorsFromWithinPlugins(this.config), this.showNpmFlagWarning(), await showNotificationsIfNeeded(), super.init();
1569
1568
  }
@@ -1615,7 +1614,7 @@ This flag is required in non-interactive terminal environments, such as a CI env
1615
1614
  if (!environmentFileExists && !environmentSpecified || environmentSpecified && environments.length > 1)
1616
1615
  return originalResult;
1617
1616
  let { environment, isDefaultEnvironment } = await this.loadEnvironmentForCommand(flags.path, environmentsFileName, environments[0]);
1618
- if (!environment)
1617
+ if (!environment || isDefaultEnvironment && !commandSupportsFlag(options?.flags, "environment"))
1619
1618
  return originalResult;
1620
1619
  let noDefaultsResult = await super.parse(noDefaultsOptions(options), argv), result = await super.parse(options, [
1621
1620
  // Need to specify argv default because we're merging with argsFromEnvironment.
@@ -1670,7 +1669,7 @@ function noDefaultsOptions(options) {
1670
1669
  function argsFromEnvironment(environment, options, noDefaultsResult) {
1671
1670
  let args = [];
1672
1671
  for (let [label, value] of Object.entries(environment)) {
1673
- let flagIsRelevantToCommand = options?.flags && Object.prototype.hasOwnProperty.call(options.flags, label), userSpecifiedThisFlag = noDefaultsResult.flags && Object.prototype.hasOwnProperty.call(noDefaultsResult.flags, label);
1672
+ let flagIsRelevantToCommand = commandSupportsFlag(options?.flags, label), userSpecifiedThisFlag = noDefaultsResult.flags && Object.prototype.hasOwnProperty.call(noDefaultsResult.flags, label);
1674
1673
  if (flagIsRelevantToCommand && !userSpecifiedThisFlag)
1675
1674
  if (typeof value == "boolean")
1676
1675
  if (value)
@@ -1681,6 +1680,9 @@ function argsFromEnvironment(environment, options, noDefaultsResult) {
1681
1680
  }
1682
1681
  return args;
1683
1682
  }
1683
+ function commandSupportsFlag(flags, flagName) {
1684
+ return !!flags && Object.prototype.hasOwnProperty.call(flags, flagName);
1685
+ }
1684
1686
  var base_command_default = BaseCommand;
1685
1687
 
1686
1688
  export {
@@ -1689,4 +1691,4 @@ export {
1689
1691
  loadEnvironment,
1690
1692
  base_command_default
1691
1693
  };
1692
- //# sourceMappingURL=chunk-UENXYFT3.js.map
1694
+ //# sourceMappingURL=chunk-TEGDYNIU.js.map