@shopify/create-app 3.65.2 → 3.66.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-2RSJVBMF.js +5625 -0
- package/dist/{chunk-Z65QJ5D7.js → chunk-4DRC2PSU.js} +17 -30
- package/dist/chunk-4OD45DDO.js +31508 -0
- package/dist/chunk-522OB3EU.js +45 -0
- package/dist/{chunk-JTKTLA7L.js → chunk-5U24TEX5.js} +5434 -10324
- package/dist/{chunk-GJPZCXGT.js → chunk-6A7MXLVB.js} +159 -405
- package/dist/{chunk-ZYKRTO5P.js → chunk-7ZCQLP5Y.js} +3 -3
- package/dist/{chunk-5LBEKXRW.js → chunk-FIJKOZJF.js} +19 -55
- package/dist/{chunk-QSKQTKTB.js → chunk-FT6PCF6E.js} +2441 -5551
- package/dist/chunk-GIUM5DCQ.js +2144 -0
- package/dist/chunk-HIAKHDLR.js +54 -0
- package/dist/chunk-LLSRDN3T.js +15352 -0
- package/dist/chunk-LTDD2GRL.js +111 -0
- package/dist/{chunk-63QVG2CD.js → chunk-NGBYQF44.js} +9 -9
- package/dist/chunk-NLC7NBUB.js +80 -0
- package/dist/{chunk-FMKVOTQK.js → chunk-O5K4AU7Q.js} +18 -34
- package/dist/chunk-OMDEA7TV.js +10615 -0
- package/dist/chunk-PNN7RS7Y.js +105 -0
- package/dist/{chunk-ZPL24Y2D.js → chunk-POZ5MGPT.js} +13 -18
- package/dist/chunk-T7T35H4F.js +108 -0
- package/dist/chunk-UBB7JKND.js +55 -0
- package/dist/chunk-VSLR7ET4.js +3034 -0
- package/dist/{chunk-SAO7C4LP.js → chunk-VZVGAREJ.js} +46821 -101962
- package/dist/{chunk-KDNBKIH4.js → chunk-WBQF4CSV.js} +12 -22
- package/dist/chunk-XVNW332R.js +524 -0
- package/dist/{chunk-YB6D4XQ7.js → chunk-Y4ECGRAF.js} +13 -23
- package/dist/chunk-ZAUZQLNO.js +3774 -0
- package/dist/chunk-ZULFH3SL.js +1847 -0
- package/dist/commands/init.d.ts +0 -1
- package/dist/commands/init.js +27 -27
- package/dist/commands/init.test.js +51 -70
- package/dist/{constants-24TFXZKQ.js → constants-WG7I7G3O.js} +5 -5
- package/dist/custom-oclif-loader-JKRJZ56E.js +47 -0
- package/dist/del-NW5KFKFP.js +1820 -0
- package/dist/devtools-UBOREV57.js +2572 -0
- package/dist/error-handler-26SLAJTC.js +35 -0
- package/dist/hooks/postrun.js +35 -42
- package/dist/hooks/prerun.js +58 -36
- package/dist/index.js +7 -7
- package/dist/lib-3K5QYF3J.js +9 -0
- package/dist/{local-3VUKCW4R.js → local-H6TW5MNX.js} +13 -13
- package/dist/magic-string.es-3RXPUXZF.js +843 -0
- package/dist/multipart-parser-QKUAJJP5.js +193 -0
- package/dist/{node-package-manager-HYZRZNU6.js → node-package-manager-QAUN6HGS.js} +16 -14
- package/dist/open-MZGVNFZO.js +197 -0
- package/dist/out-KDGAD475.js +6 -0
- package/dist/{path-CFPIDSWV.js → path-L375JOQ2.js} +4 -4
- package/dist/prompts/init.js +13 -13
- package/dist/prompts/init.test.js +42 -59
- package/dist/services/init.js +20 -20
- package/dist/services/init.test.js +5 -5
- package/dist/system-ZI2HKAKO.js +26 -0
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/dist/{ui-7NEDEALP.js → ui-727JEZUX.js} +13 -13
- package/dist/utils/template/cleanup.js +13 -13
- package/dist/utils/template/cleanup.test.js +18 -30
- package/dist/utils/template/npm.js +15 -15
- package/dist/utils/template/npm.test.js +48 -87
- package/oclif.manifest.json +1 -1
- package/package.json +3 -4
- package/dist/chunk-3US34ZNP.js +0 -145
- package/dist/chunk-3XYIOBQ2.js +0 -22131
- package/dist/chunk-6IZMEXPW.js +0 -105
- package/dist/chunk-7DRS5WXI.js +0 -7843
- package/dist/chunk-DL3MKXVR.js +0 -4754
- package/dist/chunk-HDVJ5FPK.js +0 -63
- package/dist/chunk-IKO7JBOJ.js +0 -14788
- package/dist/chunk-LSCXQWNO.js +0 -822
- package/dist/chunk-M2VKB6RG.js +0 -146
- package/dist/chunk-MCED27CG.js +0 -5626
- package/dist/chunk-SWNRLCC6.js +0 -61
- package/dist/chunk-T5LLJYYS.js +0 -195
- package/dist/chunk-U5LTJVWL.js +0 -3185
- package/dist/chunk-WR7YKB6H.js +0 -44962
- package/dist/chunk-YC4FLMDD.js +0 -74
- package/dist/chunk-ZRUHMMSQ.js +0 -2477
- package/dist/custom-oclif-loader-5KBN3RSN.js +0 -83
- package/dist/del-ZCPTGWOA.js +0 -2847
- package/dist/devtools-5N4JAP3R.js +0 -3588
- package/dist/error-handler-GTW2KSRC.js +0 -35
- package/dist/lib-CTSCLPNV.js +0 -9
- package/dist/magic-string.es-ATGURXGQ.js +0 -1353
- package/dist/multipart-parser-KYOHF24X.js +0 -360
- package/dist/open-JRS7RW22.js +0 -291
- package/dist/out-OKI3G7I5.js +0 -6
- package/dist/system-4S4YXUXZ.js +0 -26
package/dist/chunk-M2VKB6RG.js
DELETED
|
@@ -1,146 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
init_cjs_shims
|
|
3
|
-
} from "./chunk-ZPL24Y2D.js";
|
|
4
|
-
|
|
5
|
-
// ../cli-kit/src/public/node/context/utilities.ts
|
|
6
|
-
init_cjs_shims();
|
|
7
|
-
function isTruthy(variable) {
|
|
8
|
-
if (!variable) {
|
|
9
|
-
return false;
|
|
10
|
-
}
|
|
11
|
-
return ["1", "true", "TRUE", "yes", "YES"].includes(variable);
|
|
12
|
-
}
|
|
13
|
-
|
|
14
|
-
// ../cli-kit/src/private/node/demo-recorder.ts
|
|
15
|
-
init_cjs_shims();
|
|
16
|
-
var DemoRecorder = class {
|
|
17
|
-
constructor() {
|
|
18
|
-
this.recorded = [];
|
|
19
|
-
this.sleepStart = Date.now();
|
|
20
|
-
this.command = ["shopify", ...process.argv.slice(2)].join(" ");
|
|
21
|
-
}
|
|
22
|
-
addEvent({ type, properties }) {
|
|
23
|
-
if (type === "taskbar") {
|
|
24
|
-
this.resetSleep();
|
|
25
|
-
} else {
|
|
26
|
-
this.addSleep();
|
|
27
|
-
}
|
|
28
|
-
this.recorded.push({ type, properties: JSON.parse(JSON.stringify(properties)) });
|
|
29
|
-
this.sleepStart = Date.now();
|
|
30
|
-
}
|
|
31
|
-
recordedEventsJson() {
|
|
32
|
-
return JSON.stringify(
|
|
33
|
-
{
|
|
34
|
-
command: this.command,
|
|
35
|
-
steps: this.withFormattedConcurrent(this.recorded)
|
|
36
|
-
},
|
|
37
|
-
null,
|
|
38
|
-
2
|
|
39
|
-
);
|
|
40
|
-
}
|
|
41
|
-
addSleep() {
|
|
42
|
-
const duration = (Date.now() - this.sleepStart) / 1e3;
|
|
43
|
-
this.sleepStart = Date.now();
|
|
44
|
-
if (duration > 0.1) {
|
|
45
|
-
this.recorded.push({ type: "sleep", properties: { duration } });
|
|
46
|
-
}
|
|
47
|
-
}
|
|
48
|
-
resetSleep() {
|
|
49
|
-
this.sleepStart = Date.now();
|
|
50
|
-
}
|
|
51
|
-
addOrUpdateConcurrentOutput({ prefix, index, output }) {
|
|
52
|
-
let last = this.recorded[this.recorded.length - 1];
|
|
53
|
-
if (last?.type === "concurrent") {
|
|
54
|
-
this.resetSleep();
|
|
55
|
-
} else {
|
|
56
|
-
const eventProperties = {
|
|
57
|
-
type: "concurrent",
|
|
58
|
-
properties: { processes: [], concurrencyStart: Date.now() }
|
|
59
|
-
};
|
|
60
|
-
this.addEvent(eventProperties);
|
|
61
|
-
last = this.recorded[this.recorded.length - 1];
|
|
62
|
-
}
|
|
63
|
-
const { processes } = last.properties;
|
|
64
|
-
while (processes.length <= index) {
|
|
65
|
-
processes.push({ prefix: "", steps: [] });
|
|
66
|
-
}
|
|
67
|
-
processes[index].prefix = prefix;
|
|
68
|
-
processes[index].steps.push({ timestamp: Date.now(), endMessage: output });
|
|
69
|
-
}
|
|
70
|
-
withFormattedConcurrent(recorded) {
|
|
71
|
-
return recorded.map((event) => {
|
|
72
|
-
if (event.type === "concurrent") {
|
|
73
|
-
const { processes, footer, concurrencyStart } = event.properties;
|
|
74
|
-
const formatted = processes.map(({ prefix, steps }) => {
|
|
75
|
-
let mostRecentTimestamp = concurrencyStart;
|
|
76
|
-
const formattedSteps = steps.map(({ timestamp, endMessage }) => {
|
|
77
|
-
const duration = (timestamp - mostRecentTimestamp) / 1e3;
|
|
78
|
-
mostRecentTimestamp = timestamp;
|
|
79
|
-
return { duration, endMessage };
|
|
80
|
-
});
|
|
81
|
-
return { prefix, steps: formattedSteps };
|
|
82
|
-
});
|
|
83
|
-
return { type: "concurrent", properties: { footer, processes: formatted } };
|
|
84
|
-
}
|
|
85
|
-
return event;
|
|
86
|
-
});
|
|
87
|
-
}
|
|
88
|
-
};
|
|
89
|
-
var NoopDemoRecorder = class {
|
|
90
|
-
addEvent(_event) {
|
|
91
|
-
}
|
|
92
|
-
recordedEventsJson() {
|
|
93
|
-
return JSON.stringify({ steps: [] }, null, 2);
|
|
94
|
-
}
|
|
95
|
-
addSleep() {
|
|
96
|
-
}
|
|
97
|
-
resetSleep() {
|
|
98
|
-
}
|
|
99
|
-
addOrUpdateConcurrentOutput(..._args) {
|
|
100
|
-
}
|
|
101
|
-
};
|
|
102
|
-
var _instance;
|
|
103
|
-
function ensureInstance() {
|
|
104
|
-
if (!_instance) {
|
|
105
|
-
if (isRecording()) {
|
|
106
|
-
_instance = new DemoRecorder();
|
|
107
|
-
} else {
|
|
108
|
-
_instance = new NoopDemoRecorder();
|
|
109
|
-
}
|
|
110
|
-
}
|
|
111
|
-
}
|
|
112
|
-
function initDemoRecorder() {
|
|
113
|
-
ensureInstance();
|
|
114
|
-
}
|
|
115
|
-
function recordUIEvent(event) {
|
|
116
|
-
ensureInstance();
|
|
117
|
-
_instance.addEvent(event);
|
|
118
|
-
}
|
|
119
|
-
function resetRecordedSleep() {
|
|
120
|
-
ensureInstance();
|
|
121
|
-
_instance.resetSleep();
|
|
122
|
-
}
|
|
123
|
-
function printEventsJson() {
|
|
124
|
-
if (isRecording()) {
|
|
125
|
-
ensureInstance();
|
|
126
|
-
_instance.addSleep();
|
|
127
|
-
console.log(_instance.recordedEventsJson());
|
|
128
|
-
}
|
|
129
|
-
}
|
|
130
|
-
function addOrUpdateConcurrentUIEventOutput(data) {
|
|
131
|
-
ensureInstance();
|
|
132
|
-
_instance.addOrUpdateConcurrentOutput(data);
|
|
133
|
-
}
|
|
134
|
-
function isRecording() {
|
|
135
|
-
return isTruthy(process.env.RECORD_DEMO);
|
|
136
|
-
}
|
|
137
|
-
|
|
138
|
-
export {
|
|
139
|
-
isTruthy,
|
|
140
|
-
initDemoRecorder,
|
|
141
|
-
recordUIEvent,
|
|
142
|
-
resetRecordedSleep,
|
|
143
|
-
printEventsJson,
|
|
144
|
-
addOrUpdateConcurrentUIEventOutput
|
|
145
|
-
};
|
|
146
|
-
//# sourceMappingURL=chunk-M2VKB6RG.js.map
|