@shopify/create-app 3.61.2 → 3.62.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 (71) hide show
  1. package/dist/{chunk-TEIUSMQF.js → chunk-3C7VBPKV.js} +4 -3
  2. package/dist/{chunk-QTBH3GO6.js → chunk-B62HZLMM.js} +3 -2
  3. package/dist/{chunk-5VLFIRJZ.js → chunk-BKY7FLON.js} +6 -5
  4. package/dist/{chunk-5TIUXWJI.js → chunk-CSUGYG4O.js} +9 -8
  5. package/dist/{chunk-DEIGDWGB.js → chunk-CUZDIE7U.js} +3 -2
  6. package/dist/{chunk-HTYJDJRZ.js → chunk-DL3MKXVR.js} +2 -1
  7. package/dist/{chunk-DCYRMEAR.js → chunk-E3R2QNZH.js} +3 -2
  8. package/dist/{chunk-EXKYFA3Q.js → chunk-E4HW5M5H.js} +8 -7
  9. package/dist/{chunk-LKGDG6WW.js → chunk-FMKVOTQK.js} +2 -1
  10. package/dist/{chunk-LUP5VDI4.js → chunk-GJPZCXGT.js} +3 -2
  11. package/dist/{chunk-XRBC4UM7.js → chunk-H7PE6UQQ.js} +5 -4
  12. package/dist/{chunk-6MVE3OZ2.js → chunk-I642G37M.js} +12 -11
  13. package/dist/{chunk-FBB6KUZG.js → chunk-LSCXQWNO.js} +2 -1
  14. package/dist/{chunk-UVY6LL5H.js → chunk-M2VKB6RG.js} +2 -1
  15. package/dist/{chunk-K5EEGEVV.js → chunk-MCED27CG.js} +2 -1
  16. package/dist/{chunk-B2QBH7MN.js → chunk-MPBVJXAB.js} +11 -10
  17. package/dist/{chunk-6PWOAHEA.js → chunk-NORDGBTQ.js} +14 -12
  18. package/dist/{chunk-R5KQZMEG.js → chunk-SAO7C4LP.js} +4 -3
  19. package/dist/{chunk-G6FN5VUE.js → chunk-STRDP5MF.js} +21 -3
  20. package/dist/{chunk-GXPKATXW.js → chunk-T5LLJYYS.js} +2 -1
  21. package/dist/{chunk-EBLO5TQ6.js → chunk-UAHNJ7DG.js} +6 -5
  22. package/dist/{chunk-RAFFEFML.js → chunk-URQFBBW5.js} +4 -2
  23. package/dist/{chunk-ML34TC74.js → chunk-VH2SMHYM.js} +60 -26
  24. package/dist/{chunk-C7PRLYZC.js → chunk-WW3VYTIJ.js} +15664 -7302
  25. package/dist/{chunk-WCNR75S2.js → chunk-YC4FLMDD.js} +2 -1
  26. package/dist/{chunk-U4YACXEW.js → chunk-YH2RKQUF.js} +3 -2
  27. package/dist/{chunk-3JLUTHGR.js → chunk-ZPFJOUKZ.js} +2 -1
  28. package/dist/{chunk-M63RTPGR.js → chunk-ZPL24Y2D.js} +1 -0
  29. package/dist/commands/init.js +28 -27
  30. package/dist/commands/init.test.js +30 -29
  31. package/dist/{constants-NNLQHFRJ.js → constants-BWDIHVPM.js} +5 -4
  32. package/dist/{custom-oclif-loader-4SQGUQ7D.js → custom-oclif-loader-7Q5WVZP6.js} +16 -24
  33. package/dist/{del-ICEHOC6W.js → del-ZCPTGWOA.js} +6 -5
  34. package/dist/{devtools-6HZ2IPFU.js → devtools-5N4JAP3R.js} +2 -1
  35. package/dist/error-handler-OOIG25BK.js +35 -0
  36. package/dist/hooks/postrun.js +20 -19
  37. package/dist/hooks/prerun.js +16 -15
  38. package/dist/index.js +8 -7
  39. package/dist/lib-CTSCLPNV.js +9 -0
  40. package/dist/{local-YKOG4EUR.js → local-GYBILLDV.js} +13 -12
  41. package/dist/{magic-string.es-6DE547FE.js → magic-string.es-ATGURXGQ.js} +2 -1
  42. package/dist/{multipart-parser-ENLY4BKU.js → multipart-parser-KYOHF24X.js} +3 -2
  43. package/dist/{node-package-manager-S7TSAUJZ.js → node-package-manager-N7CTF74M.js} +16 -13
  44. package/dist/{open-B7XFJJCK.js → open-JRS7RW22.js} +3 -2
  45. package/dist/out-OKI3G7I5.js +6 -0
  46. package/dist/{path-HO4HBKK5.js → path-LR5NP4LX.js} +10 -5
  47. package/dist/prompts/init.js +14 -13
  48. package/dist/prompts/init.test.js +15 -14
  49. package/dist/services/init.js +21 -20
  50. package/dist/services/init.test.js +5 -4
  51. package/dist/system-KZ6D632Y.js +26 -0
  52. package/dist/tsconfig.tsbuildinfo +1 -1
  53. package/dist/{ui-FUZYK6S3.js → ui-DULGDV4Y.js} +15 -12
  54. package/dist/utils/template/cleanup.js +14 -13
  55. package/dist/utils/template/cleanup.test.js +15 -14
  56. package/dist/utils/template/npm.js +16 -15
  57. package/dist/utils/template/npm.test.js +17 -16
  58. package/oclif.manifest.json +2 -2
  59. package/package.json +3 -2
  60. package/dist/commands/init.js.map +0 -1
  61. package/dist/error-handler-WI4YVJIS.js +0 -34
  62. package/dist/hooks/postrun.js.map +0 -1
  63. package/dist/hooks/prerun.js.map +0 -1
  64. package/dist/index.js.map +0 -1
  65. package/dist/lib-76RCE6WZ.js +0 -8
  66. package/dist/out-M5MRQZP5.js +0 -5
  67. package/dist/prompts/init.js.map +0 -1
  68. package/dist/services/init.js.map +0 -1
  69. package/dist/system-XXZMW2TO.js +0 -25
  70. package/dist/utils/template/cleanup.js.map +0 -1
  71. package/dist/utils/template/npm.js.map +0 -1
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  joinPath
3
- } from "./chunk-G6FN5VUE.js";
3
+ } from "./chunk-STRDP5MF.js";
4
4
  import {
5
5
  init_cjs_shims
6
- } from "./chunk-M63RTPGR.js";
6
+ } from "./chunk-ZPL24Y2D.js";
7
7
 
8
8
  // ../cli-kit/src/private/node/constants.ts
9
9
  init_cjs_shims();
@@ -138,6 +138,7 @@ var sessionConstants = {
138
138
  var bugsnagApiKey = "9e1e6889176fd0c795d5c659225e0fae";
139
139
 
140
140
  export {
141
+ envPaths,
141
142
  logsFolder,
142
143
  environmentVariables,
143
144
  defaultThemeKitAccessDomain,
@@ -146,3 +147,4 @@ export {
146
147
  sessionConstants,
147
148
  bugsnagApiKey
148
149
  };
150
+ //# sourceMappingURL=chunk-URQFBBW5.js.map
@@ -1,23 +1,24 @@
1
1
  import {
2
2
  require_graceful_fs
3
- } from "./chunk-FBB6KUZG.js";
3
+ } from "./chunk-LSCXQWNO.js";
4
4
  import {
5
5
  environmentVariables,
6
6
  pathConstants
7
- } from "./chunk-RAFFEFML.js";
7
+ } from "./chunk-URQFBBW5.js";
8
8
  import {
9
9
  cwd,
10
10
  joinPath,
11
11
  normalizePath,
12
- relativizePath
13
- } from "./chunk-G6FN5VUE.js";
12
+ relativizePath,
13
+ sniffForPath
14
+ } from "./chunk-STRDP5MF.js";
14
15
  import {
15
16
  addOrUpdateConcurrentUIEventOutput,
16
17
  isTruthy,
17
18
  printEventsJson,
18
19
  recordUIEvent,
19
20
  resetRecordedSleep
20
- } from "./chunk-UVY6LL5H.js";
21
+ } from "./chunk-M2VKB6RG.js";
21
22
  import {
22
23
  require_brace_expansion,
23
24
  require_cross_spawn,
@@ -27,10 +28,10 @@ import {
27
28
  require_source_map,
28
29
  require_supports_color,
29
30
  require_supports_hyperlinks
30
- } from "./chunk-R5KQZMEG.js";
31
+ } from "./chunk-SAO7C4LP.js";
31
32
  import {
32
33
  pLimit
33
- } from "./chunk-3JLUTHGR.js";
34
+ } from "./chunk-ZPFJOUKZ.js";
34
35
  import {
35
36
  __commonJS,
36
37
  __esm,
@@ -39,7 +40,7 @@ import {
39
40
  __toCommonJS,
40
41
  __toESM,
41
42
  init_cjs_shims
42
- } from "./chunk-M63RTPGR.js";
43
+ } from "./chunk-ZPL24Y2D.js";
43
44
 
44
45
  // ../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_listCacheClear.js
45
46
  var require_listCacheClear = __commonJS({
@@ -34921,7 +34922,7 @@ async function mkdir(path7) {
34921
34922
  await fsMkdir(path7, { recursive: true });
34922
34923
  }
34923
34924
  async function rmdir(path7, options = {}) {
34924
- const { default: del } = await import("./del-ICEHOC6W.js");
34925
+ const { default: del } = await import("./del-ZCPTGWOA.js");
34925
34926
  outputDebug(outputContent`Removing directory at ${outputToken.path(path7)}...`);
34926
34927
  await del(path7, { force: options.force });
34927
34928
  }
@@ -34965,7 +34966,7 @@ async function generateRandomNameForSubdirectory(options) {
34965
34966
  }
34966
34967
  }
34967
34968
  async function glob(pattern, options) {
34968
- const { default: fastGlob } = await import("./out-M5MRQZP5.js");
34969
+ const { default: fastGlob } = await import("./out-OKI3G7I5.js");
34969
34970
  let overridenOptions = options;
34970
34971
  if (options?.dot == null) {
34971
34972
  overridenOptions = { ...options, dot: true };
@@ -36255,7 +36256,7 @@ var $ = create$();
36255
36256
 
36256
36257
  // ../cli-kit/src/public/node/system.ts
36257
36258
  async function openURL(url) {
36258
- const externalOpen = await import("./open-B7XFJJCK.js");
36259
+ const externalOpen = await import("./open-JRS7RW22.js");
36259
36260
  await externalOpen.default(url);
36260
36261
  }
36261
36262
  async function captureOutput(command, args, options) {
@@ -36322,7 +36323,10 @@ async function sleep(seconds) {
36322
36323
  setTimeout(resolve, 1e3 * seconds);
36323
36324
  });
36324
36325
  }
36325
- function terminalSupportsRawMode(stdin) {
36326
+ function terminalSupportsRawMode(stdin, env2 = process.env) {
36327
+ if (isTruthy(env2.CI)) {
36328
+ return false;
36329
+ }
36326
36330
  if (stdin)
36327
36331
  return Boolean(stdin.isTTY);
36328
36332
  return process.stdin.isTTY;
@@ -36400,6 +36404,15 @@ function getCIMetadata(envName, envs) {
36400
36404
  run: envs.CI_RUNNER_ID,
36401
36405
  url: envs.CI_PIPELINE_URL
36402
36406
  };
36407
+ case "buildkite":
36408
+ return {
36409
+ branch: envs.BUILDKITE_BRANCH,
36410
+ build: envs.BUILDKITE_BUILD_NUMBER,
36411
+ commitSha: envs.BUILDKITE_COMMIT,
36412
+ commitMessage: envs.BUILDKITE_MESSAGE,
36413
+ run: envs.BUILDKITE_BUILD_NUMBER,
36414
+ url: envs.BUILDKITE_BUILD_URL
36415
+ };
36403
36416
  default:
36404
36417
  return {};
36405
36418
  }
@@ -36505,6 +36518,8 @@ function ciPlatform(env2 = process.env) {
36505
36518
  name = "github";
36506
36519
  } else if (isTruthy(env2.GITLAB_CI)) {
36507
36520
  name = "gitlab";
36521
+ } else if (isSet(env2.BUILDKITE)) {
36522
+ name = "buildkite";
36508
36523
  }
36509
36524
  return {
36510
36525
  isCI: true,
@@ -36528,8 +36543,16 @@ function opentelemetryDomain(env2 = process.env) {
36528
36543
 
36529
36544
  // ../cli-kit/src/public/node/is-global.ts
36530
36545
  init_cjs_shims();
36531
- function currentProcessIsGlobal(env2 = process.env) {
36532
- return env2.npm_config_user_agent === void 0;
36546
+ var _isGlobal;
36547
+ function currentProcessIsGlobal(argv = process.argv) {
36548
+ if (_isGlobal !== void 0 && !isUnitTest())
36549
+ return _isGlobal;
36550
+ const path7 = sniffForPath() ?? cwd();
36551
+ const npmPrefix = execaSync("npm", ["prefix"], { cwd: path7 }).stdout.trim();
36552
+ const binDir = argv[1] ?? "";
36553
+ const isLocal = binDir.startsWith(npmPrefix.trim());
36554
+ _isGlobal = !isLocal;
36555
+ return _isGlobal;
36533
36556
  }
36534
36557
  async function isGlobalCLIInstalled() {
36535
36558
  try {
@@ -36559,8 +36582,8 @@ async function installGlobalCLIPrompt() {
36559
36582
  });
36560
36583
  return { install: result === "yes", alreadyInstalled: false };
36561
36584
  }
36562
- function inferPackageManagerForGlobalCLI(argv = process.argv, env2 = process.env) {
36563
- if (!currentProcessIsGlobal(env2))
36585
+ function inferPackageManagerForGlobalCLI(argv = process.argv) {
36586
+ if (!currentProcessIsGlobal(argv))
36564
36587
  return "unknown";
36565
36588
  const processArgv = argv[1] ?? "";
36566
36589
  if (processArgv.includes("yarn"))
@@ -37289,14 +37312,15 @@ var RawContentToken = class extends ContentToken {
37289
37312
  }
37290
37313
  };
37291
37314
  var LinkContentToken = class extends ContentToken {
37292
- constructor(value, link2) {
37315
+ constructor(value, link2, fallback) {
37293
37316
  super(value);
37294
37317
  this.link = link2;
37318
+ this.fallback = fallback;
37295
37319
  }
37296
37320
  output() {
37297
37321
  const text = source_default.green(stringifyMessage(this.value));
37298
37322
  const url = this.link ?? "";
37299
- return terminalLink(text, url, { fallback: () => `${text} ( ${url} )` });
37323
+ return terminalLink(text, url, { fallback: () => this.fallback ?? `${text} ( ${url} )` });
37300
37324
  }
37301
37325
  };
37302
37326
  var CommandContentToken = class extends ContentToken {
@@ -39640,7 +39664,7 @@ var styles_default = styles4;
39640
39664
  // ../../node_modules/.pnpm/ink@4.4.1_@types+react@17.0.2_react@18.2.0/node_modules/ink/build/reconciler.js
39641
39665
  if (process9.env["DEV"] === "true") {
39642
39666
  try {
39643
- await import("./devtools-6HZ2IPFU.js");
39667
+ await import("./devtools-5N4JAP3R.js");
39644
39668
  } catch (error) {
39645
39669
  if (error.code === "MODULE_NOT_FOUND") {
39646
39670
  console.warn(`
@@ -42202,8 +42226,8 @@ var outputToken = {
42202
42226
  path(value) {
42203
42227
  return new PathContentToken(value);
42204
42228
  },
42205
- link(value, link2) {
42206
- return new LinkContentToken(value, link2);
42229
+ link(value, link2, fallback) {
42230
+ return new LinkContentToken(value, link2, fallback);
42207
42231
  },
42208
42232
  heading(value) {
42209
42233
  return new HeadingContentToken(value);
@@ -42229,6 +42253,9 @@ var outputToken = {
42229
42253
  green(value) {
42230
42254
  return new ColorContentToken(value, source_default.green);
42231
42255
  },
42256
+ gray(value) {
42257
+ return new ColorContentToken(value, source_default.gray);
42258
+ },
42232
42259
  packagejsonScript(packageManager, scriptName, ...scriptArgs) {
42233
42260
  return new CommandContentToken(formatPackageManagerCommand(packageManager, scriptName, ...scriptArgs));
42234
42261
  },
@@ -42538,7 +42565,7 @@ function createRuntimeMetadataContainer(defaultPublicMetadata = {}) {
42538
42565
  try {
42539
42566
  await getAndSet();
42540
42567
  } catch (error) {
42541
- const { sendErrorToBugsnag } = await import("./error-handler-WI4YVJIS.js");
42568
+ const { sendErrorToBugsnag } = await import("./error-handler-OOIG25BK.js");
42542
42569
  await sendErrorToBugsnag(error, "unexpected_error");
42543
42570
  }
42544
42571
  }
@@ -42953,9 +42980,10 @@ var ConcurrentOutput = ({
42953
42980
  write(chunk, _encoding, next) {
42954
42981
  const context = outputContextStore.getStore();
42955
42982
  const prefix = context?.outputPrefix ?? process20.prefix;
42956
- const log = chunk.toString("utf8");
42983
+ const shouldStripAnsi = context?.stripAnsi ?? true;
42984
+ const log = chunk.toString("utf8").replace(/(\n)$/, "");
42957
42985
  const index = addPrefix(prefix, prefixes);
42958
- const lines = stripAnsi(log.replace(/(\n)$/, "")).split(/\n/);
42986
+ const lines = shouldStripAnsi ? stripAnsi(log).split(/\n/) : log.split(/\n/);
42959
42987
  addOrUpdateConcurrentUIEventOutput({ prefix, index, output: lines.join("\n") });
42960
42988
  setProcessOutput((previousProcessOutput) => [
42961
42989
  ...previousProcessOutput,
@@ -42975,7 +43003,7 @@ var ConcurrentOutput = ({
42975
43003
  if (prefix.length > calculatedPrefixColumnSize) {
42976
43004
  return prefix.substring(0, calculatedPrefixColumnSize);
42977
43005
  }
42978
- return `${prefix}${" ".repeat(calculatedPrefixColumnSize - prefix.length)}`;
43006
+ return `${" ".repeat(calculatedPrefixColumnSize - prefix.length)}${prefix}`;
42979
43007
  };
42980
43008
  (0, import_react30.useEffect)(() => {
42981
43009
  const runProcesses = async () => {
@@ -44674,8 +44702,11 @@ var keypress = async (stdin = process.stdin, uiDebugOptions = defaultUIDebugOpti
44674
44702
  });
44675
44703
  });
44676
44704
  };
44705
+ function isTTY({ stdin = void 0, uiDebugOptions = defaultUIDebugOptions }) {
44706
+ return Boolean(uiDebugOptions.skipTTYCheck || stdin || terminalSupportsRawMode());
44707
+ }
44677
44708
  function throwInNonTTY({ message, stdin = void 0 }, uiDebugOptions) {
44678
- if (uiDebugOptions.skipTTYCheck || stdin || terminalSupportsRawMode())
44709
+ if (isTTY({ stdin, uiDebugOptions }))
44679
44710
  return;
44680
44711
  const promptText = tokenItemToString(message);
44681
44712
  const errorMessage = `Failed to prompt:
@@ -44691,6 +44722,7 @@ This usually happens when running a command non-interactively, for example in a
44691
44722
 
44692
44723
  export {
44693
44724
  AbortController,
44725
+ mimicFunction,
44694
44726
  require_get_stream,
44695
44727
  execa,
44696
44728
  currentProcessIsGlobal,
@@ -44722,6 +44754,7 @@ export {
44722
44754
  renderDangerousConfirmationPrompt,
44723
44755
  renderText,
44724
44756
  keypress,
44757
+ isTTY,
44725
44758
  CancelExecution,
44726
44759
  AbortError,
44727
44760
  AbortSilentError,
@@ -44870,3 +44903,4 @@ react-reconciler/cjs/react-reconciler-constants.development.js:
44870
44903
  * LICENSE file in the root directory of this source tree.
44871
44904
  *)
44872
44905
  */
44906
+ //# sourceMappingURL=chunk-VH2SMHYM.js.map