@shopify/create-app 3.58.1 → 3.59.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 (74) hide show
  1. package/dist/chunk-3JLUTHGR.js +114 -0
  2. package/dist/chunk-3JNB3A7C.js +14080 -0
  3. package/dist/chunk-4DXNY52K.js +104 -0
  4. package/dist/chunk-4SXWHRL5.js +62 -0
  5. package/dist/chunk-5RH4B5Q7.js +30996 -0
  6. package/dist/chunk-7XQTD3L4.js +213522 -0
  7. package/dist/chunk-ADG25CKO.js +2468 -0
  8. package/dist/chunk-ASLSMEKR.js +18914 -0
  9. package/dist/chunk-BOIUUJSH.js +99 -0
  10. package/dist/chunk-CKY5L2DS.js +37 -0
  11. package/dist/chunk-CPDHSAO5.js +3179 -0
  12. package/dist/chunk-FBB6KUZG.js +821 -0
  13. package/dist/chunk-G6FN5VUE.js +102 -0
  14. package/dist/chunk-GXPKATXW.js +194 -0
  15. package/dist/chunk-H7CRO63U.js +11 -0
  16. package/dist/chunk-JP7Y3CTL.js +72 -0
  17. package/dist/chunk-LKGDG6WW.js +87 -0
  18. package/dist/chunk-M63RTPGR.js +63 -0
  19. package/dist/chunk-ND5WSAZY.js +7817 -0
  20. package/dist/chunk-P4TVG45N.js +900 -0
  21. package/dist/chunk-TMGCRPEZ.js +4283 -0
  22. package/dist/chunk-UVY6LL5H.js +145 -0
  23. package/dist/chunk-VMPTLMJN.js +144 -0
  24. package/dist/chunk-WCNR75S2.js +73 -0
  25. package/dist/chunk-WLJ2CNLG.js +45349 -0
  26. package/dist/chunk-YLEF4RUH.js +144 -0
  27. package/dist/chunk-ZDCQCTOO.js +13764 -0
  28. package/dist/chunk-ZPB26OWQ.js +5605 -0
  29. package/dist/commands/init.d.ts +2 -1
  30. package/dist/commands/init.js +31 -123
  31. package/dist/commands/init.js.map +1 -1
  32. package/dist/commands/init.test.js +123 -0
  33. package/dist/constants-K3R4N3N3.js +19 -0
  34. package/dist/custom-oclif-loader-GA6B7DEF.js +83 -0
  35. package/dist/del-A5YM6R3Y.js +2846 -0
  36. package/dist/devtools-KQM4GF6J.js +3685 -0
  37. package/dist/error-handler-U53E7YKG.js +34 -0
  38. package/dist/hooks/postrun.js +108 -2
  39. package/dist/hooks/prerun.js +77 -2
  40. package/dist/index.js +22 -7
  41. package/dist/lib-76JUGQYQ.js +8 -0
  42. package/dist/local-XVLEGQFE.js +59 -0
  43. package/dist/magic-string.es-6WMSFIAX.js +1291 -0
  44. package/dist/multipart-parser-O2BQODS2.js +359 -0
  45. package/dist/node-package-manager-76YAD3UB.js +68 -0
  46. package/dist/open-B7XFJJCK.js +290 -0
  47. package/dist/out-JZ52TJE3.js +5 -0
  48. package/dist/path-HO4HBKK5.js +28 -0
  49. package/dist/prompts/init.d.ts +4 -3
  50. package/dist/prompts/init.js +23 -118
  51. package/dist/prompts/init.js.map +1 -1
  52. package/dist/prompts/init.test.js +115 -0
  53. package/dist/services/init.d.ts +3 -1
  54. package/dist/services/init.js +25 -139
  55. package/dist/services/init.js.map +1 -1
  56. package/dist/services/init.test.js +18 -0
  57. package/dist/system-XBDENYNR.js +25 -0
  58. package/dist/tsconfig.tsbuildinfo +1 -1
  59. package/dist/ui-ZVCYWXG6.js +49 -0
  60. package/dist/utils/template/cleanup.js +18 -19
  61. package/dist/utils/template/cleanup.test.js +74 -0
  62. package/dist/utils/template/npm.d.ts +2 -1
  63. package/dist/utils/template/npm.js +22 -58
  64. package/dist/utils/template/npm.js.map +1 -1
  65. package/dist/utils/template/npm.test.js +153 -0
  66. package/dist/yoga.wasm +0 -0
  67. package/oclif.manifest.json +1 -1
  68. package/package.json +5 -6
  69. package/dist/constants.d.ts +0 -1
  70. package/dist/constants.js +0 -2
  71. package/dist/constants.js.map +0 -1
  72. package/dist/utils/versions.d.ts +0 -1
  73. package/dist/utils/versions.js +0 -21
  74. package/dist/utils/versions.js.map +0 -1
@@ -0,0 +1,114 @@
1
+ import {
2
+ init_cjs_shims
3
+ } from "./chunk-M63RTPGR.js";
4
+
5
+ // ../../node_modules/.pnpm/p-limit@4.0.0/node_modules/p-limit/index.js
6
+ init_cjs_shims();
7
+
8
+ // ../../node_modules/.pnpm/yocto-queue@1.0.0/node_modules/yocto-queue/index.js
9
+ init_cjs_shims();
10
+ var Node = class {
11
+ value;
12
+ next;
13
+ constructor(value) {
14
+ this.value = value;
15
+ }
16
+ };
17
+ var Queue = class {
18
+ #head;
19
+ #tail;
20
+ #size;
21
+ constructor() {
22
+ this.clear();
23
+ }
24
+ enqueue(value) {
25
+ const node = new Node(value);
26
+ if (this.#head) {
27
+ this.#tail.next = node;
28
+ this.#tail = node;
29
+ } else {
30
+ this.#head = node;
31
+ this.#tail = node;
32
+ }
33
+ this.#size++;
34
+ }
35
+ dequeue() {
36
+ const current = this.#head;
37
+ if (!current) {
38
+ return;
39
+ }
40
+ this.#head = this.#head.next;
41
+ this.#size--;
42
+ return current.value;
43
+ }
44
+ clear() {
45
+ this.#head = void 0;
46
+ this.#tail = void 0;
47
+ this.#size = 0;
48
+ }
49
+ get size() {
50
+ return this.#size;
51
+ }
52
+ *[Symbol.iterator]() {
53
+ let current = this.#head;
54
+ while (current) {
55
+ yield current.value;
56
+ current = current.next;
57
+ }
58
+ }
59
+ };
60
+
61
+ // ../../node_modules/.pnpm/p-limit@4.0.0/node_modules/p-limit/index.js
62
+ function pLimit(concurrency) {
63
+ if (!((Number.isInteger(concurrency) || concurrency === Number.POSITIVE_INFINITY) && concurrency > 0)) {
64
+ throw new TypeError("Expected `concurrency` to be a number from 1 and up");
65
+ }
66
+ const queue = new Queue();
67
+ let activeCount = 0;
68
+ const next = () => {
69
+ activeCount--;
70
+ if (queue.size > 0) {
71
+ queue.dequeue()();
72
+ }
73
+ };
74
+ const run = async (fn, resolve, args) => {
75
+ activeCount++;
76
+ const result = (async () => fn(...args))();
77
+ resolve(result);
78
+ try {
79
+ await result;
80
+ } catch {
81
+ }
82
+ next();
83
+ };
84
+ const enqueue = (fn, resolve, args) => {
85
+ queue.enqueue(run.bind(void 0, fn, resolve, args));
86
+ (async () => {
87
+ await Promise.resolve();
88
+ if (activeCount < concurrency && queue.size > 0) {
89
+ queue.dequeue()();
90
+ }
91
+ })();
92
+ };
93
+ const generator = (fn, ...args) => new Promise((resolve) => {
94
+ enqueue(fn, resolve, args);
95
+ });
96
+ Object.defineProperties(generator, {
97
+ activeCount: {
98
+ get: () => activeCount
99
+ },
100
+ pendingCount: {
101
+ get: () => queue.size
102
+ },
103
+ clearQueue: {
104
+ value: () => {
105
+ queue.clear();
106
+ }
107
+ }
108
+ });
109
+ return generator;
110
+ }
111
+
112
+ export {
113
+ pLimit
114
+ };