@shopify/create-app 3.94.2 → 4.0.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/analytics-XLT3JDGP.js +33 -0
- package/dist/analytics-XUVDQAYG.js +39 -0
- package/dist/chunk-37G3KLO2.js +78 -0
- package/dist/chunk-4CS37CS5.js +665 -0
- package/dist/chunk-6OOTYTVB.js +1133 -0
- package/dist/{chunk-NIYBO6HO.js → chunk-ACS6S42W.js} +3 -3
- package/dist/chunk-ANIFE3UR.js +12 -0
- package/dist/{chunk-2ZQ4JUYQ.js → chunk-DHAC6KEL.js} +47 -12
- package/dist/chunk-DJW2W7VA.js +21 -0
- package/dist/chunk-DNF3EUMN.js +1771 -0
- package/dist/{chunk-LI75HRH4.js → chunk-DWGHKWV5.js} +1 -1
- package/dist/chunk-IGDZPTDH.js +371 -0
- package/dist/chunk-JCETIRLI.js +30 -0
- package/dist/chunk-JUV7D377.js +264 -0
- package/dist/{chunk-QCVAV5PM.js → chunk-LNOZTAML.js} +3618 -10143
- package/dist/{chunk-IFG7N3S2.js → chunk-OO33NRTL.js} +8 -12671
- package/dist/chunk-PES3XMQM.js +70 -0
- package/dist/chunk-QMXFPY46.js +55 -0
- package/dist/chunk-QN5KFM2B.js +104 -0
- package/dist/{chunk-XDAJMLCV.js → chunk-STHW3YIX.js} +43773 -43784
- package/dist/chunk-UMSYG5WJ.js +110 -0
- package/dist/chunk-UX6FRPFM.js +11555 -0
- package/dist/{chunk-CXPWSYGC.js → chunk-X2WZCKNE.js} +4 -14
- package/dist/chunk-YIHECXVH.js +5652 -0
- package/dist/chunk-YUPQUA3D.js +6106 -0
- package/dist/conf-store-RAVX2WFV.js +54 -0
- package/dist/custom-oclif-loader-354VAVF4.js +54 -0
- package/dist/deprecations-2QTB3736.js +55 -0
- package/dist/environments-LTWWRWCC.js +26 -0
- package/dist/error-handler-KHJE653Z.js +37 -0
- package/dist/fs-XENRLBMU.js +109 -0
- package/dist/hooks/postrun.js +6 -9
- package/dist/hooks/prerun.js +12 -25
- package/dist/{http-proxy-node16-U5VBDLS3.js → http-proxy-node16-XB2DSBCB.js} +3 -2
- package/dist/index.js +8987 -10518
- package/dist/is-global-KZMSAFQT.js +21 -0
- package/dist/latest-version-3PFKLJZM.js +7713 -0
- package/dist/lib-HWIFANCM.js +11 -0
- package/dist/{local-HD6YAL26.js → local-NQALOHJX.js} +3 -8
- package/dist/metadata-FXCUDE5I.js +20 -0
- package/dist/{node-package-manager-FD3ZCHSY.js → node-package-manager-7R7HDW4R.js} +17 -7
- package/dist/notifications-system-7QMDSL5Y.js +40 -0
- package/dist/output-PQSQ7U45.js +51 -0
- package/dist/{path-NQ6GZ2WO.js → path-EOPO7QNL.js} +2 -2
- package/dist/{prettier-67WYXU6J.js → prettier-UAG5TKE4.js} +2 -2
- package/dist/system-W4MMMHEV.js +47 -0
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/dist/typescript-TKTDYKKG.js +6 -0
- package/dist/{ui-TJ7NU25P.js → ui-2FROV2IT.js} +15 -6
- package/dist/{chunk-Q2E5NGP3.js → upgrade-FAUZ7VAF.js} +77 -125
- package/dist/version-HKPHVW5M.js +30 -0
- package/dist/version-T73ZLUJK.js +8 -0
- package/oclif.manifest.json +63 -66
- package/package.json +5 -5
- package/dist/chunk-27ZXSSGX.js +0 -14117
- package/dist/error-handler-ZQMQHJ3W.js +0 -25
- package/dist/lib-PPI2FZOR.js +0 -8
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
import {
|
|
2
|
+
__commonJS,
|
|
3
|
+
__require,
|
|
4
|
+
init_cjs_shims
|
|
5
|
+
} from "./chunk-PKR7KJ6P.js";
|
|
6
|
+
|
|
7
|
+
// ../../node_modules/.pnpm/get-stream@6.0.1/node_modules/get-stream/buffer-stream.js
|
|
8
|
+
var require_buffer_stream = __commonJS({
|
|
9
|
+
"../../node_modules/.pnpm/get-stream@6.0.1/node_modules/get-stream/buffer-stream.js"(exports, module) {
|
|
10
|
+
"use strict";
|
|
11
|
+
init_cjs_shims();
|
|
12
|
+
var { PassThrough: PassThroughStream } = __require("stream");
|
|
13
|
+
module.exports = (options) => {
|
|
14
|
+
options = { ...options };
|
|
15
|
+
let { array } = options, { encoding } = options, isBuffer = encoding === "buffer", objectMode = !1;
|
|
16
|
+
array ? objectMode = !(encoding || isBuffer) : encoding = encoding || "utf8", isBuffer && (encoding = null);
|
|
17
|
+
let stream = new PassThroughStream({ objectMode });
|
|
18
|
+
encoding && stream.setEncoding(encoding);
|
|
19
|
+
let length = 0, chunks = [];
|
|
20
|
+
return stream.on("data", (chunk) => {
|
|
21
|
+
chunks.push(chunk), objectMode ? length = chunks.length : length += chunk.length;
|
|
22
|
+
}), stream.getBufferedValue = () => array ? chunks : isBuffer ? Buffer.concat(chunks, length) : chunks.join(""), stream.getBufferedLength = () => length, stream;
|
|
23
|
+
};
|
|
24
|
+
}
|
|
25
|
+
});
|
|
26
|
+
|
|
27
|
+
// ../../node_modules/.pnpm/get-stream@6.0.1/node_modules/get-stream/index.js
|
|
28
|
+
var require_get_stream = __commonJS({
|
|
29
|
+
"../../node_modules/.pnpm/get-stream@6.0.1/node_modules/get-stream/index.js"(exports, module) {
|
|
30
|
+
"use strict";
|
|
31
|
+
init_cjs_shims();
|
|
32
|
+
var { constants: BufferConstants } = __require("buffer"), stream = __require("stream"), { promisify } = __require("util"), bufferStream = require_buffer_stream(), streamPipelinePromisified = promisify(stream.pipeline), MaxBufferError = class extends Error {
|
|
33
|
+
constructor() {
|
|
34
|
+
super("maxBuffer exceeded"), this.name = "MaxBufferError";
|
|
35
|
+
}
|
|
36
|
+
};
|
|
37
|
+
async function getStream(inputStream, options) {
|
|
38
|
+
if (!inputStream)
|
|
39
|
+
throw new Error("Expected a stream");
|
|
40
|
+
options = {
|
|
41
|
+
maxBuffer: 1 / 0,
|
|
42
|
+
...options
|
|
43
|
+
};
|
|
44
|
+
let { maxBuffer } = options, stream2 = bufferStream(options);
|
|
45
|
+
return await new Promise((resolve, reject) => {
|
|
46
|
+
let rejectPromise = (error) => {
|
|
47
|
+
error && stream2.getBufferedLength() <= BufferConstants.MAX_LENGTH && (error.bufferedData = stream2.getBufferedValue()), reject(error);
|
|
48
|
+
};
|
|
49
|
+
(async () => {
|
|
50
|
+
try {
|
|
51
|
+
await streamPipelinePromisified(inputStream, stream2), resolve();
|
|
52
|
+
} catch (error) {
|
|
53
|
+
rejectPromise(error);
|
|
54
|
+
}
|
|
55
|
+
})(), stream2.on("data", () => {
|
|
56
|
+
stream2.getBufferedLength() > maxBuffer && rejectPromise(new MaxBufferError());
|
|
57
|
+
});
|
|
58
|
+
}), stream2.getBufferedValue();
|
|
59
|
+
}
|
|
60
|
+
module.exports = getStream;
|
|
61
|
+
module.exports.buffer = (stream2, options) => getStream(stream2, { ...options, encoding: "buffer" });
|
|
62
|
+
module.exports.array = (stream2, options) => getStream(stream2, { ...options, array: !0 });
|
|
63
|
+
module.exports.MaxBufferError = MaxBufferError;
|
|
64
|
+
}
|
|
65
|
+
});
|
|
66
|
+
|
|
67
|
+
export {
|
|
68
|
+
require_get_stream
|
|
69
|
+
};
|
|
70
|
+
//# sourceMappingURL=chunk-PES3XMQM.js.map
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
import {
|
|
2
|
+
captureOutput,
|
|
3
|
+
require_lib
|
|
4
|
+
} from "./chunk-YIHECXVH.js";
|
|
5
|
+
import {
|
|
6
|
+
require_semver
|
|
7
|
+
} from "./chunk-6OOTYTVB.js";
|
|
8
|
+
import {
|
|
9
|
+
__toESM,
|
|
10
|
+
init_cjs_shims
|
|
11
|
+
} from "./chunk-PKR7KJ6P.js";
|
|
12
|
+
|
|
13
|
+
// ../cli-kit/dist/public/node/version.js
|
|
14
|
+
init_cjs_shims();
|
|
15
|
+
var import_which = __toESM(require_lib(), 1), import_semver = __toESM(require_semver(), 1);
|
|
16
|
+
async function localCLIVersion(directory) {
|
|
17
|
+
try {
|
|
18
|
+
return (await captureOutput("npm", ["list", "@shopify/cli"], { cwd: directory })).match(/@shopify\/cli@([\w.-]*)/)?.[1];
|
|
19
|
+
} catch {
|
|
20
|
+
return;
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
async function globalCLIVersion() {
|
|
24
|
+
try {
|
|
25
|
+
let env = { ...process.env, SHOPIFY_CLI_NO_ANALYTICS: "1" }, shopifyBinaries = import_which.default.sync("shopify", { all: !0 }).filter((path) => !path.includes("node_modules"));
|
|
26
|
+
if (!shopifyBinaries[0])
|
|
27
|
+
return;
|
|
28
|
+
let versionMatch = (await captureOutput(shopifyBinaries[0], [], { env })).match(/@shopify\/cli\/([^\s]+)/);
|
|
29
|
+
if (versionMatch && versionMatch[1]) {
|
|
30
|
+
let version = versionMatch[1];
|
|
31
|
+
if ((0, import_semver.satisfies)(version, ">=3.59.0") || isPreReleaseVersion(version))
|
|
32
|
+
return version;
|
|
33
|
+
}
|
|
34
|
+
return;
|
|
35
|
+
} catch {
|
|
36
|
+
return;
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
function isPreReleaseVersion(version) {
|
|
40
|
+
return version.startsWith("0.0.0");
|
|
41
|
+
}
|
|
42
|
+
function isMajorVersionChange(currentVersion, newerVersion) {
|
|
43
|
+
if (isPreReleaseVersion(currentVersion) || isPreReleaseVersion(newerVersion))
|
|
44
|
+
return !1;
|
|
45
|
+
let currentSemVer = new import_semver.SemVer(currentVersion), newerSemVer = new import_semver.SemVer(newerVersion);
|
|
46
|
+
return currentSemVer.major !== newerSemVer.major;
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
export {
|
|
50
|
+
localCLIVersion,
|
|
51
|
+
globalCLIVersion,
|
|
52
|
+
isPreReleaseVersion,
|
|
53
|
+
isMajorVersionChange
|
|
54
|
+
};
|
|
55
|
+
//# sourceMappingURL=chunk-QMXFPY46.js.map
|
|
@@ -0,0 +1,104 @@
|
|
|
1
|
+
import {
|
|
2
|
+
outputDebug
|
|
3
|
+
} from "./chunk-LNOZTAML.js";
|
|
4
|
+
import {
|
|
5
|
+
init_cjs_shims
|
|
6
|
+
} from "./chunk-PKR7KJ6P.js";
|
|
7
|
+
|
|
8
|
+
// ../cli-kit/dist/public/node/tree-kill.js
|
|
9
|
+
init_cjs_shims();
|
|
10
|
+
import { spawn } from "child_process";
|
|
11
|
+
function treeKill(pid = process.pid, killSignal = "SIGTERM", killRoot = !0, callback) {
|
|
12
|
+
adaptedTreeKill(pid, killSignal, killRoot, callback ?? ((error) => {
|
|
13
|
+
error && outputDebug(`Failed to kill process ${pid}: ${error}`);
|
|
14
|
+
}));
|
|
15
|
+
}
|
|
16
|
+
function adaptedTreeKill(pid, killSignal, killRoot, callback) {
|
|
17
|
+
let rootPid = typeof pid == "number" ? pid.toString() : pid;
|
|
18
|
+
if (!/^\d+$/.test(rootPid))
|
|
19
|
+
if (callback) {
|
|
20
|
+
callback(new Error("pid must be a number"));
|
|
21
|
+
return;
|
|
22
|
+
} else
|
|
23
|
+
throw new Error("pid must be a number");
|
|
24
|
+
let tree = {};
|
|
25
|
+
tree[rootPid] = [];
|
|
26
|
+
let pidsToProcess = /* @__PURE__ */ new Set();
|
|
27
|
+
switch (pidsToProcess.add(rootPid), process.platform) {
|
|
28
|
+
case "win32": {
|
|
29
|
+
spawn("taskkill", ["/pid", rootPid, "/T", "/F"]).on("close", (code) => {
|
|
30
|
+
callback && (code === 0 ? callback() : callback(new Error(`taskkill exited with code ${code}`)));
|
|
31
|
+
});
|
|
32
|
+
break;
|
|
33
|
+
}
|
|
34
|
+
case "darwin":
|
|
35
|
+
buildProcessTree(rootPid, tree, pidsToProcess, function(parentPid) {
|
|
36
|
+
return spawn("pgrep", ["-lfP", parentPid]);
|
|
37
|
+
}, function() {
|
|
38
|
+
killAll(tree, killSignal, rootPid, killRoot, callback);
|
|
39
|
+
});
|
|
40
|
+
break;
|
|
41
|
+
default:
|
|
42
|
+
buildProcessTree(rootPid, tree, pidsToProcess, function(parentPid) {
|
|
43
|
+
return spawn("ps", ["-o", "pid command", "--no-headers", "--ppid", parentPid]);
|
|
44
|
+
}, function() {
|
|
45
|
+
killAll(tree, killSignal, rootPid, killRoot, callback);
|
|
46
|
+
});
|
|
47
|
+
break;
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
function killAll(tree, killSignal, rootPid, killRoot, callback) {
|
|
51
|
+
let killed = /* @__PURE__ */ new Set();
|
|
52
|
+
try {
|
|
53
|
+
Object.keys(tree).forEach(function(pid) {
|
|
54
|
+
tree[pid].forEach(function(pidpid) {
|
|
55
|
+
killed.has(pidpid) || (killPid(pidpid, killSignal), killed.add(pidpid));
|
|
56
|
+
}), pid === rootPid && killRoot && !killed.has(pid) && (killPid(pid, killSignal), killed.add(pid));
|
|
57
|
+
});
|
|
58
|
+
} catch (err) {
|
|
59
|
+
if (callback) {
|
|
60
|
+
callback(err);
|
|
61
|
+
return;
|
|
62
|
+
} else
|
|
63
|
+
throw err;
|
|
64
|
+
}
|
|
65
|
+
callback && callback();
|
|
66
|
+
}
|
|
67
|
+
function killPid(pid, killSignal) {
|
|
68
|
+
try {
|
|
69
|
+
process.kill(parseInt(pid, 10), killSignal);
|
|
70
|
+
} catch (err) {
|
|
71
|
+
if (err.code !== "ESRCH")
|
|
72
|
+
throw err;
|
|
73
|
+
}
|
|
74
|
+
}
|
|
75
|
+
function buildProcessTree(parentPid, tree, pidsToProcess, spawnChildProcessesList, cb) {
|
|
76
|
+
let ps = spawnChildProcessesList(parentPid), allData = "";
|
|
77
|
+
ps.stdout?.on("data", function(data) {
|
|
78
|
+
let dataStr = data.toString("ascii");
|
|
79
|
+
allData += dataStr;
|
|
80
|
+
});
|
|
81
|
+
let onClose = (code) => {
|
|
82
|
+
if (pidsToProcess.delete(parentPid), code !== 0) {
|
|
83
|
+
if (pidsToProcess.size === 0) {
|
|
84
|
+
cb();
|
|
85
|
+
return;
|
|
86
|
+
}
|
|
87
|
+
return;
|
|
88
|
+
}
|
|
89
|
+
allData.trim().split(`
|
|
90
|
+
`).forEach(function(line) {
|
|
91
|
+
let match = line.match(/^(\d+)\s(.*)$/);
|
|
92
|
+
if (match) {
|
|
93
|
+
let pid = match[1], cmd = match[2];
|
|
94
|
+
tree[parentPid].push(pid), tree[pid] = [], outputDebug(`Killing process ${pid}: ${cmd}`), pidsToProcess.add(pid), buildProcessTree(pid, tree, pidsToProcess, spawnChildProcessesList, cb);
|
|
95
|
+
}
|
|
96
|
+
});
|
|
97
|
+
};
|
|
98
|
+
ps.on("close", onClose);
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
export {
|
|
102
|
+
treeKill
|
|
103
|
+
};
|
|
104
|
+
//# sourceMappingURL=chunk-QN5KFM2B.js.map
|