@shopify/create-app 3.94.3 → 4.1.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/README.md +2 -2
- package/dist/analytics-RYQKQ4DG.js +39 -0
- package/dist/analytics-ZSO2XN53.js +33 -0
- package/dist/chunk-32DG2OXV.js +110 -0
- package/dist/chunk-6OOTYTVB.js +1133 -0
- package/dist/chunk-7OFS6B2C.js +12 -0
- package/dist/chunk-A6TJPMVH.js +661 -0
- package/dist/{chunk-NIYBO6HO.js → chunk-ACS6S42W.js} +3 -3
- package/dist/{chunk-BRNDLYPU.js → chunk-BMI6QCMV.js} +3617 -10143
- package/dist/chunk-C5OLLQWI.js +5620 -0
- package/dist/chunk-CEGG2EWP.js +104 -0
- package/dist/chunk-DJW2W7VA.js +21 -0
- package/dist/{chunk-LI75HRH4.js → chunk-DWGHKWV5.js} +1 -1
- package/dist/chunk-JCETIRLI.js +30 -0
- package/dist/chunk-JT5MT2JE.js +371 -0
- package/dist/chunk-MIECGF3H.js +264 -0
- package/dist/{chunk-IFG7N3S2.js → chunk-OO33NRTL.js} +8 -12671
- package/dist/chunk-PES3XMQM.js +70 -0
- package/dist/chunk-PVHOBK32.js +1771 -0
- package/dist/chunk-RB7BXTZQ.js +6106 -0
- package/dist/{chunk-HUNONZYG.js → chunk-S4YEA2XG.js} +43774 -43785
- package/dist/chunk-SWITKWBS.js +78 -0
- package/dist/{chunk-KKIDWI27.js → chunk-TS6LOJXS.js} +47 -12
- package/dist/chunk-TVUF42MB.js +55 -0
- package/dist/chunk-UX6FRPFM.js +11555 -0
- package/dist/{chunk-CXPWSYGC.js → chunk-X2WZCKNE.js} +4 -14
- package/dist/conf-store-R26LOTXD.js +54 -0
- package/dist/custom-oclif-loader-354VAVF4.js +54 -0
- package/dist/deprecations-JWETMJFF.js +55 -0
- package/dist/environments-VKYG7DMX.js +26 -0
- package/dist/error-handler-YXGIUGKI.js +37 -0
- package/dist/fs-HPLMOQQD.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 +9175 -10612
- package/dist/is-global-OXCPPXM7.js +21 -0
- package/dist/latest-version-3PFKLJZM.js +7713 -0
- package/dist/lib-HWIFANCM.js +11 -0
- package/dist/{local-6XZDLEBK.js → local-6ARTMTVE.js} +3 -10
- package/dist/metadata-Z65VJ53L.js +20 -0
- package/dist/{node-package-manager-JVAQNYVX.js → node-package-manager-Q3Y2FSRM.js} +17 -7
- package/dist/notifications-system-2HPAOE4P.js +40 -0
- package/dist/output-MCH67S5U.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-YW6RJ2KQ.js +47 -0
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/dist/typescript-TKTDYKKG.js +6 -0
- package/dist/{ui-7HBWZC7M.js → ui-AYUE37Z3.js} +15 -6
- package/dist/{chunk-PWU6XFUQ.js → upgrade-DNAT5W4B.js} +77 -125
- package/dist/version-2J64V5CP.js +8 -0
- package/dist/version-V77ZX5N2.js +30 -0
- package/oclif.manifest.json +63 -66
- package/package.json +5 -5
- package/dist/chunk-HYOIEQ5O.js +0 -14117
- package/dist/error-handler-WFIT65SZ.js +0 -25
- package/dist/lib-PPI2FZOR.js +0 -8
package/README.md
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
<img src="https://img.shields.io/badge/License-MIT-green.svg" alt="License">
|
|
6
6
|
<a href="https://github.com/Shopify/cli/actions/workflows/shopify-cli.yml"></a>
|
|
7
7
|
|
|
8
|
-
With the Shopify command line interface (Shopify CLI
|
|
8
|
+
With the Shopify command line interface (Shopify CLI), you can:
|
|
9
9
|
- initialize, build, dev, and deploy Shopify apps, extensions, functions and themes
|
|
10
10
|
- build custom storefronts and manage their hosting
|
|
11
11
|
|
|
@@ -39,7 +39,7 @@ To work with themes, the CLI needs to be installed globally with:
|
|
|
39
39
|
|
|
40
40
|
- `npm install -g @shopify/cli`
|
|
41
41
|
|
|
42
|
-
You can also
|
|
42
|
+
You can also install it through Homebrew on macOS: `brew tap shopify/shopify && brew install shopify-cli`
|
|
43
43
|
|
|
44
44
|
Learn more in the docs: [Shopify CLI for themes](https://shopify.dev/docs/storefronts/themes/tools/cli)
|
|
45
45
|
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import {
|
|
2
|
+
compileData,
|
|
3
|
+
recordError,
|
|
4
|
+
recordEvent,
|
|
5
|
+
recordRetry,
|
|
6
|
+
recordTiming,
|
|
7
|
+
reportAnalyticsEvent
|
|
8
|
+
} from "./chunk-S4YEA2XG.js";
|
|
9
|
+
import "./chunk-JCETIRLI.js";
|
|
10
|
+
import "./chunk-JT5MT2JE.js";
|
|
11
|
+
import "./chunk-7OFS6B2C.js";
|
|
12
|
+
import "./chunk-VBBBCVMH.js";
|
|
13
|
+
import "./chunk-RB7BXTZQ.js";
|
|
14
|
+
import "./chunk-C5OLLQWI.js";
|
|
15
|
+
import "./chunk-SWITKWBS.js";
|
|
16
|
+
import "./chunk-MIECGF3H.js";
|
|
17
|
+
import "./chunk-UX6FRPFM.js";
|
|
18
|
+
import "./chunk-X2WZCKNE.js";
|
|
19
|
+
import "./chunk-G2ZZKGSV.js";
|
|
20
|
+
import "./chunk-OO33NRTL.js";
|
|
21
|
+
import "./chunk-PES3XMQM.js";
|
|
22
|
+
import "./chunk-6OOTYTVB.js";
|
|
23
|
+
import "./chunk-CEGG2EWP.js";
|
|
24
|
+
import "./chunk-BMI6QCMV.js";
|
|
25
|
+
import "./chunk-A6TJPMVH.js";
|
|
26
|
+
import "./chunk-DJW2W7VA.js";
|
|
27
|
+
import "./chunk-ACS6S42W.js";
|
|
28
|
+
import "./chunk-AROS7RI6.js";
|
|
29
|
+
import "./chunk-7IK72W75.js";
|
|
30
|
+
import "./chunk-PKR7KJ6P.js";
|
|
31
|
+
export {
|
|
32
|
+
compileData,
|
|
33
|
+
recordError,
|
|
34
|
+
recordEvent,
|
|
35
|
+
recordRetry,
|
|
36
|
+
recordTiming,
|
|
37
|
+
reportAnalyticsEvent
|
|
38
|
+
};
|
|
39
|
+
//# sourceMappingURL=analytics-RYQKQ4DG.js.map
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import {
|
|
2
|
+
getEnvironmentData,
|
|
3
|
+
getSensitiveEnvironmentData,
|
|
4
|
+
startAnalytics
|
|
5
|
+
} from "./chunk-S4YEA2XG.js";
|
|
6
|
+
import "./chunk-JCETIRLI.js";
|
|
7
|
+
import "./chunk-JT5MT2JE.js";
|
|
8
|
+
import "./chunk-7OFS6B2C.js";
|
|
9
|
+
import "./chunk-VBBBCVMH.js";
|
|
10
|
+
import "./chunk-RB7BXTZQ.js";
|
|
11
|
+
import "./chunk-C5OLLQWI.js";
|
|
12
|
+
import "./chunk-SWITKWBS.js";
|
|
13
|
+
import "./chunk-MIECGF3H.js";
|
|
14
|
+
import "./chunk-UX6FRPFM.js";
|
|
15
|
+
import "./chunk-X2WZCKNE.js";
|
|
16
|
+
import "./chunk-G2ZZKGSV.js";
|
|
17
|
+
import "./chunk-OO33NRTL.js";
|
|
18
|
+
import "./chunk-PES3XMQM.js";
|
|
19
|
+
import "./chunk-6OOTYTVB.js";
|
|
20
|
+
import "./chunk-CEGG2EWP.js";
|
|
21
|
+
import "./chunk-BMI6QCMV.js";
|
|
22
|
+
import "./chunk-A6TJPMVH.js";
|
|
23
|
+
import "./chunk-DJW2W7VA.js";
|
|
24
|
+
import "./chunk-ACS6S42W.js";
|
|
25
|
+
import "./chunk-AROS7RI6.js";
|
|
26
|
+
import "./chunk-7IK72W75.js";
|
|
27
|
+
import "./chunk-PKR7KJ6P.js";
|
|
28
|
+
export {
|
|
29
|
+
getEnvironmentData,
|
|
30
|
+
getSensitiveEnvironmentData,
|
|
31
|
+
startAnalytics
|
|
32
|
+
};
|
|
33
|
+
//# sourceMappingURL=analytics-ZSO2XN53.js.map
|
|
@@ -0,0 +1,110 @@
|
|
|
1
|
+
import {
|
|
2
|
+
treeKill
|
|
3
|
+
} from "./chunk-CEGG2EWP.js";
|
|
4
|
+
import {
|
|
5
|
+
init_cjs_shims
|
|
6
|
+
} from "./chunk-PKR7KJ6P.js";
|
|
7
|
+
|
|
8
|
+
// ../cli-kit/dist/public/node/hooks/postrun.js
|
|
9
|
+
init_cjs_shims();
|
|
10
|
+
var postRunHookCompleted = !1;
|
|
11
|
+
function postRunHookHasCompleted() {
|
|
12
|
+
return postRunHookCompleted;
|
|
13
|
+
}
|
|
14
|
+
function waitForPostRunHookAndExit() {
|
|
15
|
+
let elapsed = 0, terminating = !1, handle = setInterval(() => {
|
|
16
|
+
if (!terminating) {
|
|
17
|
+
if (postRunHookHasCompleted() || elapsed >= 12e4) {
|
|
18
|
+
terminating = !0, clearInterval(handle), treeKill(process.pid, "SIGINT", !1, () => {
|
|
19
|
+
process.exit(0);
|
|
20
|
+
});
|
|
21
|
+
return;
|
|
22
|
+
}
|
|
23
|
+
elapsed += 100;
|
|
24
|
+
}
|
|
25
|
+
}, 100);
|
|
26
|
+
}
|
|
27
|
+
var hook = async ({ config, Command }) => {
|
|
28
|
+
await detectStopCommand(Command);
|
|
29
|
+
let { reportAnalyticsEvent } = await import("./analytics-RYQKQ4DG.js");
|
|
30
|
+
await reportAnalyticsEvent({ config, exitMode: "ok" });
|
|
31
|
+
let { postrun: deprecationsHook } = await import("./deprecations-JWETMJFF.js");
|
|
32
|
+
deprecationsHook(Command);
|
|
33
|
+
let { outputDebug } = await import("./output-MCH67S5U.js"), command = Command.id.replace(/:/g, " ");
|
|
34
|
+
outputDebug(`Completed command ${command}`), !command.includes("notifications") && !command.includes("upgrade") && await autoUpgradeIfNeeded(), postRunHookCompleted = !0;
|
|
35
|
+
};
|
|
36
|
+
async function autoUpgradeIfNeeded() {
|
|
37
|
+
let { versionToAutoUpgrade, warnIfUpgradeAvailable } = await import("./upgrade-DNAT5W4B.js"), newerVersion = versionToAutoUpgrade();
|
|
38
|
+
if (!newerVersion) {
|
|
39
|
+
await warnIfUpgradeAvailable();
|
|
40
|
+
return;
|
|
41
|
+
}
|
|
42
|
+
if (process.env.SHOPIFY_CLI_FORCE_AUTO_UPGRADE === "1")
|
|
43
|
+
await performAutoUpgrade(newerVersion);
|
|
44
|
+
else {
|
|
45
|
+
let { runAtMinimumInterval } = await import("./conf-store-R26LOTXD.js");
|
|
46
|
+
await runAtMinimumInterval("auto-upgrade", { days: 1 }, async () => {
|
|
47
|
+
await performAutoUpgrade(newerVersion);
|
|
48
|
+
});
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
async function performAutoUpgrade(newerVersion) {
|
|
52
|
+
let [{ CLI_KIT_VERSION }, { isMajorVersionChange }, { outputWarn, outputDebug }, { getOutputUpdateCLIReminder, runCLIUpgrade, hasBlockingAutoUpgradeNotification }, metadata] = await Promise.all([
|
|
53
|
+
import("./version-2J64V5CP.js"),
|
|
54
|
+
import("./version-V77ZX5N2.js"),
|
|
55
|
+
import("./output-MCH67S5U.js"),
|
|
56
|
+
import("./upgrade-DNAT5W4B.js"),
|
|
57
|
+
import("./metadata-Z65VJ53L.js")
|
|
58
|
+
]);
|
|
59
|
+
if (isMajorVersionChange(CLI_KIT_VERSION, newerVersion)) {
|
|
60
|
+
outputWarn(getOutputUpdateCLIReminder(newerVersion, !0)), await metadata.addPublicMetadata(() => ({
|
|
61
|
+
env_auto_upgrade_skipped_reason: "major_version"
|
|
62
|
+
}));
|
|
63
|
+
return;
|
|
64
|
+
}
|
|
65
|
+
if (await hasBlockingAutoUpgradeNotification()) {
|
|
66
|
+
await metadata.addPublicMetadata(() => ({
|
|
67
|
+
env_auto_upgrade_skipped_reason: "blocked_by_notification"
|
|
68
|
+
}));
|
|
69
|
+
return;
|
|
70
|
+
}
|
|
71
|
+
try {
|
|
72
|
+
await runCLIUpgrade({ autoupgrade: !0 }), await metadata.addPublicMetadata(() => ({ env_auto_upgrade_success: !0 }));
|
|
73
|
+
} catch (error) {
|
|
74
|
+
let errorMessage = `Auto-upgrade failed: ${error}`;
|
|
75
|
+
outputDebug(errorMessage), outputWarn(getOutputUpdateCLIReminder(newerVersion)), await metadata.addPublicMetadata(() => ({ env_auto_upgrade_success: !1 }));
|
|
76
|
+
let [{ sendErrorToBugsnag }, { inferPackageManagerForGlobalCLI }] = await Promise.all([
|
|
77
|
+
import("./error-handler-YXGIUGKI.js"),
|
|
78
|
+
import("./is-global-OXCPPXM7.js")
|
|
79
|
+
]), enrichedError = Object.assign(new Error(errorMessage), {
|
|
80
|
+
packageManager: inferPackageManagerForGlobalCLI(),
|
|
81
|
+
platform: process.platform,
|
|
82
|
+
cliVersion: CLI_KIT_VERSION
|
|
83
|
+
});
|
|
84
|
+
await sendErrorToBugsnag(enrichedError, "expected_error");
|
|
85
|
+
}
|
|
86
|
+
}
|
|
87
|
+
async function detectStopCommand(commandClass) {
|
|
88
|
+
let currentTime = (/* @__PURE__ */ new Date()).getTime();
|
|
89
|
+
if (commandClass && "analyticsStopCommand" in commandClass && typeof commandClass.analyticsStopCommand == "function") {
|
|
90
|
+
let stopCommand = commandClass.analyticsStopCommand();
|
|
91
|
+
if (stopCommand) {
|
|
92
|
+
let metadata = await import("./metadata-Z65VJ53L.js"), { commandStartOptions } = metadata.getAllSensitiveMetadata();
|
|
93
|
+
if (!commandStartOptions)
|
|
94
|
+
return;
|
|
95
|
+
await metadata.addSensitiveMetadata(() => ({
|
|
96
|
+
commandStartOptions: {
|
|
97
|
+
...commandStartOptions,
|
|
98
|
+
startTime: currentTime,
|
|
99
|
+
startCommand: stopCommand
|
|
100
|
+
}
|
|
101
|
+
}));
|
|
102
|
+
}
|
|
103
|
+
}
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
export {
|
|
107
|
+
waitForPostRunHookAndExit,
|
|
108
|
+
hook
|
|
109
|
+
};
|
|
110
|
+
//# sourceMappingURL=chunk-32DG2OXV.js.map
|