@shopify/create-app 3.61.2 → 3.63.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 (72) hide show
  1. package/dist/{chunk-QTBH3GO6.js → chunk-4NDUTTUN.js} +3 -2
  2. package/dist/{chunk-5TIUXWJI.js → chunk-4WWN5FOM.js} +9 -8
  3. package/dist/{chunk-6MVE3OZ2.js → chunk-ATUEWGVE.js} +12 -11
  4. package/dist/{chunk-HTYJDJRZ.js → chunk-DL3MKXVR.js} +2 -1
  5. package/dist/{chunk-XRBC4UM7.js → chunk-F6HMWERM.js} +5 -4
  6. package/dist/{chunk-LKGDG6WW.js → chunk-FMKVOTQK.js} +2 -1
  7. package/dist/{chunk-LUP5VDI4.js → chunk-GJPZCXGT.js} +3 -2
  8. package/dist/{chunk-B2QBH7MN.js → chunk-HRKA5T4R.js} +11 -10
  9. package/dist/{chunk-C7PRLYZC.js → chunk-HVU24J4B.js} +15664 -7302
  10. package/dist/{chunk-U4YACXEW.js → chunk-IKO7JBOJ.js} +5456 -4958
  11. package/dist/{chunk-FBB6KUZG.js → chunk-LSCXQWNO.js} +2 -1
  12. package/dist/{chunk-UVY6LL5H.js → chunk-M2VKB6RG.js} +2 -1
  13. package/dist/{chunk-K5EEGEVV.js → chunk-MCED27CG.js} +2 -1
  14. package/dist/{chunk-EBLO5TQ6.js → chunk-PRTNRTCO.js} +6 -5
  15. package/dist/{chunk-DEIGDWGB.js → chunk-QYV3IGK6.js} +3 -2
  16. package/dist/{chunk-6PWOAHEA.js → chunk-S24GEKLN.js} +18 -12
  17. package/dist/{chunk-R5KQZMEG.js → chunk-SAO7C4LP.js} +4 -3
  18. package/dist/{chunk-G6FN5VUE.js → chunk-STRDP5MF.js} +21 -3
  19. package/dist/chunk-SWNRLCC6.js +61 -0
  20. package/dist/{chunk-GXPKATXW.js → chunk-T5LLJYYS.js} +2 -1
  21. package/dist/{chunk-ML34TC74.js → chunk-TDQP5DNM.js} +115 -27
  22. package/dist/{chunk-TEIUSMQF.js → chunk-TEWHYB5G.js} +4 -3
  23. package/dist/{chunk-RAFFEFML.js → chunk-URQFBBW5.js} +4 -2
  24. package/dist/{chunk-EXKYFA3Q.js → chunk-WIUNU6J5.js} +8 -7
  25. package/dist/{chunk-DCYRMEAR.js → chunk-WPLY3YAB.js} +3 -2
  26. package/dist/{chunk-WCNR75S2.js → chunk-YC4FLMDD.js} +2 -1
  27. package/dist/{chunk-5VLFIRJZ.js → chunk-YOU3TFV4.js} +6 -5
  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-IYCQZLII.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-JYZPYDGI.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-FTTFSJQM.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-AKGEGINM.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-DKVEXBNE.js +26 -0
  52. package/dist/tsconfig.tsbuildinfo +1 -1
  53. package/dist/{ui-FUZYK6S3.js → ui-MOQVVFEE.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 +3 -2
  59. package/package.json +5 -4
  60. package/dist/chunk-3JLUTHGR.js +0 -114
  61. package/dist/commands/init.js.map +0 -1
  62. package/dist/error-handler-WI4YVJIS.js +0 -34
  63. package/dist/hooks/postrun.js.map +0 -1
  64. package/dist/hooks/prerun.js.map +0 -1
  65. package/dist/index.js.map +0 -1
  66. package/dist/lib-76RCE6WZ.js +0 -8
  67. package/dist/out-M5MRQZP5.js +0 -5
  68. package/dist/prompts/init.js.map +0 -1
  69. package/dist/services/init.js.map +0 -1
  70. package/dist/system-XXZMW2TO.js +0 -25
  71. package/dist/utils/template/cleanup.js.map +0 -1
  72. package/dist/utils/template/npm.js.map +0 -1
@@ -2,7 +2,7 @@ import {
2
2
  __commonJS,
3
3
  __require,
4
4
  init_cjs_shims
5
- } from "./chunk-M63RTPGR.js";
5
+ } from "./chunk-ZPL24Y2D.js";
6
6
 
7
7
  // ../../node_modules/.pnpm/graceful-fs@4.2.11/node_modules/graceful-fs/polyfills.js
8
8
  var require_polyfills = __commonJS({
@@ -819,3 +819,4 @@ var require_graceful_fs = __commonJS({
819
819
  export {
820
820
  require_graceful_fs
821
821
  };
822
+ //# sourceMappingURL=chunk-LSCXQWNO.js.map
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  init_cjs_shims
3
- } from "./chunk-M63RTPGR.js";
3
+ } from "./chunk-ZPL24Y2D.js";
4
4
 
5
5
  // ../cli-kit/src/public/node/context/utilities.ts
6
6
  init_cjs_shims();
@@ -143,3 +143,4 @@ export {
143
143
  printEventsJson,
144
144
  addOrUpdateConcurrentUIEventOutput
145
145
  };
146
+ //# sourceMappingURL=chunk-M2VKB6RG.js.map
@@ -2,7 +2,7 @@ import {
2
2
  __commonJS,
3
3
  __require,
4
4
  init_cjs_shims
5
- } from "./chunk-M63RTPGR.js";
5
+ } from "./chunk-ZPL24Y2D.js";
6
6
 
7
7
  // ../../node_modules/.pnpm/fast-glob@3.3.1/node_modules/fast-glob/out/utils/array.js
8
8
  var require_array = __commonJS({
@@ -5623,3 +5623,4 @@ queue-microtask/index.js:
5623
5623
  run-parallel/index.js:
5624
5624
  (*! run-parallel. MIT License. Feross Aboukhadijeh <https://feross.org/opensource> *)
5625
5625
  */
5626
+ //# sourceMappingURL=chunk-MCED27CG.js.map
@@ -1,10 +1,10 @@
1
1
  import {
2
2
  platformAndArch
3
- } from "./chunk-DCYRMEAR.js";
3
+ } from "./chunk-WPLY3YAB.js";
4
4
  import {
5
5
  getPackageManager,
6
6
  packageManagerFromUserAgent
7
- } from "./chunk-C7PRLYZC.js";
7
+ } from "./chunk-HVU24J4B.js";
8
8
  import {
9
9
  addPublicMetadata,
10
10
  addSensitiveMetadata,
@@ -12,13 +12,13 @@ import {
12
12
  cloudEnvironment,
13
13
  currentProcessIsGlobal,
14
14
  macAddress
15
- } from "./chunk-ML34TC74.js";
15
+ } from "./chunk-TDQP5DNM.js";
16
16
  import {
17
17
  cwd
18
- } from "./chunk-G6FN5VUE.js";
18
+ } from "./chunk-STRDP5MF.js";
19
19
  import {
20
20
  init_cjs_shims
21
- } from "./chunk-M63RTPGR.js";
21
+ } from "./chunk-ZPL24Y2D.js";
22
22
 
23
23
  // ../cli-kit/src/private/node/analytics.ts
24
24
  init_cjs_shims();
@@ -97,3 +97,4 @@ export {
97
97
  getEnvironmentData,
98
98
  getSensitiveEnvironmentData
99
99
  };
100
+ //# sourceMappingURL=chunk-PRTNRTCO.js.map
@@ -4,11 +4,11 @@ import {
4
4
  renderSelectPrompt,
5
5
  renderText,
6
6
  renderTextPrompt
7
- } from "./chunk-ML34TC74.js";
7
+ } from "./chunk-TDQP5DNM.js";
8
8
  import {
9
9
  __export,
10
10
  init_cjs_shims
11
- } from "./chunk-M63RTPGR.js";
11
+ } from "./chunk-ZPL24Y2D.js";
12
12
 
13
13
  // src/prompts/init.ts
14
14
  var init_exports = {};
@@ -142,3 +142,4 @@ export {
142
142
  isPredefinedTemplate,
143
143
  init_exports
144
144
  };
145
+ //# sourceMappingURL=chunk-QYV3IGK6.js.map
@@ -1,26 +1,26 @@
1
1
  import {
2
2
  errorHandler,
3
3
  registerCleanBugsnagErrorsFromWithinPlugins
4
- } from "./chunk-B2QBH7MN.js";
4
+ } from "./chunk-HRKA5T4R.js";
5
5
  import {
6
6
  init_default as init_default2
7
- } from "./chunk-5TIUXWJI.js";
7
+ } from "./chunk-4WWN5FOM.js";
8
8
  import {
9
9
  hashString
10
- } from "./chunk-EBLO5TQ6.js";
10
+ } from "./chunk-PRTNRTCO.js";
11
11
  import {
12
12
  packageManager,
13
13
  packageManagerFromUserAgent
14
- } from "./chunk-C7PRLYZC.js";
14
+ } from "./chunk-HVU24J4B.js";
15
15
  import {
16
16
  globalFlags
17
- } from "./chunk-6MVE3OZ2.js";
17
+ } from "./chunk-ATUEWGVE.js";
18
18
  import {
19
19
  init_default,
20
20
  isPredefinedTemplate,
21
21
  templates,
22
22
  visibleTemplates
23
- } from "./chunk-DEIGDWGB.js";
23
+ } from "./chunk-QYV3IGK6.js";
24
24
  import {
25
25
  AbortError,
26
26
  addPublicMetadata,
@@ -37,23 +37,23 @@ import {
37
37
  renderWarning,
38
38
  terminalSupportsRawMode,
39
39
  underscore
40
- } from "./chunk-ML34TC74.js";
40
+ } from "./chunk-TDQP5DNM.js";
41
41
  import {
42
42
  cwd,
43
43
  resolvePath
44
- } from "./chunk-G6FN5VUE.js";
44
+ } from "./chunk-STRDP5MF.js";
45
45
  import {
46
46
  isTruthy
47
- } from "./chunk-UVY6LL5H.js";
47
+ } from "./chunk-M2VKB6RG.js";
48
48
  import {
49
49
  require_lib
50
- } from "./chunk-R5KQZMEG.js";
50
+ } from "./chunk-SAO7C4LP.js";
51
51
  import {
52
52
  __commonJS,
53
53
  __require,
54
54
  __toESM,
55
55
  init_cjs_shims
56
- } from "./chunk-M63RTPGR.js";
56
+ } from "./chunk-ZPL24Y2D.js";
57
57
 
58
58
  // ../../node_modules/.pnpm/@iarna+toml@2.2.5/node_modules/@iarna/toml/lib/parser.js
59
59
  var require_parser = __commonJS({
@@ -2159,6 +2159,10 @@ async function loadEnvironment(environmentName, fileName, options) {
2159
2159
  // ../cli-kit/src/public/node/base-command.ts
2160
2160
  var import_core = __toESM(require_lib(), 1);
2161
2161
  var BaseCommand = class extends import_core.Command {
2162
+ static {
2163
+ // eslint-disable-next-line @typescript-eslint/ban-types
2164
+ this.baseFlags = {};
2165
+ }
2162
2166
  // Replace markdown links to plain text like: "link label" (url)
2163
2167
  static descriptionWithoutMarkdown() {
2164
2168
  return (this.descriptionWithMarkdown ?? "").replace(/(\[)(.*?)(])(\()(.*?)(\))/gm, '"$2" ($5)');
@@ -2170,6 +2174,7 @@ var BaseCommand = class extends import_core.Command {
2170
2174
  return void 0;
2171
2175
  }
2172
2176
  async catch(error) {
2177
+ error.skipOclifErrorHandling = true;
2173
2178
  await errorHandler(error, this.config);
2174
2179
  return import_core.Errors.handle(error);
2175
2180
  }
@@ -2410,7 +2415,7 @@ var Init = class _Init extends base_command_default {
2410
2415
  );
2411
2416
  if (!url && !isPredefinedTemplate(template))
2412
2417
  throw new AbortError(
2413
- outputContent`Only ${visibleTemplates.map((alias) => outputContent`${outputToken.yellow(alias)}`.value).join(", ")} template aliases are supported`
2418
+ outputContent`Only ${visibleTemplates.map((alias) => outputContent`${outputToken.yellow(alias)}`.value).join(", ")} template aliases are supported, please provide a valid URL`
2414
2419
  );
2415
2420
  }
2416
2421
  validateFlavorValue(template, flavor) {
@@ -2469,3 +2474,4 @@ var Init = class _Init extends base_command_default {
2469
2474
  export {
2470
2475
  Init
2471
2476
  };
2477
+ //# sourceMappingURL=chunk-S24GEKLN.js.map
@@ -2,15 +2,15 @@ import {
2
2
  require_balanced_match,
3
3
  require_globby,
4
4
  require_indent_string
5
- } from "./chunk-LUP5VDI4.js";
5
+ } from "./chunk-GJPZCXGT.js";
6
6
  import {
7
7
  require_is_wsl
8
- } from "./chunk-WCNR75S2.js";
8
+ } from "./chunk-YC4FLMDD.js";
9
9
  import {
10
10
  __commonJS,
11
11
  __require,
12
12
  init_cjs_shims
13
- } from "./chunk-M63RTPGR.js";
13
+ } from "./chunk-ZPL24Y2D.js";
14
14
 
15
15
  // ../../node_modules/.pnpm/@oclif+core@3.26.5/node_modules/@oclif/core/lib/cli-ux/write.js
16
16
  var require_write = __commonJS({
@@ -213626,3 +213626,4 @@ ejs/lib/ejs.js:
213626
213626
  * @license {@link http://www.apache.org/licenses/LICENSE-2.0 Apache License, Version 2.0}
213627
213627
  *)
213628
213628
  */
213629
+ //# sourceMappingURL=chunk-SAO7C4LP.js.map
@@ -7,13 +7,13 @@ import {
7
7
  normalize,
8
8
  relative,
9
9
  resolve
10
- } from "./chunk-GXPKATXW.js";
10
+ } from "./chunk-T5LLJYYS.js";
11
11
  import {
12
12
  __commonJS,
13
13
  __require,
14
14
  __toESM,
15
15
  init_cjs_shims
16
- } from "./chunk-M63RTPGR.js";
16
+ } from "./chunk-ZPL24Y2D.js";
17
17
 
18
18
  // ../../node_modules/.pnpm/commondir@1.0.1/node_modules/commondir/index.js
19
19
  var require_commondir = __commonJS({
@@ -86,6 +86,21 @@ function moduleDirectory(moduleURL) {
86
86
  function cwd() {
87
87
  return normalize(process.env.INIT_CWD ? process.env.INIT_CWD : process.cwd());
88
88
  }
89
+ function sniffForPath(argv = process.argv) {
90
+ const pathFlagIndex = argv.indexOf("--path");
91
+ if (pathFlagIndex === -1) {
92
+ const pathArg = argv.find((arg) => arg.startsWith("--path="));
93
+ return pathArg?.split("=")[1];
94
+ }
95
+ const pathFlag = argv[pathFlagIndex + 1];
96
+ if (!pathFlag || pathFlag.startsWith("-"))
97
+ return;
98
+ return pathFlag;
99
+ }
100
+ function sniffForJson(argv = process.argv) {
101
+ const jsonFlagIndex = argv.indexOf("--json");
102
+ return jsonFlagIndex !== -1;
103
+ }
89
104
 
90
105
  export {
91
106
  joinPath,
@@ -98,5 +113,8 @@ export {
98
113
  extname2 as extname,
99
114
  relativizePath,
100
115
  moduleDirectory,
101
- cwd
116
+ cwd,
117
+ sniffForPath,
118
+ sniffForJson
102
119
  };
120
+ //# sourceMappingURL=chunk-STRDP5MF.js.map
@@ -0,0 +1,61 @@
1
+ import {
2
+ init_cjs_shims
3
+ } from "./chunk-ZPL24Y2D.js";
4
+
5
+ // ../../node_modules/.pnpm/yocto-queue@1.0.0/node_modules/yocto-queue/index.js
6
+ init_cjs_shims();
7
+ var Node = class {
8
+ value;
9
+ next;
10
+ constructor(value) {
11
+ this.value = value;
12
+ }
13
+ };
14
+ var Queue = class {
15
+ #head;
16
+ #tail;
17
+ #size;
18
+ constructor() {
19
+ this.clear();
20
+ }
21
+ enqueue(value) {
22
+ const node = new Node(value);
23
+ if (this.#head) {
24
+ this.#tail.next = node;
25
+ this.#tail = node;
26
+ } else {
27
+ this.#head = node;
28
+ this.#tail = node;
29
+ }
30
+ this.#size++;
31
+ }
32
+ dequeue() {
33
+ const current = this.#head;
34
+ if (!current) {
35
+ return;
36
+ }
37
+ this.#head = this.#head.next;
38
+ this.#size--;
39
+ return current.value;
40
+ }
41
+ clear() {
42
+ this.#head = void 0;
43
+ this.#tail = void 0;
44
+ this.#size = 0;
45
+ }
46
+ get size() {
47
+ return this.#size;
48
+ }
49
+ *[Symbol.iterator]() {
50
+ let current = this.#head;
51
+ while (current) {
52
+ yield current.value;
53
+ current = current.next;
54
+ }
55
+ }
56
+ };
57
+
58
+ export {
59
+ Queue
60
+ };
61
+ //# sourceMappingURL=chunk-SWNRLCC6.js.map
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  init_cjs_shims
3
- } from "./chunk-M63RTPGR.js";
3
+ } from "./chunk-ZPL24Y2D.js";
4
4
 
5
5
  // ../../node_modules/.pnpm/pathe@1.1.1/node_modules/pathe/dist/shared/pathe.92c04245.mjs
6
6
  init_cjs_shims();
@@ -192,3 +192,4 @@ export {
192
192
  dirname,
193
193
  basename
194
194
  };
195
+ //# sourceMappingURL=chunk-T5LLJYYS.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
- pLimit
33
- } from "./chunk-3JLUTHGR.js";
33
+ Queue
34
+ } from "./chunk-SWNRLCC6.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({
@@ -33430,6 +33431,60 @@ import { fileURLToPath } from "node:url";
33430
33431
 
33431
33432
  // ../../node_modules/.pnpm/p-locate@6.0.0/node_modules/p-locate/index.js
33432
33433
  init_cjs_shims();
33434
+
33435
+ // ../../node_modules/.pnpm/p-limit@4.0.0/node_modules/p-limit/index.js
33436
+ init_cjs_shims();
33437
+ function pLimit(concurrency) {
33438
+ if (!((Number.isInteger(concurrency) || concurrency === Number.POSITIVE_INFINITY) && concurrency > 0)) {
33439
+ throw new TypeError("Expected `concurrency` to be a number from 1 and up");
33440
+ }
33441
+ const queue = new Queue();
33442
+ let activeCount = 0;
33443
+ const next = () => {
33444
+ activeCount--;
33445
+ if (queue.size > 0) {
33446
+ queue.dequeue()();
33447
+ }
33448
+ };
33449
+ const run = async (fn, resolve, args) => {
33450
+ activeCount++;
33451
+ const result = (async () => fn(...args))();
33452
+ resolve(result);
33453
+ try {
33454
+ await result;
33455
+ } catch {
33456
+ }
33457
+ next();
33458
+ };
33459
+ const enqueue = (fn, resolve, args) => {
33460
+ queue.enqueue(run.bind(void 0, fn, resolve, args));
33461
+ (async () => {
33462
+ await Promise.resolve();
33463
+ if (activeCount < concurrency && queue.size > 0) {
33464
+ queue.dequeue()();
33465
+ }
33466
+ })();
33467
+ };
33468
+ const generator = (fn, ...args) => new Promise((resolve) => {
33469
+ enqueue(fn, resolve, args);
33470
+ });
33471
+ Object.defineProperties(generator, {
33472
+ activeCount: {
33473
+ get: () => activeCount
33474
+ },
33475
+ pendingCount: {
33476
+ get: () => queue.size
33477
+ },
33478
+ clearQueue: {
33479
+ value: () => {
33480
+ queue.clear();
33481
+ }
33482
+ }
33483
+ });
33484
+ return generator;
33485
+ }
33486
+
33487
+ // ../../node_modules/.pnpm/p-locate@6.0.0/node_modules/p-locate/index.js
33433
33488
  var EndError = class extends Error {
33434
33489
  constructor(value) {
33435
33490
  super();
@@ -34921,7 +34976,7 @@ async function mkdir(path7) {
34921
34976
  await fsMkdir(path7, { recursive: true });
34922
34977
  }
34923
34978
  async function rmdir(path7, options = {}) {
34924
- const { default: del } = await import("./del-ICEHOC6W.js");
34979
+ const { default: del } = await import("./del-ZCPTGWOA.js");
34925
34980
  outputDebug(outputContent`Removing directory at ${outputToken.path(path7)}...`);
34926
34981
  await del(path7, { force: options.force });
34927
34982
  }
@@ -34965,7 +35020,7 @@ async function generateRandomNameForSubdirectory(options) {
34965
35020
  }
34966
35021
  }
34967
35022
  async function glob(pattern, options) {
34968
- const { default: fastGlob } = await import("./out-M5MRQZP5.js");
35023
+ const { default: fastGlob } = await import("./out-OKI3G7I5.js");
34969
35024
  let overridenOptions = options;
34970
35025
  if (options?.dot == null) {
34971
35026
  overridenOptions = { ...options, dot: true };
@@ -36255,7 +36310,7 @@ var $ = create$();
36255
36310
 
36256
36311
  // ../cli-kit/src/public/node/system.ts
36257
36312
  async function openURL(url) {
36258
- const externalOpen = await import("./open-B7XFJJCK.js");
36313
+ const externalOpen = await import("./open-JRS7RW22.js");
36259
36314
  await externalOpen.default(url);
36260
36315
  }
36261
36316
  async function captureOutput(command, args, options) {
@@ -36322,7 +36377,10 @@ async function sleep(seconds) {
36322
36377
  setTimeout(resolve, 1e3 * seconds);
36323
36378
  });
36324
36379
  }
36325
- function terminalSupportsRawMode(stdin) {
36380
+ function terminalSupportsRawMode(stdin, env2 = process.env) {
36381
+ if (isTruthy(env2.CI)) {
36382
+ return false;
36383
+ }
36326
36384
  if (stdin)
36327
36385
  return Boolean(stdin.isTTY);
36328
36386
  return process.stdin.isTTY;
@@ -36400,6 +36458,15 @@ function getCIMetadata(envName, envs) {
36400
36458
  run: envs.CI_RUNNER_ID,
36401
36459
  url: envs.CI_PIPELINE_URL
36402
36460
  };
36461
+ case "buildkite":
36462
+ return {
36463
+ branch: envs.BUILDKITE_BRANCH,
36464
+ build: envs.BUILDKITE_BUILD_NUMBER,
36465
+ commitSha: envs.BUILDKITE_COMMIT,
36466
+ commitMessage: envs.BUILDKITE_MESSAGE,
36467
+ run: envs.BUILDKITE_BUILD_NUMBER,
36468
+ url: envs.BUILDKITE_BUILD_URL
36469
+ };
36403
36470
  default:
36404
36471
  return {};
36405
36472
  }
@@ -36505,6 +36572,8 @@ function ciPlatform(env2 = process.env) {
36505
36572
  name = "github";
36506
36573
  } else if (isTruthy(env2.GITLAB_CI)) {
36507
36574
  name = "gitlab";
36575
+ } else if (isSet(env2.BUILDKITE)) {
36576
+ name = "buildkite";
36508
36577
  }
36509
36578
  return {
36510
36579
  isCI: true,
@@ -36528,8 +36597,16 @@ function opentelemetryDomain(env2 = process.env) {
36528
36597
 
36529
36598
  // ../cli-kit/src/public/node/is-global.ts
36530
36599
  init_cjs_shims();
36531
- function currentProcessIsGlobal(env2 = process.env) {
36532
- return env2.npm_config_user_agent === void 0;
36600
+ var _isGlobal;
36601
+ function currentProcessIsGlobal(argv = process.argv) {
36602
+ if (_isGlobal !== void 0 && !isUnitTest())
36603
+ return _isGlobal;
36604
+ const path7 = sniffForPath() ?? cwd();
36605
+ const npmPrefix = execaSync("npm", ["prefix"], { cwd: path7 }).stdout.trim();
36606
+ const binDir = argv[1] ?? "";
36607
+ const isLocal = binDir.startsWith(npmPrefix.trim());
36608
+ _isGlobal = !isLocal;
36609
+ return _isGlobal;
36533
36610
  }
36534
36611
  async function isGlobalCLIInstalled() {
36535
36612
  try {
@@ -36559,8 +36636,8 @@ async function installGlobalCLIPrompt() {
36559
36636
  });
36560
36637
  return { install: result === "yes", alreadyInstalled: false };
36561
36638
  }
36562
- function inferPackageManagerForGlobalCLI(argv = process.argv, env2 = process.env) {
36563
- if (!currentProcessIsGlobal(env2))
36639
+ function inferPackageManagerForGlobalCLI(argv = process.argv) {
36640
+ if (!currentProcessIsGlobal(argv))
36564
36641
  return "unknown";
36565
36642
  const processArgv = argv[1] ?? "";
36566
36643
  if (processArgv.includes("yarn"))
@@ -37289,14 +37366,15 @@ var RawContentToken = class extends ContentToken {
37289
37366
  }
37290
37367
  };
37291
37368
  var LinkContentToken = class extends ContentToken {
37292
- constructor(value, link2) {
37369
+ constructor(value, link2, fallback) {
37293
37370
  super(value);
37294
37371
  this.link = link2;
37372
+ this.fallback = fallback;
37295
37373
  }
37296
37374
  output() {
37297
37375
  const text = source_default.green(stringifyMessage(this.value));
37298
37376
  const url = this.link ?? "";
37299
- return terminalLink(text, url, { fallback: () => `${text} ( ${url} )` });
37377
+ return terminalLink(text, url, { fallback: () => this.fallback ?? `${text} ( ${url} )` });
37300
37378
  }
37301
37379
  };
37302
37380
  var CommandContentToken = class extends ContentToken {
@@ -39640,7 +39718,7 @@ var styles_default = styles4;
39640
39718
  // ../../node_modules/.pnpm/ink@4.4.1_@types+react@17.0.2_react@18.2.0/node_modules/ink/build/reconciler.js
39641
39719
  if (process9.env["DEV"] === "true") {
39642
39720
  try {
39643
- await import("./devtools-6HZ2IPFU.js");
39721
+ await import("./devtools-5N4JAP3R.js");
39644
39722
  } catch (error) {
39645
39723
  if (error.code === "MODULE_NOT_FOUND") {
39646
39724
  console.warn(`
@@ -42202,8 +42280,8 @@ var outputToken = {
42202
42280
  path(value) {
42203
42281
  return new PathContentToken(value);
42204
42282
  },
42205
- link(value, link2) {
42206
- return new LinkContentToken(value, link2);
42283
+ link(value, link2, fallback) {
42284
+ return new LinkContentToken(value, link2, fallback);
42207
42285
  },
42208
42286
  heading(value) {
42209
42287
  return new HeadingContentToken(value);
@@ -42229,6 +42307,9 @@ var outputToken = {
42229
42307
  green(value) {
42230
42308
  return new ColorContentToken(value, source_default.green);
42231
42309
  },
42310
+ gray(value) {
42311
+ return new ColorContentToken(value, source_default.gray);
42312
+ },
42232
42313
  packagejsonScript(packageManager, scriptName, ...scriptArgs) {
42233
42314
  return new CommandContentToken(formatPackageManagerCommand(packageManager, scriptName, ...scriptArgs));
42234
42315
  },
@@ -42538,7 +42619,7 @@ function createRuntimeMetadataContainer(defaultPublicMetadata = {}) {
42538
42619
  try {
42539
42620
  await getAndSet();
42540
42621
  } catch (error) {
42541
- const { sendErrorToBugsnag } = await import("./error-handler-WI4YVJIS.js");
42622
+ const { sendErrorToBugsnag } = await import("./error-handler-JYZPYDGI.js");
42542
42623
  await sendErrorToBugsnag(error, "unexpected_error");
42543
42624
  }
42544
42625
  }
@@ -42953,9 +43034,10 @@ var ConcurrentOutput = ({
42953
43034
  write(chunk, _encoding, next) {
42954
43035
  const context = outputContextStore.getStore();
42955
43036
  const prefix = context?.outputPrefix ?? process20.prefix;
42956
- const log = chunk.toString("utf8");
43037
+ const shouldStripAnsi = context?.stripAnsi ?? true;
43038
+ const log = chunk.toString("utf8").replace(/(\n)$/, "");
42957
43039
  const index = addPrefix(prefix, prefixes);
42958
- const lines = stripAnsi(log.replace(/(\n)$/, "")).split(/\n/);
43040
+ const lines = shouldStripAnsi ? stripAnsi(log).split(/\n/) : log.split(/\n/);
42959
43041
  addOrUpdateConcurrentUIEventOutput({ prefix, index, output: lines.join("\n") });
42960
43042
  setProcessOutput((previousProcessOutput) => [
42961
43043
  ...previousProcessOutput,
@@ -42975,7 +43057,7 @@ var ConcurrentOutput = ({
42975
43057
  if (prefix.length > calculatedPrefixColumnSize) {
42976
43058
  return prefix.substring(0, calculatedPrefixColumnSize);
42977
43059
  }
42978
- return `${prefix}${" ".repeat(calculatedPrefixColumnSize - prefix.length)}`;
43060
+ return `${" ".repeat(calculatedPrefixColumnSize - prefix.length)}${prefix}`;
42979
43061
  };
42980
43062
  (0, import_react30.useEffect)(() => {
42981
43063
  const runProcesses = async () => {
@@ -44674,8 +44756,11 @@ var keypress = async (stdin = process.stdin, uiDebugOptions = defaultUIDebugOpti
44674
44756
  });
44675
44757
  });
44676
44758
  };
44759
+ function isTTY({ stdin = void 0, uiDebugOptions = defaultUIDebugOptions }) {
44760
+ return Boolean(uiDebugOptions.skipTTYCheck || stdin || terminalSupportsRawMode());
44761
+ }
44677
44762
  function throwInNonTTY({ message, stdin = void 0 }, uiDebugOptions) {
44678
- if (uiDebugOptions.skipTTYCheck || stdin || terminalSupportsRawMode())
44763
+ if (isTTY({ stdin, uiDebugOptions }))
44679
44764
  return;
44680
44765
  const promptText = tokenItemToString(message);
44681
44766
  const errorMessage = `Failed to prompt:
@@ -44691,6 +44776,7 @@ This usually happens when running a command non-interactively, for example in a
44691
44776
 
44692
44777
  export {
44693
44778
  AbortController,
44779
+ mimicFunction,
44694
44780
  require_get_stream,
44695
44781
  execa,
44696
44782
  currentProcessIsGlobal,
@@ -44722,6 +44808,7 @@ export {
44722
44808
  renderDangerousConfirmationPrompt,
44723
44809
  renderText,
44724
44810
  keypress,
44811
+ isTTY,
44725
44812
  CancelExecution,
44726
44813
  AbortError,
44727
44814
  AbortSilentError,
@@ -44870,3 +44957,4 @@ react-reconciler/cjs/react-reconciler-constants.development.js:
44870
44957
  * LICENSE file in the root directory of this source tree.
44871
44958
  *)
44872
44959
  */
44960
+ //# sourceMappingURL=chunk-TDQP5DNM.js.map
@@ -1,13 +1,13 @@
1
1
  import {
2
2
  glob,
3
3
  rmdir
4
- } from "./chunk-ML34TC74.js";
4
+ } from "./chunk-TDQP5DNM.js";
5
5
  import {
6
6
  joinPath
7
- } from "./chunk-G6FN5VUE.js";
7
+ } from "./chunk-STRDP5MF.js";
8
8
  import {
9
9
  init_cjs_shims
10
- } from "./chunk-M63RTPGR.js";
10
+ } from "./chunk-ZPL24Y2D.js";
11
11
 
12
12
  // src/utils/template/cleanup.ts
13
13
  init_cjs_shims();
@@ -35,3 +35,4 @@ async function cleanup(webOutputDirectory) {
35
35
  export {
36
36
  cleanup
37
37
  };
38
+ //# sourceMappingURL=chunk-TEWHYB5G.js.map