@shopify/create-app 4.8.4 → 4.8.5

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 (39) hide show
  1. package/dist/{analytics-IYBTJU64.js → analytics-I6PGSH5K.js} +12 -12
  2. package/dist/{analytics-N7RZNZ7E.js → analytics-QHQHZXCP.js} +12 -12
  3. package/dist/{chunk-UPP43IHQ.js → chunk-2Z5L5TZI.js} +3 -3
  4. package/dist/{chunk-U7XCB7LM.js → chunk-4SGOGIHQ.js} +16 -16
  5. package/dist/{chunk-QMQX3MT5.js → chunk-5JYB62AT.js} +6 -6
  6. package/dist/{chunk-HGTLZ6ZW.js → chunk-67ZHQJFJ.js} +2 -2
  7. package/dist/{chunk-XPTHNPI4.js → chunk-B4MEUQZW.js} +6 -6
  8. package/dist/{chunk-NFOBMXOQ.js → chunk-CPI6XVRV.js} +3 -3
  9. package/dist/{chunk-4ATBZZ7Q.js → chunk-F2LFNR26.js} +2 -2
  10. package/dist/{chunk-YSB2L5XO.js → chunk-GU2TODXD.js} +3 -3
  11. package/dist/{chunk-XZQD6FEL.js → chunk-JEMOMVLA.js} +2 -2
  12. package/dist/{chunk-CJUIIULM.js → chunk-PERCCMZB.js} +15 -15
  13. package/dist/{chunk-ZOH5TKZV.js → chunk-SGIGETET.js} +7 -7
  14. package/dist/{chunk-2VQBQQJH.js → chunk-TS6YLIAL.js} +4 -4
  15. package/dist/{chunk-FSEXIENC.js → chunk-YGBCHL4K.js} +2 -2
  16. package/dist/{chunk-THSPSZ2U.js → chunk-ZKLW7LMH.js} +9 -9
  17. package/dist/{chunk-RJ3A4X2R.js → chunk-ZTNEDTAC.js} +6 -6
  18. package/dist/{conf-store-ZMAEEJET.js → conf-store-I2EVFNHO.js} +5 -5
  19. package/dist/{deprecations-2ZE7F57V.js → deprecations-ASHE6RU7.js} +8 -8
  20. package/dist/{environments-4UKGWAAJ.js → environments-JM7VKVKQ.js} +9 -9
  21. package/dist/{error-handler-OPWDDXJP.js → error-handler-TUY64CIU.js} +12 -12
  22. package/dist/{fs-ZEAP6SYM.js → fs-AOTVAHUT.js} +3 -3
  23. package/dist/hooks/postrun.js +4 -4
  24. package/dist/hooks/prerun.js +6 -6
  25. package/dist/index.js +94 -63
  26. package/dist/{is-global-FYEORJBG.js → is-global-2XE72BX5.js} +3 -3
  27. package/dist/{local-A2UFPWGA.js → local-VTOHZRT2.js} +2 -2
  28. package/dist/{metadata-WWELAOUA.js → metadata-PNCC4F25.js} +3 -3
  29. package/dist/{node-package-manager-WU3OX73T.js → node-package-manager-WUKOPNFK.js} +10 -10
  30. package/dist/{notifications-system-SQQO6LJW.js → notifications-system-GBBRT4B6.js} +13 -13
  31. package/dist/{os-WN6IUS7J.js → os-J6JGAAOY.js} +4 -4
  32. package/dist/{output-BOE7D3BZ.js → output-Y2INREX2.js} +3 -3
  33. package/dist/{system-F5JGMAQ2.js → system-KPC4GYYQ.js} +8 -8
  34. package/dist/{ui-WM75TA2X.js → ui-WQOJ2UKT.js} +8 -8
  35. package/dist/{upgrade-437BKOQU.js → upgrade-KCKPO4QT.js} +14 -14
  36. package/dist/{version-Q3TUYBAR.js → version-5242JBZK.js} +9 -9
  37. package/dist/{version-EHF3PAN2.js → version-ODXTDVIB.js} +2 -2
  38. package/oclif.manifest.json +1 -1
  39. package/package.json +3 -3
@@ -17,15 +17,15 @@ import {
17
17
  setCurrentSessionId,
18
18
  setSessions,
19
19
  timeIntervalToMilliseconds
20
- } from "./chunk-2VQBQQJH.js";
21
- import "./chunk-NFOBMXOQ.js";
20
+ } from "./chunk-TS6YLIAL.js";
21
+ import "./chunk-CPI6XVRV.js";
22
22
  import "./chunk-CM6ALOD7.js";
23
23
  import "./chunk-E43EDJOG.js";
24
24
  import "./chunk-ODCXYGJ2.js";
25
25
  import "./chunk-LBXDGVFS.js";
26
26
  import "./chunk-OQ3KXXGH.js";
27
- import "./chunk-RJ3A4X2R.js";
28
- import "./chunk-UPP43IHQ.js";
27
+ import "./chunk-ZTNEDTAC.js";
28
+ import "./chunk-2Z5L5TZI.js";
29
29
  import "./chunk-7OHJH7BF.js";
30
30
  import "./chunk-HNIAZN6U.js";
31
31
  import "./chunk-C3J4HVUN.js";
@@ -53,4 +53,4 @@ export {
53
53
  setSessions,
54
54
  timeIntervalToMilliseconds
55
55
  };
56
- //# sourceMappingURL=conf-store-ZMAEEJET.js.map
56
+ //# sourceMappingURL=conf-store-I2EVFNHO.js.map
@@ -3,19 +3,19 @@ import {
3
3
  } from "./chunk-MSED5ZFM.js";
4
4
  import {
5
5
  renderWarning
6
- } from "./chunk-ZOH5TKZV.js";
7
- import "./chunk-HGTLZ6ZW.js";
8
- import "./chunk-YSB2L5XO.js";
9
- import "./chunk-NFOBMXOQ.js";
6
+ } from "./chunk-SGIGETET.js";
7
+ import "./chunk-67ZHQJFJ.js";
8
+ import "./chunk-GU2TODXD.js";
9
+ import "./chunk-CPI6XVRV.js";
10
10
  import "./chunk-CM6ALOD7.js";
11
11
  import "./chunk-E43EDJOG.js";
12
12
  import "./chunk-ODCXYGJ2.js";
13
13
  import "./chunk-LBXDGVFS.js";
14
14
  import "./chunk-JGGOQOPO.js";
15
15
  import "./chunk-OQ3KXXGH.js";
16
- import "./chunk-4ATBZZ7Q.js";
17
- import "./chunk-RJ3A4X2R.js";
18
- import "./chunk-UPP43IHQ.js";
16
+ import "./chunk-F2LFNR26.js";
17
+ import "./chunk-ZTNEDTAC.js";
18
+ import "./chunk-2Z5L5TZI.js";
19
19
  import "./chunk-7OHJH7BF.js";
20
20
  import "./chunk-HNIAZN6U.js";
21
21
  import "./chunk-C3J4HVUN.js";
@@ -55,4 +55,4 @@ function renderUpgradeWarning(upgradeByDate, forThemes) {
55
55
  export {
56
56
  postrun
57
57
  };
58
- //# sourceMappingURL=deprecations-2ZE7F57V.js.map
58
+ //# sourceMappingURL=deprecations-ASHE6RU7.js.map
@@ -1,20 +1,20 @@
1
1
  import {
2
2
  environmentFilePath,
3
3
  loadEnvironment
4
- } from "./chunk-QMQX3MT5.js";
5
- import "./chunk-ZOH5TKZV.js";
6
- import "./chunk-HGTLZ6ZW.js";
7
- import "./chunk-YSB2L5XO.js";
8
- import "./chunk-NFOBMXOQ.js";
4
+ } from "./chunk-5JYB62AT.js";
5
+ import "./chunk-SGIGETET.js";
6
+ import "./chunk-67ZHQJFJ.js";
7
+ import "./chunk-GU2TODXD.js";
8
+ import "./chunk-CPI6XVRV.js";
9
9
  import "./chunk-CM6ALOD7.js";
10
10
  import "./chunk-E43EDJOG.js";
11
11
  import "./chunk-ODCXYGJ2.js";
12
12
  import "./chunk-LBXDGVFS.js";
13
13
  import "./chunk-JGGOQOPO.js";
14
14
  import "./chunk-OQ3KXXGH.js";
15
- import "./chunk-4ATBZZ7Q.js";
16
- import "./chunk-RJ3A4X2R.js";
17
- import "./chunk-UPP43IHQ.js";
15
+ import "./chunk-F2LFNR26.js";
16
+ import "./chunk-ZTNEDTAC.js";
17
+ import "./chunk-2Z5L5TZI.js";
18
18
  import "./chunk-7OHJH7BF.js";
19
19
  import "./chunk-HNIAZN6U.js";
20
20
  import "./chunk-C3J4HVUN.js";
@@ -26,4 +26,4 @@ export {
26
26
  environmentFilePath,
27
27
  loadEnvironment
28
28
  };
29
- //# sourceMappingURL=environments-4UKGWAAJ.js.map
29
+ //# sourceMappingURL=environments-JM7VKVKQ.js.map
@@ -4,25 +4,25 @@ import {
4
4
  errorHandler,
5
5
  registerCleanBugsnagErrorsFromWithinPlugins,
6
6
  sendErrorToBugsnag
7
- } from "./chunk-CJUIIULM.js";
7
+ } from "./chunk-PERCCMZB.js";
8
8
  import "./chunk-MSED5ZFM.js";
9
- import "./chunk-FSEXIENC.js";
9
+ import "./chunk-YGBCHL4K.js";
10
10
  import "./chunk-G53O4PDO.js";
11
- import "./chunk-XPTHNPI4.js";
12
- import "./chunk-2VQBQQJH.js";
13
- import "./chunk-ZOH5TKZV.js";
14
- import "./chunk-HGTLZ6ZW.js";
15
- import "./chunk-YSB2L5XO.js";
16
- import "./chunk-NFOBMXOQ.js";
11
+ import "./chunk-B4MEUQZW.js";
12
+ import "./chunk-TS6YLIAL.js";
13
+ import "./chunk-SGIGETET.js";
14
+ import "./chunk-67ZHQJFJ.js";
15
+ import "./chunk-GU2TODXD.js";
16
+ import "./chunk-CPI6XVRV.js";
17
17
  import "./chunk-CM6ALOD7.js";
18
18
  import "./chunk-E43EDJOG.js";
19
19
  import "./chunk-ODCXYGJ2.js";
20
20
  import "./chunk-LBXDGVFS.js";
21
21
  import "./chunk-JGGOQOPO.js";
22
22
  import "./chunk-OQ3KXXGH.js";
23
- import "./chunk-4ATBZZ7Q.js";
24
- import "./chunk-RJ3A4X2R.js";
25
- import "./chunk-UPP43IHQ.js";
23
+ import "./chunk-F2LFNR26.js";
24
+ import "./chunk-ZTNEDTAC.js";
25
+ import "./chunk-2Z5L5TZI.js";
26
26
  import "./chunk-7OHJH7BF.js";
27
27
  import "./chunk-HNIAZN6U.js";
28
28
  import "./chunk-C3J4HVUN.js";
@@ -37,4 +37,4 @@ export {
37
37
  registerCleanBugsnagErrorsFromWithinPlugins,
38
38
  sendErrorToBugsnag
39
39
  };
40
- //# sourceMappingURL=error-handler-OPWDDXJP.js.map
40
+ //# sourceMappingURL=error-handler-TUY64CIU.js.map
@@ -48,8 +48,8 @@ import {
48
48
  unlinkFileSync,
49
49
  writeFile,
50
50
  writeFileSync
51
- } from "./chunk-RJ3A4X2R.js";
52
- import "./chunk-UPP43IHQ.js";
51
+ } from "./chunk-ZTNEDTAC.js";
52
+ import "./chunk-2Z5L5TZI.js";
53
53
  import "./chunk-7OHJH7BF.js";
54
54
  import "./chunk-HNIAZN6U.js";
55
55
  import "./chunk-C3J4HVUN.js";
@@ -107,4 +107,4 @@ export {
107
107
  writeFile,
108
108
  writeFileSync
109
109
  };
110
- //# sourceMappingURL=fs-ZEAP6SYM.js.map
110
+ //# sourceMappingURL=fs-AOTVAHUT.js.map
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  hook
3
- } from "../chunk-U7XCB7LM.js";
4
- import "../chunk-4ATBZZ7Q.js";
5
- import "../chunk-RJ3A4X2R.js";
6
- import "../chunk-UPP43IHQ.js";
3
+ } from "../chunk-4SGOGIHQ.js";
4
+ import "../chunk-F2LFNR26.js";
5
+ import "../chunk-ZTNEDTAC.js";
6
+ import "../chunk-2Z5L5TZI.js";
7
7
  import "../chunk-7OHJH7BF.js";
8
8
  import "../chunk-HNIAZN6U.js";
9
9
  import "../chunk-C3J4HVUN.js";
@@ -31,9 +31,9 @@ var hook = async (options) => {
31
31
  }), args = options.argv;
32
32
  emitClaudeCodePluginHint();
33
33
  let [{ outputDebug }, analyticsMod, notificationsMod] = await Promise.all([
34
- import("../output-BOE7D3BZ.js"),
35
- import("../analytics-N7RZNZ7E.js"),
36
- import("../notifications-system-SQQO6LJW.js")
34
+ import("../output-Y2INREX2.js"),
35
+ import("../analytics-QHQHZXCP.js"),
36
+ import("../notifications-system-GBBRT4B6.js")
37
37
  ]);
38
38
  checkForNewVersionInBackground(), outputDebug(`Running command ${commandContent.command}`), await analyticsMod.startAnalytics({ commandContent, args, commandClass: options.Command }), notificationsMod.fetchNotificationsInBackground(options.Command.id);
39
39
  };
@@ -63,9 +63,9 @@ function findAlias(aliases) {
63
63
  }
64
64
  async function checkForNewVersionInBackground() {
65
65
  let [{ CLI_KIT_VERSION }, { isPreReleaseVersion }, { checkForNewVersion }] = await Promise.all([
66
- import("../version-EHF3PAN2.js"),
67
- import("../version-Q3TUYBAR.js"),
68
- import("../node-package-manager-WU3OX73T.js")
66
+ import("../version-ODXTDVIB.js"),
67
+ import("../version-5242JBZK.js"),
68
+ import("../node-package-manager-WUKOPNFK.js")
69
69
  ]), currentVersion = CLI_KIT_VERSION;
70
70
  isPreReleaseVersion(currentVersion) || checkForNewVersion("@shopify/cli", currentVersion, { cacheExpiryInHours: 24 });
71
71
  }
package/dist/index.js CHANGED
@@ -11,11 +11,11 @@ import {
11
11
  decodeToml,
12
12
  loadEnvironment,
13
13
  require_toml_patch
14
- } from "./chunk-QMQX3MT5.js";
14
+ } from "./chunk-5JYB62AT.js";
15
15
  import {
16
16
  setCurrentCommandId,
17
17
  showNotificationsIfNeeded
18
- } from "./chunk-THSPSZ2U.js";
18
+ } from "./chunk-ZKLW7LMH.js";
19
19
  import {
20
20
  ClientError,
21
21
  DevServerCore,
@@ -90,7 +90,7 @@ import {
90
90
  sha256,
91
91
  shopifyFetch,
92
92
  storeAdminUrl
93
- } from "./chunk-CJUIIULM.js";
93
+ } from "./chunk-PERCCMZB.js";
94
94
  import {
95
95
  setNextDeprecationDate
96
96
  } from "./chunk-MSED5ZFM.js";
@@ -99,13 +99,13 @@ import {
99
99
  } from "./chunk-LDYT4FTV.js";
100
100
  import {
101
101
  CLI_KIT_VERSION
102
- } from "./chunk-FSEXIENC.js";
102
+ } from "./chunk-YGBCHL4K.js";
103
103
  import "./chunk-G53O4PDO.js";
104
104
  import {
105
105
  globalCLIVersion,
106
106
  isPreReleaseVersion,
107
107
  localCLIVersion
108
- } from "./chunk-XZQD6FEL.js";
108
+ } from "./chunk-JEMOMVLA.js";
109
109
  import {
110
110
  UnknownPackageManagerError,
111
111
  addNPMDependenciesIfNeeded,
@@ -124,13 +124,13 @@ import {
124
124
  usesWorkspaces,
125
125
  versionSatisfies,
126
126
  writePackageJSON
127
- } from "./chunk-XPTHNPI4.js";
127
+ } from "./chunk-B4MEUQZW.js";
128
128
  import {
129
129
  LocalStorage,
130
130
  require_ajv,
131
131
  runAtMinimumInterval,
132
132
  serviceEnvironment
133
- } from "./chunk-2VQBQQJH.js";
133
+ } from "./chunk-TS6YLIAL.js";
134
134
  import {
135
135
  AbortController as AbortController2,
136
136
  Alert,
@@ -178,7 +178,7 @@ import {
178
178
  use_input_default,
179
179
  use_stdin_default,
180
180
  use_stdout_default
181
- } from "./chunk-ZOH5TKZV.js";
181
+ } from "./chunk-SGIGETET.js";
182
182
  import {
183
183
  execa,
184
184
  isStream,
@@ -191,19 +191,19 @@ import {
191
191
  require_signal_exit,
192
192
  stripFinalNewline,
193
193
  username
194
- } from "./chunk-HGTLZ6ZW.js";
194
+ } from "./chunk-67ZHQJFJ.js";
195
195
  import {
196
196
  addPublicMetadata,
197
197
  addSensitiveMetadata,
198
198
  createRuntimeMetadataContainer,
199
199
  runWithTimer
200
- } from "./chunk-YSB2L5XO.js";
200
+ } from "./chunk-GU2TODXD.js";
201
201
  import {
202
202
  AbortError,
203
203
  AbortSilentError,
204
204
  BugError,
205
205
  CancelExecution
206
- } from "./chunk-NFOBMXOQ.js";
206
+ } from "./chunk-CPI6XVRV.js";
207
207
  import "./chunk-CM6ALOD7.js";
208
208
  import {
209
209
  require_commonjs,
@@ -215,10 +215,10 @@ import "./chunk-JGGOQOPO.js";
215
215
  import "./chunk-OQ3KXXGH.js";
216
216
  import {
217
217
  waitForPostRunHookAndExit
218
- } from "./chunk-U7XCB7LM.js";
218
+ } from "./chunk-4SGOGIHQ.js";
219
219
  import {
220
220
  treeKill
221
- } from "./chunk-4ATBZZ7Q.js";
221
+ } from "./chunk-F2LFNR26.js";
222
222
  import {
223
223
  appendFile,
224
224
  asHumanFriendlyArray,
@@ -314,7 +314,7 @@ import {
314
314
  unstyled,
315
315
  writeFile,
316
316
  writeFileSync
317
- } from "./chunk-RJ3A4X2R.js";
317
+ } from "./chunk-ZTNEDTAC.js";
318
318
  import {
319
319
  codespacePortForwardingDomain,
320
320
  codespaceURL,
@@ -328,7 +328,7 @@ import {
328
328
  isUnitTest,
329
329
  isVerbose,
330
330
  themeKitAccessDomain
331
- } from "./chunk-UPP43IHQ.js";
331
+ } from "./chunk-2Z5L5TZI.js";
332
332
  import "./chunk-7OHJH7BF.js";
333
333
  import {
334
334
  isTruthy
@@ -203674,16 +203674,16 @@ var import_core2 = __toESM(require_lib()), BaseCommand = class extends import_co
203674
203674
  }
203675
203675
  async catch(error) {
203676
203676
  error.skipOclifErrorHandling = !0;
203677
- let { errorHandler } = await import("./error-handler-OPWDDXJP.js");
203677
+ let { errorHandler } = await import("./error-handler-TUY64CIU.js");
203678
203678
  return await errorHandler(error, this.config), import_core2.Errors.handle(error);
203679
203679
  }
203680
203680
  async init() {
203681
203681
  if (this.exitWithTimestampWhenEnvVariablePresent(), setCurrentCommandId(this.id ?? ""), !isDevelopment()) {
203682
- let { registerCleanBugsnagErrorsFromWithinPlugins } = await import("./error-handler-OPWDDXJP.js");
203682
+ let { registerCleanBugsnagErrorsFromWithinPlugins } = await import("./error-handler-TUY64CIU.js");
203683
203683
  await registerCleanBugsnagErrorsFromWithinPlugins(this.config);
203684
203684
  }
203685
203685
  await removeDuplicatedPlugins(this.config), this.showNpmFlagWarning();
203686
- let { showNotificationsIfNeeded: showNotificationsIfNeeded2 } = await import("./notifications-system-SQQO6LJW.js");
203686
+ let { showNotificationsIfNeeded: showNotificationsIfNeeded2 } = await import("./notifications-system-GBBRT4B6.js");
203687
203687
  return await showNotificationsIfNeeded2(), super.init();
203688
203688
  }
203689
203689
  // NPM creates an environment variable for every flag passed to a script.
@@ -203691,7 +203691,7 @@ var import_core2 = __toESM(require_lib()), BaseCommand = class extends import_co
203691
203691
  // and warns the user to use the `--` separator.
203692
203692
  showNpmFlagWarning() {
203693
203693
  let commandVariables = this.constructor;
203694
- Object.keys(commandVariables.flags || {}).map((key) => `npm_config_${underscore(key).replace(/^no_/, "")}`).some((flag) => process.env[flag] !== void 0) && import("./ui-WM75TA2X.js").then(({ renderWarning: renderWarning2 }) => {
203694
+ Object.keys(commandVariables.flags || {}).map((key) => `npm_config_${underscore(key).replace(/^no_/, "")}`).some((flag) => process.env[flag] !== void 0) && import("./ui-WQOJ2UKT.js").then(({ renderWarning: renderWarning2 }) => {
203695
203695
  renderWarning2({
203696
203696
  body: [
203697
203697
  "NPM scripts require an extra",
@@ -203740,7 +203740,7 @@ ${explanation} in non-interactive terminal environments, such as a CI environmen
203740
203740
  let flags = originalResult.flags, environmentsFileName = this.environmentsFilename();
203741
203741
  if (!environmentsFileName)
203742
203742
  return originalResult;
203743
- let { environmentFilePath } = await import("./environments-4UKGWAAJ.js"), environmentFileExists = await environmentFilePath(environmentsFileName, { from: flags.path }), environments = [];
203743
+ let { environmentFilePath } = await import("./environments-JM7VKVKQ.js"), environmentFileExists = await environmentFilePath(environmentsFileName, { from: flags.path }), environments = [];
203744
203744
  flags.environment && (environments = Array.isArray(flags.environment) ? flags.environment : [flags.environment]);
203745
203745
  let environmentSpecified = environments.length > 0;
203746
203746
  if (!environmentFileExists && !environmentSpecified || environmentSpecified && environments.length > 1)
@@ -203761,7 +203761,7 @@ ${explanation} in non-interactive terminal environments, such as a CI environmen
203761
203761
  * is specified it will try to load a default environment.
203762
203762
  */
203763
203763
  async loadEnvironmentForCommand(path4, environmentsFileName, specifiedEnvironment) {
203764
- let { loadEnvironment: loadEnvironment2 } = await import("./environments-4UKGWAAJ.js");
203764
+ let { loadEnvironment: loadEnvironment2 } = await import("./environments-JM7VKVKQ.js");
203765
203765
  return specifiedEnvironment ? { environment: await loadEnvironment2(specifiedEnvironment, environmentsFileName, { from: path4 }), isDefaultEnvironment: !1 } : { environment: await loadEnvironment2("default", environmentsFileName, { from: path4, silent: !0 }), isDefaultEnvironment: !0 };
203766
203766
  }
203767
203767
  };
@@ -203784,7 +203784,7 @@ function reportEnvironmentApplication(noDefaultsFlags, flagsWithEnvironments, en
203784
203784
  if (Object.keys(changes).length === 0)
203785
203785
  return;
203786
203786
  let items = Object.entries(changes).map(([name, value]) => `${name}: ${value}`);
203787
- import("./ui-WM75TA2X.js").then(({ renderInfo: renderInfo2 }) => {
203787
+ import("./ui-WQOJ2UKT.js").then(({ renderInfo: renderInfo2 }) => {
203788
203788
  renderInfo2({
203789
203789
  headline: ["Using applicable flags from", { userInput: environmentName }, "environment:"],
203790
203790
  body: [{ list: { items } }]
@@ -203821,7 +203821,7 @@ async function removeDuplicatedPlugins(config2) {
203821
203821
  let plugins = Array.from(config2.plugins.values()), bundlePlugins = ["@shopify/app", "@shopify/plugin-cloudflare"], pluginsToRemove = plugins.filter((plugin) => bundlePlugins.includes(plugin.name));
203822
203822
  if (pluginsToRemove.length > 0) {
203823
203823
  let commandsToRun = pluginsToRemove.map((plugin) => ` - shopify plugins remove ${plugin.name}`).join(`
203824
- `), { renderWarning: renderWarning2 } = await import("./ui-WM75TA2X.js");
203824
+ `), { renderWarning: renderWarning2 } = await import("./ui-WQOJ2UKT.js");
203825
203825
  renderWarning2({
203826
203826
  headline: `Unsupported plugins detected: ${pluginsToRemove.map((plugin) => plugin.name).join(", ")}`,
203827
203827
  body: [
@@ -203843,13 +203843,13 @@ init_cjs_shims();
203843
203843
  init_cjs_shims();
203844
203844
  import { fileURLToPath as fileURLToPath2 } from "node:url";
203845
203845
  async function launchCLI(options) {
203846
- let { isDevelopment: isDevelopment2 } = await import("./local-A2UFPWGA.js"), { ShopifyConfig } = await import("./custom-oclif-loader-HTLL62HO.js"), oclifModule = await import("./lib-XCYUJYSO.js"), { run, flush, Errors: Errors2, settings } = oclifModule.default ?? oclifModule;
203846
+ let { isDevelopment: isDevelopment2 } = await import("./local-VTOHZRT2.js"), { ShopifyConfig } = await import("./custom-oclif-loader-HTLL62HO.js"), oclifModule = await import("./lib-XCYUJYSO.js"), { run, flush, Errors: Errors2, settings } = oclifModule.default ?? oclifModule;
203847
203847
  isDevelopment2() && (settings.debug = !0);
203848
203848
  try {
203849
203849
  let config2 = new ShopifyConfig({ root: fileURLToPath2(options.moduleURL) });
203850
203850
  await config2.load(), options.lazyCommandLoader && config2.setLazyCommandLoader(options.lazyCommandLoader), await run(options.argv, config2), await flush();
203851
203851
  } catch (error) {
203852
- let { errorHandler } = await import("./error-handler-OPWDDXJP.js");
203852
+ let { errorHandler } = await import("./error-handler-TUY64CIU.js");
203853
203853
  return await errorHandler(error), Errors2.handle(error);
203854
203854
  }
203855
203855
  }
@@ -203859,7 +203859,7 @@ var import_core3 = __toESM(require_lib());
203859
203859
  async function exitIfOldNodeVersion(versions2 = process.versions) {
203860
203860
  let nodeVersion = versions2.node, nodeMajorVersion = Number(nodeVersion.split(".")[0]);
203861
203861
  if (nodeMajorVersion < 22) {
203862
- let { renderError: renderError2 } = await import("./ui-WM75TA2X.js");
203862
+ let { renderError: renderError2 } = await import("./ui-WQOJ2UKT.js");
203863
203863
  renderError2({
203864
203864
  headline: "Upgrade to a supported Node version now.",
203865
203865
  body: [
@@ -203886,7 +203886,7 @@ async function runCLI(options, launchCLI2 = launchCLI, argv = process.argv, env2
203886
203886
  return setupEnvironmentVariables(options, argv, env2), options.runInCreateMode && await addInitToArgvWhenRunningCreateCLI(options, argv), forceNoColor(argv, env2), await exitIfOldNodeVersion(versions2), launchCLI2({ moduleURL: options.moduleURL, lazyCommandLoader: options.lazyCommandLoader });
203887
203887
  }
203888
203888
  async function addInitToArgvWhenRunningCreateCLI(options, argv = process.argv) {
203889
- let { findUpAndReadPackageJson: findUpAndReadPackageJson2 } = await import("./node-package-manager-WU3OX73T.js"), { moduleDirectory: moduleDirectory2 } = await import("./path-2WA5R6GG.js"), name = (await findUpAndReadPackageJson2(moduleDirectory2(options.moduleURL))).content.name.replace("@shopify/create-", "");
203889
+ let { findUpAndReadPackageJson: findUpAndReadPackageJson2 } = await import("./node-package-manager-WUKOPNFK.js"), { moduleDirectory: moduleDirectory2 } = await import("./path-2WA5R6GG.js"), name = (await findUpAndReadPackageJson2(moduleDirectory2(options.moduleURL))).content.name.replace("@shopify/create-", "");
203890
203890
  if (argv.findIndex((arg) => arg.includes("init")) === -1) {
203891
203891
  let initIndex2 = argv.findIndex((arg) => arg.match(new RegExp(`bin(\\/|\\\\)+(create-${name}|dev|run)`))) + 1;
203892
203892
  argv.splice(initIndex2, 0, "init");
@@ -215084,6 +215084,51 @@ async function removeGitRemote(directory, remoteName = "origin") {
215084
215084
  await gitCommand(["remote", "remove", remoteName], directory);
215085
215085
  }
215086
215086
 
215087
+ // ../cli-kit/dist/public/node/github.js
215088
+ init_cjs_shims();
215089
+ var GitHubClientError = class extends Error {
215090
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
215091
+ constructor(url, statusCode, bodyJson) {
215092
+ super(`The request to GitHub API URL ${url} failed with status code ${statusCode} and the following error message: ${bodyJson.message}`);
215093
+ }
215094
+ };
215095
+ async function getLatestGitHubRelease(owner, repo, options = { filter: () => !0 }) {
215096
+ outputDebug(outputContent`Getting the latest release of GitHub repository ${owner}/${repo}...`);
215097
+ let url = `https://api.github.com/repos/${owner}/${repo}/releases`, fetchResult = await fetch2(url);
215098
+ try {
215099
+ let responseText = await fetchResult.text(), jsonBody = JSON.parse(responseText);
215100
+ if (fetchResult.status !== 200)
215101
+ throw new GitHubClientError(url, fetchResult.status, jsonBody);
215102
+ return jsonBody.find(options.filter);
215103
+ } catch (error) {
215104
+ throw error instanceof SyntaxError ? new AbortError(`Received invalid response from GitHub API (HTTP ${fetchResult.status}).`, "The response could not be parsed as JSON. The service may be temporarily unavailable. Please try again.") : error;
215105
+ }
215106
+ }
215107
+ function parseGitHubRepositoryReference(reference) {
215108
+ let url = new URL(reference), branch = url.hash ? url.hash.slice(1) : void 0, [_2, user, repo, ...repoPath] = url.pathname.split("/"), filePath = repoPath.length > 0 ? repoPath.join("/") : void 0;
215109
+ return {
215110
+ baseURL: `${url.origin}/${user}/${repo}`,
215111
+ branch,
215112
+ filePath
215113
+ };
215114
+ }
215115
+ async function downloadGitHubRelease(repo, version, assetName, targetPath) {
215116
+ let url = `https://github.com/${repo}/releases/download/${version}/${assetName}`;
215117
+ return runWithTimer("cmd_all_timing_network_ms")(async () => {
215118
+ outputDebug(outputContent`Downloading ${outputToken.link(assetName, url)}`), await inTemporaryDirectory(async (tmpDir) => {
215119
+ let tempPath = joinPath(tmpDir, assetName), response;
215120
+ try {
215121
+ if (response = await fetch2(url, void 0, "slow-request"), !response.ok)
215122
+ throw new AbortError(`Failed to download ${assetName}: ${response.statusText}`);
215123
+ } catch (error) {
215124
+ throw new AbortError(`Failed to download ${assetName}: ${error instanceof Error ? error.message : "unknown error"}`);
215125
+ }
215126
+ let buffer = await response.arrayBuffer();
215127
+ await writeFile(tempPath, Buffer.from(buffer)), await chmod(tempPath, 493), await mkdir(dirname(targetPath)), await moveFile(tempPath, targetPath);
215128
+ }), outputDebug(outputContent`${outputToken.successIcon()} Successfully downloaded ${outputToken.path(targetPath)}`);
215129
+ });
215130
+ }
215131
+
215087
215132
  // ../theme/dist/cli/services/init.js
215088
215133
  var SKELETON_THEME_URL = "https://github.com/Shopify/skeleton-theme.git", AI_INSTRUCTIONS_REPO_URL = "https://github.com/Shopify/theme-liquid-docs.git", SUPPORTED_AI_INSTRUCTIONS = {
215089
215134
  all: "All",
@@ -215097,6 +215142,14 @@ async function cloneRepo(repoUrl, destination) {
215097
215142
  async function cloneRepoAndCheckoutLatestTag(repoUrl, destination) {
215098
215143
  await downloadRepository(repoUrl, destination, !0);
215099
215144
  }
215145
+ async function cloneLatestStableSkeletonTheme(destination) {
215146
+ let release2 = await getLatestGitHubRelease("Shopify", "skeleton-theme", {
215147
+ filter: (release3) => !release3.draft && !release3.prerelease
215148
+ });
215149
+ if (!release2)
215150
+ throw new AbortError("Couldn't find a stable Skeleton theme release");
215151
+ await downloadRepository(`${SKELETON_THEME_URL}#${release2.tag_name}`, destination);
215152
+ }
215100
215153
  async function downloadRepository(repoUrl, destination, latestTag) {
215101
215154
  await renderTasks([
215102
215155
  {
@@ -215106,8 +215159,8 @@ async function downloadRepository(repoUrl, destination, latestTag) {
215106
215159
  repoUrl,
215107
215160
  destination,
215108
215161
  latestTag,
215109
- shallow: !0
215110
- }), await removeGitRemote(destination), repoUrl === SKELETON_THEME_URL && (await Promise.all(Object.keys(SUPPORTED_AI_INSTRUCTIONS).map(async (key) => removeDirectory(joinPath(destination, `.${key}`)))), await removeDirectory(joinPath(destination, ".git")));
215162
+ shallow: !latestTag
215163
+ }), await removeGitRemote(destination), repoUrl.split("#")[0] === SKELETON_THEME_URL && (await Promise.all(Object.keys(SUPPORTED_AI_INSTRUCTIONS).map(async (key) => removeDirectory(joinPath(destination, `.${key}`)))), await removeDirectory(joinPath(destination, ".git")));
215111
215164
  }
215112
215165
  }
215113
215166
  ]);
@@ -215212,15 +215265,22 @@ var Init = class extends ThemeCommand {
215212
215265
  };
215213
215266
  static multiEnvironmentsFlags = null;
215214
215267
  async command(flags, _adminSession, _multiEnvironment, args) {
215215
- let name = args.name ?? await this.promptName(flags.path), repoUrl = flags["clone-url"], destination = joinPath(flags.path, name);
215216
- if (flags.latest ? await cloneRepoAndCheckoutLatestTag(repoUrl, destination) : await cloneRepo(repoUrl, destination), !terminalSupportsPrompting())
215268
+ let inputDisabled = !process.stdin.isTTY, name = args.name ?? await this.promptName(flags.path, inputDisabled), repoUrl = flags["clone-url"], destination = joinPath(flags.path, name), latestRelease = flags.latest;
215269
+ if (!latestRelease && repoUrl === SKELETON_THEME_URL && (latestRelease = inputDisabled || !terminalSupportsPrompting() || await renderSelectPrompt({
215270
+ message: "Which version of Skeleton theme would you like to use?",
215271
+ choices: [
215272
+ { label: "Latest stable release", value: "stable" },
215273
+ { label: "Upstream (new features may not be available on your store)", value: "upstream" }
215274
+ ],
215275
+ defaultValue: "stable"
215276
+ }) === "stable"), latestRelease && repoUrl === SKELETON_THEME_URL ? await cloneLatestStableSkeletonTheme(destination) : latestRelease ? await cloneRepoAndCheckoutLatestTag(repoUrl, destination) : await cloneRepo(repoUrl, destination), inputDisabled || !terminalSupportsPrompting())
215217
215277
  return;
215218
215278
  let aiInstruction = await promptAIInstruction();
215219
215279
  aiInstruction && await createAIInstructions(destination, aiInstruction);
215220
215280
  }
215221
- async promptName(directory) {
215281
+ async promptName(directory, inputDisabled = !1) {
215222
215282
  let defaultName = await generateRandomNameForSubdirectory({ suffix: "theme", directory, family: "creative" });
215223
- return renderTextPrompt({ message: "Name of the new theme", defaultValue: defaultName });
215283
+ return inputDisabled || !terminalSupportsPrompting() ? defaultName : renderTextPrompt({ message: "Name of the new theme", defaultValue: defaultName });
215224
215284
  }
215225
215285
  };
215226
215286
 
@@ -216967,7 +217027,7 @@ init_cjs_shims();
216967
217027
 
216968
217028
  // ../cli-kit/dist/public/node/liquid.js
216969
217029
  init_cjs_shims();
216970
- var import_liquidjs = __toESM(require_liquid_node());
217030
+ var import_liquidjs = __toESM(require_liquid_node(), 1);
216971
217031
  function renderLiquidTemplate(templateContent, data) {
216972
217032
  let engine = new import_liquidjs.Liquid();
216973
217033
  return engine.render(engine.parse(templateContent), data);
@@ -219595,35 +219655,6 @@ async function getAnalyticsTunnelType(options, tunnelUrl) {
219595
219655
 
219596
219656
  // ../app/dist/cli/utilities/mkcert.js
219597
219657
  init_cjs_shims();
219598
-
219599
- // ../cli-kit/dist/public/node/github.js
219600
- init_cjs_shims();
219601
- function parseGitHubRepositoryReference(reference) {
219602
- let url = new URL(reference), branch = url.hash ? url.hash.slice(1) : void 0, [_2, user, repo, ...repoPath] = url.pathname.split("/"), filePath = repoPath.length > 0 ? repoPath.join("/") : void 0;
219603
- return {
219604
- baseURL: `${url.origin}/${user}/${repo}`,
219605
- branch,
219606
- filePath
219607
- };
219608
- }
219609
- async function downloadGitHubRelease(repo, version, assetName, targetPath) {
219610
- let url = `https://github.com/${repo}/releases/download/${version}/${assetName}`;
219611
- return runWithTimer("cmd_all_timing_network_ms")(async () => {
219612
- outputDebug(outputContent`Downloading ${outputToken.link(assetName, url)}`), await inTemporaryDirectory(async (tmpDir) => {
219613
- let tempPath = joinPath(tmpDir, assetName), response;
219614
- try {
219615
- if (response = await fetch2(url, void 0, "slow-request"), !response.ok)
219616
- throw new AbortError(`Failed to download ${assetName}: ${response.statusText}`);
219617
- } catch (error) {
219618
- throw new AbortError(`Failed to download ${assetName}: ${error instanceof Error ? error.message : "unknown error"}`);
219619
- }
219620
- let buffer = await response.arrayBuffer();
219621
- await writeFile(tempPath, Buffer.from(buffer)), await chmod(tempPath, 493), await mkdir(dirname(targetPath)), await moveFile(tempPath, targetPath);
219622
- }), outputDebug(outputContent`${outputToken.successIcon()} Successfully downloaded ${outputToken.path(targetPath)}`);
219623
- });
219624
- }
219625
-
219626
- // ../app/dist/cli/utilities/mkcert.js
219627
219658
  var import_which = __toESM(require_lib4(), 1);
219628
219659
  var MKCERT_VERSION = "v1.4.4", MKCERT_REPO = "FiloSottile/mkcert", mkcertSnippet = outputToken.genericShellCommand("mkcert");
219629
219660
  async function getMkcertPath(dotShopifyPath, env2, platform2, arch) {
@@ -4,8 +4,8 @@ import {
4
4
  inferPackageManagerForGlobalCLI,
5
5
  installGlobalCLIPrompt,
6
6
  installGlobalShopifyCLI
7
- } from "./chunk-RJ3A4X2R.js";
8
- import "./chunk-UPP43IHQ.js";
7
+ } from "./chunk-ZTNEDTAC.js";
8
+ import "./chunk-2Z5L5TZI.js";
9
9
  import "./chunk-7OHJH7BF.js";
10
10
  import "./chunk-HNIAZN6U.js";
11
11
  import "./chunk-C3J4HVUN.js";
@@ -19,4 +19,4 @@ export {
19
19
  installGlobalCLIPrompt,
20
20
  installGlobalShopifyCLI
21
21
  };
22
- //# sourceMappingURL=is-global-FYEORJBG.js.map
22
+ //# sourceMappingURL=is-global-2XE72BX5.js.map
@@ -20,7 +20,7 @@ import {
20
20
  macAddress,
21
21
  opentelemetryDomain,
22
22
  themeToken
23
- } from "./chunk-UPP43IHQ.js";
23
+ } from "./chunk-2Z5L5TZI.js";
24
24
  import "./chunk-HNIAZN6U.js";
25
25
  import "./chunk-C3J4HVUN.js";
26
26
  import "./chunk-3XNI6LP4.js";
@@ -47,4 +47,4 @@ export {
47
47
  opentelemetryDomain,
48
48
  themeToken
49
49
  };
50
- //# sourceMappingURL=local-A2UFPWGA.js.map
50
+ //# sourceMappingURL=local-VTOHZRT2.js.map
@@ -5,8 +5,8 @@ import {
5
5
  getAllPublicMetadata,
6
6
  getAllSensitiveMetadata,
7
7
  runWithTimer
8
- } from "./chunk-YSB2L5XO.js";
9
- import "./chunk-UPP43IHQ.js";
8
+ } from "./chunk-GU2TODXD.js";
9
+ import "./chunk-2Z5L5TZI.js";
10
10
  import "./chunk-HNIAZN6U.js";
11
11
  import "./chunk-C3J4HVUN.js";
12
12
  import "./chunk-3XNI6LP4.js";
@@ -18,4 +18,4 @@ export {
18
18
  getAllSensitiveMetadata,
19
19
  runWithTimer
20
20
  };
21
- //# sourceMappingURL=metadata-WWELAOUA.js.map
21
+ //# sourceMappingURL=metadata-PNCC4F25.js.map
@@ -30,21 +30,21 @@ import {
30
30
  versionSatisfies,
31
31
  writePackageJSON,
32
32
  yarnLockfile
33
- } from "./chunk-XPTHNPI4.js";
34
- import "./chunk-2VQBQQJH.js";
35
- import "./chunk-ZOH5TKZV.js";
36
- import "./chunk-HGTLZ6ZW.js";
37
- import "./chunk-YSB2L5XO.js";
38
- import "./chunk-NFOBMXOQ.js";
33
+ } from "./chunk-B4MEUQZW.js";
34
+ import "./chunk-TS6YLIAL.js";
35
+ import "./chunk-SGIGETET.js";
36
+ import "./chunk-67ZHQJFJ.js";
37
+ import "./chunk-GU2TODXD.js";
38
+ import "./chunk-CPI6XVRV.js";
39
39
  import "./chunk-CM6ALOD7.js";
40
40
  import "./chunk-E43EDJOG.js";
41
41
  import "./chunk-ODCXYGJ2.js";
42
42
  import "./chunk-LBXDGVFS.js";
43
43
  import "./chunk-JGGOQOPO.js";
44
44
  import "./chunk-OQ3KXXGH.js";
45
- import "./chunk-4ATBZZ7Q.js";
46
- import "./chunk-RJ3A4X2R.js";
47
- import "./chunk-UPP43IHQ.js";
45
+ import "./chunk-F2LFNR26.js";
46
+ import "./chunk-ZTNEDTAC.js";
47
+ import "./chunk-2Z5L5TZI.js";
48
48
  import "./chunk-7OHJH7BF.js";
49
49
  import "./chunk-HNIAZN6U.js";
50
50
  import "./chunk-C3J4HVUN.js";
@@ -85,4 +85,4 @@ export {
85
85
  writePackageJSON,
86
86
  yarnLockfile
87
87
  };
88
- //# sourceMappingURL=node-package-manager-WU3OX73T.js.map
88
+ //# sourceMappingURL=node-package-manager-WUKOPNFK.js.map