@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.
- package/dist/chunk-3JLUTHGR.js +114 -0
- package/dist/chunk-3JNB3A7C.js +14080 -0
- package/dist/chunk-4DXNY52K.js +104 -0
- package/dist/chunk-4SXWHRL5.js +62 -0
- package/dist/chunk-5RH4B5Q7.js +30996 -0
- package/dist/chunk-7XQTD3L4.js +213522 -0
- package/dist/chunk-ADG25CKO.js +2468 -0
- package/dist/chunk-ASLSMEKR.js +18914 -0
- package/dist/chunk-BOIUUJSH.js +99 -0
- package/dist/chunk-CKY5L2DS.js +37 -0
- package/dist/chunk-CPDHSAO5.js +3179 -0
- package/dist/chunk-FBB6KUZG.js +821 -0
- package/dist/chunk-G6FN5VUE.js +102 -0
- package/dist/chunk-GXPKATXW.js +194 -0
- package/dist/chunk-H7CRO63U.js +11 -0
- package/dist/chunk-JP7Y3CTL.js +72 -0
- package/dist/chunk-LKGDG6WW.js +87 -0
- package/dist/chunk-M63RTPGR.js +63 -0
- package/dist/chunk-ND5WSAZY.js +7817 -0
- package/dist/chunk-P4TVG45N.js +900 -0
- package/dist/chunk-TMGCRPEZ.js +4283 -0
- package/dist/chunk-UVY6LL5H.js +145 -0
- package/dist/chunk-VMPTLMJN.js +144 -0
- package/dist/chunk-WCNR75S2.js +73 -0
- package/dist/chunk-WLJ2CNLG.js +45349 -0
- package/dist/chunk-YLEF4RUH.js +144 -0
- package/dist/chunk-ZDCQCTOO.js +13764 -0
- package/dist/chunk-ZPB26OWQ.js +5605 -0
- package/dist/commands/init.d.ts +2 -1
- package/dist/commands/init.js +31 -123
- package/dist/commands/init.js.map +1 -1
- package/dist/commands/init.test.js +123 -0
- package/dist/constants-K3R4N3N3.js +19 -0
- package/dist/custom-oclif-loader-GA6B7DEF.js +83 -0
- package/dist/del-A5YM6R3Y.js +2846 -0
- package/dist/devtools-KQM4GF6J.js +3685 -0
- package/dist/error-handler-U53E7YKG.js +34 -0
- package/dist/hooks/postrun.js +108 -2
- package/dist/hooks/prerun.js +77 -2
- package/dist/index.js +22 -7
- package/dist/lib-76JUGQYQ.js +8 -0
- package/dist/local-XVLEGQFE.js +59 -0
- package/dist/magic-string.es-6WMSFIAX.js +1291 -0
- package/dist/multipart-parser-O2BQODS2.js +359 -0
- package/dist/node-package-manager-76YAD3UB.js +68 -0
- package/dist/open-B7XFJJCK.js +290 -0
- package/dist/out-JZ52TJE3.js +5 -0
- package/dist/path-HO4HBKK5.js +28 -0
- package/dist/prompts/init.d.ts +4 -3
- package/dist/prompts/init.js +23 -118
- package/dist/prompts/init.js.map +1 -1
- package/dist/prompts/init.test.js +115 -0
- package/dist/services/init.d.ts +3 -1
- package/dist/services/init.js +25 -139
- package/dist/services/init.js.map +1 -1
- package/dist/services/init.test.js +18 -0
- package/dist/system-XBDENYNR.js +25 -0
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/dist/ui-ZVCYWXG6.js +49 -0
- package/dist/utils/template/cleanup.js +18 -19
- package/dist/utils/template/cleanup.test.js +74 -0
- package/dist/utils/template/npm.d.ts +2 -1
- package/dist/utils/template/npm.js +22 -58
- package/dist/utils/template/npm.js.map +1 -1
- package/dist/utils/template/npm.test.js +153 -0
- package/dist/yoga.wasm +0 -0
- package/oclif.manifest.json +1 -1
- package/package.json +5 -6
- package/dist/constants.d.ts +0 -1
- package/dist/constants.js +0 -2
- package/dist/constants.js.map +0 -1
- package/dist/utils/versions.d.ts +0 -1
- package/dist/utils/versions.js +0 -21
- 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
|
+
};
|