@shopify/create-app 4.5.2 → 4.6.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 (50) hide show
  1. package/dist/{analytics-FXDS645P.js → analytics-PQQTY5ME.js} +14 -14
  2. package/dist/{analytics-S4SMDD46.js → analytics-ZRZM2AYT.js} +14 -14
  3. package/dist/{chokidar-JYHMNWDF.js → chokidar-OCE4HB5W.js} +2 -2
  4. package/dist/chunk-3WICPDUO.js +21746 -0
  5. package/dist/{chunk-MRVSRQ5W.js → chunk-4PYTNDQV.js} +13 -18
  6. package/dist/{chunk-GDVNJLIG.js → chunk-6OPDNYDK.js} +10 -15
  7. package/dist/{chunk-RJWAPUKM.js → chunk-74EXPUYI.js} +628 -21971
  8. package/dist/{chunk-HISALD2J.js → chunk-FACLWQ7N.js} +5 -5
  9. package/dist/{chunk-MCW4ES3V.js → chunk-FZECX65P.js} +10 -10
  10. package/dist/{chunk-GEEDJI25.js → chunk-H5PKPIMG.js} +16 -16
  11. package/dist/{chunk-B2ZXFZCY.js → chunk-HLLMTZ5K.js} +2 -2
  12. package/dist/{chunk-KJGNF64X.js → chunk-ICRN3QWA.js} +3 -3
  13. package/dist/{chunk-KWG6VAVE.js → chunk-K5NLRHZR.js} +37 -28
  14. package/dist/{chunk-BONVUA65.js → chunk-MXBSTTRA.js} +3 -9
  15. package/dist/{chunk-MSETDX6T.js → chunk-OGTZPCND.js} +11 -12
  16. package/dist/{chunk-TGBPX4PY.js → chunk-REKC23EA.js} +2 -2
  17. package/dist/{chunk-V2YWOBZ6.js → chunk-RQLHLRL7.js} +9 -8
  18. package/dist/{chunk-HABWQC37.js → chunk-SI4LHZYW.js} +167 -16
  19. package/dist/{chunk-OE3FSIHW.js → chunk-UFLX7QDP.js} +2 -2
  20. package/dist/{chunk-XR7ELYLE.js → chunk-WP465C6S.js} +13 -5
  21. package/dist/{conf-store-U47RHH7F.js → conf-store-3CEUJODJ.js} +8 -8
  22. package/dist/{custom-oclif-loader-7BTLNXYR.js → custom-oclif-loader-MNCB3QFM.js} +2 -2
  23. package/dist/{deprecations-EXDNIO7X.js → deprecations-IRDS6EBX.js} +10 -10
  24. package/dist/environments-M2APKG2S.js +26 -0
  25. package/dist/{error-handler-NPN6TP4N.js → error-handler-KHJ2WGBH.js} +14 -14
  26. package/dist/{fs-KQ7D45P4.js → fs-4DAJNN2N.js} +5 -5
  27. package/dist/hooks/postrun.js +6 -6
  28. package/dist/hooks/prerun.js +6 -6
  29. package/dist/index.js +6299 -8141
  30. package/dist/index.test.js +54 -45
  31. package/dist/{is-global-4TFBXA6F.js → is-global-4PAQ722P.js} +5 -5
  32. package/dist/{latest-version-6X5NXQEO.js → latest-version-HW6YILV7.js} +20 -19
  33. package/dist/{lib-NKDE2QNY.js → lib-SEAHPNPA.js} +2 -2
  34. package/dist/{local-XEWL77WP.js → local-UPSZCOOL.js} +2 -4
  35. package/dist/{metadata-5SJEO2RF.js → metadata-R5WZESAQ.js} +3 -3
  36. package/dist/{node-package-manager-MI6ZJ7MA.js → node-package-manager-ZGOPCA42.js} +12 -12
  37. package/dist/{notifications-system-JPDTXFT5.js → notifications-system-SVQ6LB65.js} +15 -15
  38. package/dist/out-LBNH64BP.js +7 -0
  39. package/dist/{output-RCLOYTHC.js → output-3XHG2ZX2.js} +5 -5
  40. package/dist/{system-4JFNY3SE.js → system-6AUYCFL4.js} +10 -10
  41. package/dist/tsconfig.tsbuildinfo +1 -1
  42. package/dist/{ui-KAGET7XQ.js → ui-BZFIOKVT.js} +10 -10
  43. package/dist/{upgrade-2XD477LW.js → upgrade-AYYDG5HX.js} +16 -16
  44. package/dist/{version-4JYVUV7D.js → version-2UJ37EL3.js} +11 -11
  45. package/dist/{version-4U52DFWP.js → version-NKNIJ276.js} +2 -2
  46. package/oclif.manifest.json +9 -1
  47. package/package.json +4 -4
  48. package/dist/chunk-UC7ROXAW.js +0 -264
  49. package/dist/environments-W7S7754G.js +0 -26
  50. package/dist/out-B5JNCU2S.js +0 -7
@@ -2,7 +2,7 @@ import {
2
2
  isTruthy,
3
3
  isUnitTest,
4
4
  isVerbose
5
- } from "./chunk-BONVUA65.js";
5
+ } from "./chunk-MXBSTTRA.js";
6
6
  import {
7
7
  require_has_flag
8
8
  } from "./chunk-7OHJH7BF.js";
@@ -20,7 +20,7 @@ import {
20
20
  } from "./chunk-C3J4HVUN.js";
21
21
  import {
22
22
  require_out
23
- } from "./chunk-OE3FSIHW.js";
23
+ } from "./chunk-UFLX7QDP.js";
24
24
  import {
25
25
  __commonJS,
26
26
  __esm,
@@ -22640,10 +22640,10 @@ var require_isArrayLikeObject = __commonJS({
22640
22640
  var require_difference = __commonJS({
22641
22641
  "../../node_modules/.pnpm/lodash@4.18.1/node_modules/lodash/difference.js"(exports, module) {
22642
22642
  init_cjs_shims();
22643
- var baseDifference = require_baseDifference(), baseFlatten = require_baseFlatten(), baseRest = require_baseRest(), isArrayLikeObject = require_isArrayLikeObject(), difference2 = baseRest(function(array, values) {
22643
+ var baseDifference = require_baseDifference(), baseFlatten = require_baseFlatten(), baseRest = require_baseRest(), isArrayLikeObject = require_isArrayLikeObject(), difference = baseRest(function(array, values) {
22644
22644
  return isArrayLikeObject(array) ? baseDifference(array, baseFlatten(values, 1, isArrayLikeObject, !0)) : [];
22645
22645
  });
22646
- module.exports = difference2;
22646
+ module.exports = difference;
22647
22647
  }
22648
22648
  });
22649
22649
 
@@ -25227,17 +25227,17 @@ function currentProcessIsGlobal(argv = process.argv) {
25227
25227
  }
25228
25228
  }
25229
25229
  async function installGlobalShopifyCLI(packageManager) {
25230
- let { outputInfo: outputInfo2 } = await import("./output-RCLOYTHC.js"), { exec: exec3 } = await import("./system-4JFNY3SE.js"), args = packageManager === "yarn" ? ["global", "add", "@shopify/cli@latest"] : ["install", "-g", "@shopify/cli@latest"];
25230
+ let { outputInfo: outputInfo2 } = await import("./output-3XHG2ZX2.js"), { exec: exec3 } = await import("./system-6AUYCFL4.js"), args = packageManager === "yarn" ? ["global", "add", "@shopify/cli@latest"] : ["install", "-g", "@shopify/cli@latest"];
25231
25231
  outputInfo2(`Running ${packageManager} ${args.join(" ")}...`), await exec3(packageManager, args, { stdio: "inherit" });
25232
25232
  }
25233
25233
  async function installGlobalCLIPrompt() {
25234
- let { terminalSupportsPrompting } = await import("./system-4JFNY3SE.js");
25234
+ let { terminalSupportsPrompting } = await import("./system-6AUYCFL4.js");
25235
25235
  if (!terminalSupportsPrompting())
25236
25236
  return { install: !1, alreadyInstalled: !1 };
25237
- let { globalCLIVersion } = await import("./version-4JYVUV7D.js");
25237
+ let { globalCLIVersion } = await import("./version-2UJ37EL3.js");
25238
25238
  if (await globalCLIVersion())
25239
25239
  return { install: !1, alreadyInstalled: !0 };
25240
- let { renderSelectPrompt } = await import("./ui-KAGET7XQ.js");
25240
+ let { renderSelectPrompt } = await import("./ui-BZFIOKVT.js");
25241
25241
  return { install: await renderSelectPrompt({
25242
25242
  message: "We recommend installing Shopify CLI globally in your system. Would you like to install it now?",
25243
25243
  choices: [
@@ -25771,9 +25771,9 @@ var ContentToken = class {
25771
25771
  }
25772
25772
  }, LinesDiffContentToken = class extends ContentToken {
25773
25773
  output() {
25774
- return this.value.map((part) => part.added ? part.value.split(/\n/).filter((line) => line !== "").map((line) => source_default.green(`+ ${line}
25774
+ return this.value.flatMap((part) => part.added ? part.value.split(/\n/).filter((line) => line !== "").map((line) => source_default.green(`+ ${line}
25775
25775
  `)) : part.removed ? part.value.split(/\n/).filter((line) => line !== "").map((line) => source_default.magenta(`- ${line}
25776
- `)) : part.value).flat();
25776
+ `)) : part.value);
25777
25777
  }
25778
25778
  }, ColorContentToken = class extends ContentToken {
25779
25779
  constructor(value, color) {
@@ -31500,15 +31500,12 @@ function uniq(array) {
31500
31500
  function uniqBy(array, iteratee) {
31501
31501
  return (0, import_uniqBy.default)(array, iteratee);
31502
31502
  }
31503
- function difference(array, ...values) {
31504
- return (0, import_difference.default)(array, ...values);
31505
- }
31506
31503
  function asHumanFriendlyArray(items) {
31507
31504
  return items.length < 2 ? items : items.reduce((acc, item, index) => (index === items.length - 1 ? acc.push("and") : index !== 0 && acc.push(", "), acc.push(item), acc), []);
31508
31505
  }
31509
31506
 
31510
31507
  // ../cli-kit/dist/public/common/string.js
31511
- var import_change_case = __toESM(require_dist15(), 1), SAFE_RANDOM_BUSINESS_ADJECTIVES = [
31508
+ var import_change_case = __toESM(require_dist15()), SAFE_RANDOM_BUSINESS_ADJECTIVES = [
31512
31509
  "commercial",
31513
31510
  "profitable",
31514
31511
  "amortizable",
@@ -33127,7 +33124,7 @@ async function generateRandomNameForSubdirectory(options) {
33127
33124
  return await fileExists(randomDirectoryPath) ? generateRandomNameForSubdirectory(options) : generated;
33128
33125
  }
33129
33126
  async function glob(pattern, options) {
33130
- let { default: fastGlob } = await import("./out-B5JNCU2S.js"), overridenOptions = options;
33127
+ let { default: fastGlob } = await import("./out-LBNH64BP.js"), overridenOptions = options;
33131
33128
  return options?.dot == null && (overridenOptions = { ...options, dot: !0 }), fastGlob(pattern, overridenOptions);
33132
33129
  }
33133
33130
  function globSync(pattern, options) {
@@ -33220,7 +33217,6 @@ export {
33220
33217
  getArrayContainsDuplicates,
33221
33218
  uniq,
33222
33219
  uniqBy,
33223
- difference,
33224
33220
  asHumanFriendlyArray,
33225
33221
  tslib_es6_exports,
33226
33222
  init_tslib_es6,
@@ -33242,7 +33238,6 @@ export {
33242
33238
  timeAgo,
33243
33239
  require_graceful_fs,
33244
33240
  require_balanced_match,
33245
- require_brace_expansion,
33246
33241
  stripUpPath,
33247
33242
  inTemporaryDirectory,
33248
33243
  tempDirectory,
@@ -33431,4 +33426,4 @@ react-reconciler/cjs/react-reconciler.development.js:
33431
33426
  * LICENSE file in the root directory of this source tree.
33432
33427
  *)
33433
33428
  */
33434
- //# sourceMappingURL=chunk-MRVSRQ5W.js.map
33429
+ //# sourceMappingURL=chunk-4PYTNDQV.js.map
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  outputDebug
3
- } from "./chunk-MRVSRQ5W.js";
3
+ } from "./chunk-4PYTNDQV.js";
4
4
  import {
5
5
  init_cjs_shims
6
6
  } from "./chunk-3XNI6LP4.js";
@@ -15,19 +15,17 @@ function treeKill(pid = process.pid, killSignal = "SIGTERM", killRoot = !0, call
15
15
  }
16
16
  function adaptedTreeKill(pid, killSignal, killRoot, callback) {
17
17
  let rootPid = typeof pid == "number" ? pid.toString() : pid;
18
- if (!/^\d+$/.test(rootPid))
19
- if (callback) {
20
- callback(new Error("pid must be a number"));
21
- return;
22
- } else
23
- throw new Error("pid must be a number");
18
+ if (!/^\d+$/.test(rootPid)) {
19
+ callback(new Error("pid must be a number"));
20
+ return;
21
+ }
24
22
  let tree = {};
25
23
  tree[rootPid] = [];
26
24
  let pidsToProcess = /* @__PURE__ */ new Set();
27
25
  switch (pidsToProcess.add(rootPid), process.platform) {
28
26
  case "win32": {
29
27
  spawn("taskkill", ["/pid", rootPid, "/T", "/F"]).on("close", (code) => {
30
- callback && (code === 0 ? callback() : callback(new Error(`taskkill exited with code ${code}`)));
28
+ code === 0 ? callback() : callback(new Error(`taskkill exited with code ${code}`));
31
29
  });
32
30
  break;
33
31
  }
@@ -56,13 +54,10 @@ function killAll(tree, killSignal, rootPid, killRoot, callback) {
56
54
  }), pid === rootPid && killRoot && !killed.has(pid) && (killPid(pid, killSignal), killed.add(pid));
57
55
  });
58
56
  } catch (err) {
59
- if (callback) {
60
- callback(err);
61
- return;
62
- } else
63
- throw err;
57
+ callback(err);
58
+ return;
64
59
  }
65
- callback && callback();
60
+ callback();
66
61
  }
67
62
  function killPid(pid, killSignal) {
68
63
  try {
@@ -101,4 +96,4 @@ function buildProcessTree(parentPid, tree, pidsToProcess, spawnChildProcessesLis
101
96
  export {
102
97
  treeKill
103
98
  };
104
- //# sourceMappingURL=chunk-GDVNJLIG.js.map
99
+ //# sourceMappingURL=chunk-6OPDNYDK.js.map