@shopify/cli 3.76.2 → 3.77.1
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/assets/hydrogen/bundle/analyzer.html +21 -17
- package/dist/assets/hydrogen/starter/CHANGELOG.md +116 -36
- package/dist/assets/hydrogen/starter/app/layout.tsx +46 -0
- package/dist/assets/hydrogen/starter/app/root.tsx +1 -42
- package/dist/assets/hydrogen/starter/app/routes/search.tsx +4 -3
- package/dist/assets/hydrogen/starter/app/routes.ts +7 -0
- package/dist/assets/hydrogen/starter/package.json +17 -15
- package/dist/assets/hydrogen/starter/tsconfig.json +1 -1
- package/dist/assets/hydrogen/starter/vite.config.ts +2 -1
- package/dist/assets/hydrogen/tailwind/package.json +1 -1
- package/dist/assets/hydrogen/vanilla-extract/package.json +2 -2
- package/dist/assets/hydrogen/virtual-routes/assets/debug-network.css +27 -10
- package/dist/assets/hydrogen/virtual-routes/assets/styles.css +13 -2
- package/dist/assets/hydrogen/virtual-routes/layout.jsx +39 -0
- package/dist/assets/hydrogen/virtual-routes/virtual-root-with-layout.jsx +63 -0
- package/dist/assets/hydrogen/virtual-routes/virtual-root.jsx +10 -8
- package/dist/assets/hydrogen/vite/package.json +1 -1
- package/dist/assets/hydrogen/vite/vite.config.js +1 -0
- package/dist/{chunk-SROPQDQ2.js → chunk-3LPRAP3C.js} +4 -4
- package/dist/{chunk-TYXJ553W.js → chunk-4QUBSR5N.js} +2 -2
- package/dist/{chunk-ZUCWDIGE.js → chunk-57Q6OQG4.js} +2 -2
- package/dist/{chunk-AZ3SNZKH.js → chunk-5Y3LMFTE.js} +3 -3
- package/dist/{chunk-2WTNMSEA.js → chunk-7N6KTS5H.js} +3 -3
- package/dist/{chunk-BJXULBKX.js → chunk-7TDJWEEF.js} +143 -28
- package/dist/{chunk-3UYXKXR6.js → chunk-7Z57GKMD.js} +21 -8
- package/dist/{chunk-IKXB6S5W.js → chunk-CYZVSCKE.js} +2 -2
- package/dist/{chunk-SO2JXJNK.js → chunk-DE23IXCV.js} +7 -7
- package/dist/{chunk-WFJKWPG7.js → chunk-DXETR7HO.js} +4 -4
- package/dist/{chunk-DZC6PFFO.js → chunk-F7YDVUG6.js} +2 -2
- package/dist/{chunk-7ZRFR7FA.js → chunk-FGOKII2H.js} +7 -7
- package/dist/{chunk-J64C3R6H.js → chunk-G2Z2JNWZ.js} +3 -3
- package/dist/{chunk-DTR7ATW4.js → chunk-HL6ZWA6P.js} +3 -3
- package/dist/{chunk-CBRJA5VT.js → chunk-IDLVFDLS.js} +4 -4
- package/dist/{chunk-EPUCFUDR.js → chunk-J2TFYL5Z.js} +3 -3
- package/dist/{chunk-OSETU22I.js → chunk-JA44NPON.js} +3 -3
- package/dist/{chunk-WYLW7KVV.js → chunk-KMLSEENO.js} +3 -3
- package/dist/{chunk-3DV6EZ24.js → chunk-KRRCKFNF.js} +7 -7
- package/dist/{chunk-VXUNILLD.js → chunk-LGVMVIUY.js} +6 -3
- package/dist/{chunk-LLYJXSNC.js → chunk-MJ5E3G6Z.js} +3 -3
- package/dist/{chunk-MIAZDAJI.js → chunk-NKPXKN63.js} +2 -2
- package/dist/{chunk-XAK5UQFR.js → chunk-NMVJRPWT.js} +2 -2
- package/dist/{chunk-J4VMFBCX.js → chunk-ODZP3BOI.js} +3 -3
- package/dist/{chunk-WOA7JN7E.js → chunk-OZYTPWJS.js} +12 -8
- package/dist/{chunk-6RHYOJ63.js → chunk-PFXZ73LI.js} +5 -5
- package/dist/{chunk-KTICPCDH.js → chunk-RXPX6QL6.js} +4 -4
- package/dist/{chunk-PNWJ2GZC.js → chunk-THDGA4UF.js} +5 -5
- package/dist/{chunk-AHNHLXEN.js → chunk-TIMSXB7V.js} +9 -6
- package/dist/{chunk-XOWOZYS5.js → chunk-V24VKC54.js} +3 -3
- package/dist/{chunk-JMXX7A4N.js → chunk-V2EXSXIB.js} +2 -2
- package/dist/{chunk-QP45KHVL.js → chunk-Y7SMROY2.js} +214 -121
- package/dist/{chunk-TKC27SYH.js → chunk-YKGXAR4K.js} +268 -241
- package/dist/{chunk-WXONIGO7.js → chunk-YUFBJAT6.js} +5 -2
- package/dist/{chunk-KI626P2Z.js → chunk-YW77LWOY.js} +3 -3
- package/dist/{chunk-3IUNQ4LM.js → chunk-ZPXCGFEZ.js} +4 -4
- package/dist/cli/commands/auth/logout.js +12 -12
- package/dist/cli/commands/auth/logout.test.js +13 -13
- package/dist/cli/commands/cache/clear.js +11 -11
- package/dist/cli/commands/debug/command-flags.js +11 -11
- package/dist/cli/commands/docs/generate.js +11 -11
- package/dist/cli/commands/docs/generate.test.js +11 -11
- package/dist/cli/commands/help.d.ts +1 -0
- package/dist/cli/commands/help.js +11 -11
- package/dist/cli/commands/kitchen-sink/async.js +12 -12
- package/dist/cli/commands/kitchen-sink/async.test.js +12 -12
- package/dist/cli/commands/kitchen-sink/index.js +14 -14
- package/dist/cli/commands/kitchen-sink/index.test.js +14 -14
- package/dist/cli/commands/kitchen-sink/prompts.js +12 -12
- package/dist/cli/commands/kitchen-sink/prompts.test.js +12 -12
- package/dist/cli/commands/kitchen-sink/static.js +12 -12
- package/dist/cli/commands/kitchen-sink/static.test.js +12 -12
- package/dist/cli/commands/notifications/generate.js +12 -12
- package/dist/cli/commands/notifications/list.js +12 -12
- package/dist/cli/commands/search.d.ts +1 -0
- package/dist/cli/commands/search.js +12 -12
- package/dist/cli/commands/upgrade.js +12 -12
- package/dist/cli/commands/version.js +12 -12
- package/dist/cli/commands/version.test.js +12 -12
- package/dist/cli/services/commands/notifications.js +7 -7
- package/dist/cli/services/commands/search.js +3 -3
- package/dist/cli/services/commands/search.test.js +3 -3
- package/dist/cli/services/commands/version.js +4 -4
- package/dist/cli/services/commands/version.test.js +5 -5
- package/dist/cli/services/kitchen-sink/async.js +3 -3
- package/dist/cli/services/kitchen-sink/prompts.js +3 -3
- package/dist/cli/services/kitchen-sink/static.js +3 -3
- package/dist/cli/services/upgrade.js +4 -4
- package/dist/cli/services/upgrade.test.js +5 -5
- package/dist/configs/all.yml +39 -3
- package/dist/configs/recommended.yml +36 -0
- package/dist/configs/theme-app-extension.yml +3 -3
- package/dist/{custom-oclif-loader-FMEBF4P4.js → custom-oclif-loader-OE7KHHEX.js} +3 -3
- package/dist/data/filters.json +270 -327
- package/dist/data/latest.json +1 -1
- package/dist/data/objects.json +1482 -3709
- package/dist/data/preset.json +6 -0
- package/dist/data/preset_blocks.json +6 -0
- package/dist/data/setting.json +167 -50
- package/dist/data/tags.json +45 -101
- package/dist/{error-handler-AMKMVQCR.js → error-handler-CLK6ULQD.js} +9 -9
- package/dist/hooks/postrun.js +7 -7
- package/dist/hooks/prerun.js +8 -8
- package/dist/index.js +6785 -2452
- package/dist/{local-2RXSPQ2I.js → local-YA7BWRS4.js} +3 -3
- package/dist/{morph-WRZ7XCTF.js → morph-UGAQHTEA.js} +9 -9
- package/dist/{node-X35R6UYP.js → node-66AIONQH.js} +15 -15
- package/dist/{node-package-manager-3GAIXEER.js → node-package-manager-BD2U7LUE.js} +4 -4
- package/dist/{path-GWAZZN2N.js → path-2K5HIMHZ.js} +2 -2
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/dist/{ui-MTRH5XFP.js → ui-UIXIY6XH.js} +3 -3
- package/dist/{workerd-EHYW43DG.js → workerd-VYNSPDCR.js} +14 -14
- package/oclif.manifest.json +24 -19
- package/package.json +7 -7
|
@@ -2,16 +2,16 @@ import {
|
|
|
2
2
|
getEnvironmentData,
|
|
3
3
|
getLastSeenUserIdAfterAuth,
|
|
4
4
|
getSensitiveEnvironmentData
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-Y7SMROY2.js";
|
|
6
6
|
import {
|
|
7
7
|
fetch
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-7TDJWEEF.js";
|
|
9
9
|
import {
|
|
10
10
|
CLI_KIT_VERSION
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-V2EXSXIB.js";
|
|
12
12
|
import {
|
|
13
13
|
runWithRateLimit
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-YW77LWOY.js";
|
|
15
15
|
import {
|
|
16
16
|
alwaysLogAnalytics,
|
|
17
17
|
alwaysLogMetrics,
|
|
@@ -28,7 +28,7 @@ import {
|
|
|
28
28
|
outputDebug,
|
|
29
29
|
outputToken,
|
|
30
30
|
reportingRateLimit
|
|
31
|
-
} from "./chunk-
|
|
31
|
+
} from "./chunk-7Z57GKMD.js";
|
|
32
32
|
import {
|
|
33
33
|
__commonJS,
|
|
34
34
|
__esm,
|
|
@@ -15486,7 +15486,7 @@ async function publishMonorailEvent(schemaId, publicData, sensitiveData) {
|
|
|
15486
15486
|
publishedCommandNames.add(commandName);
|
|
15487
15487
|
}
|
|
15488
15488
|
try {
|
|
15489
|
-
let currentTime = (/* @__PURE__ */ new Date()).getTime(), payload = { ...publicData, ...sensitiveData }, body = JSON.stringify({ schema_id: schemaId, payload }), headers = buildHeaders(currentTime), response = await fetch(url, { method: "POST", body, headers });
|
|
15489
|
+
let currentTime = (/* @__PURE__ */ new Date()).getTime(), payload = { ...publicData, ...sensitiveData }, body = JSON.stringify({ schema_id: schemaId, payload }), headers = buildHeaders(currentTime), response = await fetch(url, { method: "POST", body, headers }, "non-blocking");
|
|
15490
15490
|
return response.status === 200 ? (outputDebug(outputContent`Analytics event sent: ${outputToken.json(sanitizePayload(payload))}`), { type: "ok" }) : (outputDebug(`Failed to report usage analytics: ${response.statusText}`), { type: "error", message: response.statusText });
|
|
15491
15491
|
} catch (error) {
|
|
15492
15492
|
let message = "Failed to report usage analytics";
|
|
@@ -15930,4 +15930,4 @@ export {
|
|
|
15930
15930
|
requestIdsCollection,
|
|
15931
15931
|
reportAnalyticsEvent
|
|
15932
15932
|
};
|
|
15933
|
-
//# sourceMappingURL=chunk-
|
|
15933
|
+
//# sourceMappingURL=chunk-DE23IXCV.js.map
|
|
@@ -2,10 +2,10 @@ import {
|
|
|
2
2
|
fetchNotifications,
|
|
3
3
|
getNotifications,
|
|
4
4
|
stringifyFilters
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-OZYTPWJS.js";
|
|
6
6
|
import {
|
|
7
7
|
CLI_KIT_VERSION
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-V2EXSXIB.js";
|
|
9
9
|
import {
|
|
10
10
|
outputInfo,
|
|
11
11
|
randomUUID,
|
|
@@ -14,7 +14,7 @@ import {
|
|
|
14
14
|
renderTable,
|
|
15
15
|
renderTextPrompt,
|
|
16
16
|
writeFile
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-7Z57GKMD.js";
|
|
18
18
|
import {
|
|
19
19
|
init_cjs_shims
|
|
20
20
|
} from "./chunk-PKR7KJ6P.js";
|
|
@@ -101,4 +101,4 @@ export {
|
|
|
101
101
|
generate,
|
|
102
102
|
list
|
|
103
103
|
};
|
|
104
|
-
//# sourceMappingURL=chunk-
|
|
104
|
+
//# sourceMappingURL=chunk-DXETR7HO.js.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import {
|
|
2
2
|
renderConcurrent,
|
|
3
3
|
renderTasks
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-7Z57GKMD.js";
|
|
5
5
|
import {
|
|
6
6
|
init_cjs_shims
|
|
7
7
|
} from "./chunk-PKR7KJ6P.js";
|
|
@@ -43,4 +43,4 @@ async function asyncTasks() {
|
|
|
43
43
|
export {
|
|
44
44
|
asyncTasks
|
|
45
45
|
};
|
|
46
|
-
//# sourceMappingURL=chunk-
|
|
46
|
+
//# sourceMappingURL=chunk-F7YDVUG6.js.map
|
|
@@ -4,16 +4,16 @@ import {
|
|
|
4
4
|
import {
|
|
5
5
|
fanoutHooks,
|
|
6
6
|
reportAnalyticsEvent
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-DE23IXCV.js";
|
|
8
8
|
import {
|
|
9
9
|
getEnvironmentData
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-Y7SMROY2.js";
|
|
11
11
|
import {
|
|
12
12
|
CLI_KIT_VERSION
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-V2EXSXIB.js";
|
|
14
14
|
import {
|
|
15
15
|
runWithRateLimit
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-YW77LWOY.js";
|
|
17
17
|
import {
|
|
18
18
|
AbortSilentError,
|
|
19
19
|
CancelExecution,
|
|
@@ -28,14 +28,14 @@ import {
|
|
|
28
28
|
reportingRateLimit,
|
|
29
29
|
require_stacktracey,
|
|
30
30
|
shouldReportErrorAsUnexpected
|
|
31
|
-
} from "./chunk-
|
|
31
|
+
} from "./chunk-7Z57GKMD.js";
|
|
32
32
|
import {
|
|
33
33
|
cwd,
|
|
34
34
|
isAbsolutePath,
|
|
35
35
|
joinPath,
|
|
36
36
|
normalizePath,
|
|
37
37
|
relativePath
|
|
38
|
-
} from "./chunk-
|
|
38
|
+
} from "./chunk-57Q6OQG4.js";
|
|
39
39
|
import {
|
|
40
40
|
require_lib
|
|
41
41
|
} from "./chunk-VSKRQ3JT.js";
|
|
@@ -2136,4 +2136,4 @@ export {
|
|
|
2136
2136
|
registerCleanBugsnagErrorsFromWithinPlugins,
|
|
2137
2137
|
addBugsnagMetadata
|
|
2138
2138
|
};
|
|
2139
|
-
//# sourceMappingURL=chunk-
|
|
2139
|
+
//# sourceMappingURL=chunk-FGOKII2H.js.map
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
CLI_KIT_VERSION
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-V2EXSXIB.js";
|
|
4
4
|
import {
|
|
5
5
|
outputInfo
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-7Z57GKMD.js";
|
|
7
7
|
import {
|
|
8
8
|
init_cjs_shims
|
|
9
9
|
} from "./chunk-PKR7KJ6P.js";
|
|
@@ -17,4 +17,4 @@ async function versionService() {
|
|
|
17
17
|
export {
|
|
18
18
|
versionService
|
|
19
19
|
};
|
|
20
|
-
//# sourceMappingURL=chunk-
|
|
20
|
+
//# sourceMappingURL=chunk-G2Z2JNWZ.js.map
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import {
|
|
2
2
|
base_command_default
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-PFXZ73LI.js";
|
|
4
4
|
import {
|
|
5
5
|
renderTable,
|
|
6
6
|
renderText
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-7Z57GKMD.js";
|
|
8
8
|
import {
|
|
9
9
|
require_lib
|
|
10
10
|
} from "./chunk-VSKRQ3JT.js";
|
|
@@ -83,4 +83,4 @@ var import_core = __toESM(require_lib(), 1), CommandFlags = class _CommandFlags
|
|
|
83
83
|
export {
|
|
84
84
|
CommandFlags
|
|
85
85
|
};
|
|
86
|
-
//# sourceMappingURL=chunk-
|
|
86
|
+
//# sourceMappingURL=chunk-HL6ZWA6P.js.map
|
|
@@ -4,7 +4,7 @@ import {
|
|
|
4
4
|
findUpAndReadPackageJson,
|
|
5
5
|
getPackageManager,
|
|
6
6
|
usesWorkspaces
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-YW77LWOY.js";
|
|
8
8
|
import {
|
|
9
9
|
AbortError,
|
|
10
10
|
exec,
|
|
@@ -15,12 +15,12 @@ import {
|
|
|
15
15
|
outputSuccess,
|
|
16
16
|
outputToken,
|
|
17
17
|
outputWarn
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-7Z57GKMD.js";
|
|
19
19
|
import {
|
|
20
20
|
dirname,
|
|
21
21
|
joinPath,
|
|
22
22
|
moduleDirectory
|
|
23
|
-
} from "./chunk-
|
|
23
|
+
} from "./chunk-57Q6OQG4.js";
|
|
24
24
|
import {
|
|
25
25
|
init_cjs_shims
|
|
26
26
|
} from "./chunk-PKR7KJ6P.js";
|
|
@@ -139,4 +139,4 @@ function usingPackageManager({ env } = { env: process.env }) {
|
|
|
139
139
|
export {
|
|
140
140
|
upgrade
|
|
141
141
|
};
|
|
142
|
-
//# sourceMappingURL=chunk-
|
|
142
|
+
//# sourceMappingURL=chunk-IDLVFDLS.js.map
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import {
|
|
2
2
|
packageManagerFromUserAgent
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-YW77LWOY.js";
|
|
4
4
|
import {
|
|
5
5
|
currentProcessIsGlobal,
|
|
6
6
|
inferPackageManagerForGlobalCLI,
|
|
7
7
|
outputContent,
|
|
8
8
|
outputToken
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-7Z57GKMD.js";
|
|
10
10
|
import {
|
|
11
11
|
init_cjs_shims
|
|
12
12
|
} from "./chunk-PKR7KJ6P.js";
|
|
@@ -25,4 +25,4 @@ export {
|
|
|
25
25
|
cliInstallCommand,
|
|
26
26
|
getOutputUpdateCLIReminder
|
|
27
27
|
};
|
|
28
|
-
//# sourceMappingURL=chunk-
|
|
28
|
+
//# sourceMappingURL=chunk-J2TFYL5Z.js.map
|
|
@@ -6,7 +6,7 @@ import {
|
|
|
6
6
|
remove,
|
|
7
7
|
setLastSeenAuthMethod,
|
|
8
8
|
setLastSeenUserIdAfterAuth
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-Y7SMROY2.js";
|
|
10
10
|
import {
|
|
11
11
|
BugError,
|
|
12
12
|
getPartnersToken,
|
|
@@ -14,7 +14,7 @@ import {
|
|
|
14
14
|
outputContent,
|
|
15
15
|
outputDebug,
|
|
16
16
|
outputToken
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-7Z57GKMD.js";
|
|
18
18
|
import {
|
|
19
19
|
init_cjs_shims
|
|
20
20
|
} from "./chunk-PKR7KJ6P.js";
|
|
@@ -104,4 +104,4 @@ export {
|
|
|
104
104
|
ensureAuthenticatedBusinessPlatform,
|
|
105
105
|
logout
|
|
106
106
|
};
|
|
107
|
-
//# sourceMappingURL=chunk-
|
|
107
|
+
//# sourceMappingURL=chunk-JA44NPON.js.map
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
versionService
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-G2Z2JNWZ.js";
|
|
4
4
|
import {
|
|
5
5
|
base_command_default
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-PFXZ73LI.js";
|
|
7
7
|
import {
|
|
8
8
|
init_cjs_shims
|
|
9
9
|
} from "./chunk-PKR7KJ6P.js";
|
|
@@ -22,4 +22,4 @@ var Version = class extends base_command_default {
|
|
|
22
22
|
export {
|
|
23
23
|
Version
|
|
24
24
|
};
|
|
25
|
-
//# sourceMappingURL=chunk-
|
|
25
|
+
//# sourceMappingURL=chunk-KMLSEENO.js.map
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import {
|
|
2
2
|
base_command_default
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-PFXZ73LI.js";
|
|
4
4
|
import {
|
|
5
5
|
cacheClear
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-YW77LWOY.js";
|
|
7
7
|
import {
|
|
8
8
|
environmentVariables,
|
|
9
9
|
isTruthy
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-7Z57GKMD.js";
|
|
11
11
|
import {
|
|
12
12
|
require_lib
|
|
13
13
|
} from "./chunk-VSKRQ3JT.js";
|
|
@@ -26,7 +26,7 @@ init_cjs_shims();
|
|
|
26
26
|
init_cjs_shims();
|
|
27
27
|
import { fileURLToPath } from "node:url";
|
|
28
28
|
async function launchCLI(options) {
|
|
29
|
-
let { errorHandler } = await import("./error-handler-
|
|
29
|
+
let { errorHandler } = await import("./error-handler-CLK6ULQD.js"), { isDevelopment } = await import("./local-YA7BWRS4.js"), oclif = await import("./lib-SGEWXU7Z.js"), { ShopifyConfig } = await import("./custom-oclif-loader-OE7KHHEX.js");
|
|
30
30
|
isDevelopment() && (oclif.default.settings.debug = !0);
|
|
31
31
|
try {
|
|
32
32
|
let config = new ShopifyConfig({ root: fileURLToPath(options.moduleURL) });
|
|
@@ -41,7 +41,7 @@ var import_core = __toESM(require_lib());
|
|
|
41
41
|
async function exitIfOldNodeVersion(versions = process.versions) {
|
|
42
42
|
let nodeVersion = versions.node, nodeMajorVersion = Number(nodeVersion.split(".")[0]);
|
|
43
43
|
if (nodeMajorVersion < 18) {
|
|
44
|
-
let { renderError } = await import("./ui-
|
|
44
|
+
let { renderError } = await import("./ui-UIXIY6XH.js");
|
|
45
45
|
renderError({
|
|
46
46
|
headline: "Upgrade to a supported Node version now.",
|
|
47
47
|
body: [
|
|
@@ -68,7 +68,7 @@ async function runCLI(options, launchCLI2 = launchCLI, argv = process.argv, env
|
|
|
68
68
|
return setupEnvironmentVariables(options, argv, env), options.runInCreateMode && await addInitToArgvWhenRunningCreateCLI(options, argv), forceNoColor(argv, env), await exitIfOldNodeVersion(versions), launchCLI2({ moduleURL: options.moduleURL });
|
|
69
69
|
}
|
|
70
70
|
async function addInitToArgvWhenRunningCreateCLI(options, argv = process.argv) {
|
|
71
|
-
let { findUpAndReadPackageJson } = await import("./node-package-manager-
|
|
71
|
+
let { findUpAndReadPackageJson } = await import("./node-package-manager-BD2U7LUE.js"), { moduleDirectory } = await import("./path-2K5HIMHZ.js"), name = (await findUpAndReadPackageJson(moduleDirectory(options.moduleURL))).content.name.replace("@shopify/create-", "");
|
|
72
72
|
if (argv.findIndex((arg) => arg.includes("init")) === -1) {
|
|
73
73
|
let initIndex2 = argv.findIndex((arg) => arg.match(new RegExp(`bin(\\/|\\\\)+(create-${name}|dev|run)`))) + 1;
|
|
74
74
|
argv.splice(initIndex2, 0, "init");
|
|
@@ -117,4 +117,4 @@ export {
|
|
|
117
117
|
jsonFlag,
|
|
118
118
|
ClearCache
|
|
119
119
|
};
|
|
120
|
-
//# sourceMappingURL=chunk-
|
|
120
|
+
//# sourceMappingURL=chunk-KRRCKFNF.js.map
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
searchService
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-NKPXKN63.js";
|
|
4
4
|
import {
|
|
5
5
|
base_command_default
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-PFXZ73LI.js";
|
|
7
7
|
import {
|
|
8
8
|
require_lib
|
|
9
9
|
} from "./chunk-VSKRQ3JT.js";
|
|
@@ -18,6 +18,9 @@ var import_core = __toESM(require_lib(), 1), Search = class _Search extends base
|
|
|
18
18
|
static {
|
|
19
19
|
this.description = "Starts a search on shopify.dev.";
|
|
20
20
|
}
|
|
21
|
+
static {
|
|
22
|
+
this.usage = "search [query]";
|
|
23
|
+
}
|
|
21
24
|
static {
|
|
22
25
|
this.examples = [
|
|
23
26
|
`# open the search modal on Shopify.dev
|
|
@@ -45,4 +48,4 @@ var import_core = __toESM(require_lib(), 1), Search = class _Search extends base
|
|
|
45
48
|
export {
|
|
46
49
|
Search
|
|
47
50
|
};
|
|
48
|
-
//# sourceMappingURL=chunk-
|
|
51
|
+
//# sourceMappingURL=chunk-LGVMVIUY.js.map
|
|
@@ -2,7 +2,7 @@ import {
|
|
|
2
2
|
init_cjs_shims
|
|
3
3
|
} from "./chunk-PKR7KJ6P.js";
|
|
4
4
|
|
|
5
|
-
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@9.0.
|
|
5
|
+
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@9.0.9_@graphql-codegen+cli@5.0.4_react-dom@17.0.2_react@17.0.2/node_modules/@shopify/cli-hydrogen/dist/lib/find-port.js
|
|
6
6
|
init_cjs_shims();
|
|
7
7
|
|
|
8
8
|
// ../../node_modules/.pnpm/get-port@7.1.0/node_modules/get-port/index.js
|
|
@@ -94,7 +94,7 @@ function portNumbers(from, to) {
|
|
|
94
94
|
}(from, to);
|
|
95
95
|
}
|
|
96
96
|
|
|
97
|
-
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@9.0.
|
|
97
|
+
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@9.0.9_@graphql-codegen+cli@5.0.4_react-dom@17.0.2_react@17.0.2/node_modules/@shopify/cli-hydrogen/dist/lib/find-port.js
|
|
98
98
|
function findPort(portPreference, range = 100) {
|
|
99
99
|
return getPorts({
|
|
100
100
|
port: portNumbers(portPreference, portPreference + range)
|
|
@@ -104,4 +104,4 @@ function findPort(portPreference, range = 100) {
|
|
|
104
104
|
export {
|
|
105
105
|
findPort
|
|
106
106
|
};
|
|
107
|
-
//# sourceMappingURL=chunk-
|
|
107
|
+
//# sourceMappingURL=chunk-MJ5E3G6Z.js.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
openURL
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-7Z57GKMD.js";
|
|
4
4
|
import {
|
|
5
5
|
init_cjs_shims
|
|
6
6
|
} from "./chunk-PKR7KJ6P.js";
|
|
@@ -15,4 +15,4 @@ async function searchService(query) {
|
|
|
15
15
|
export {
|
|
16
16
|
searchService
|
|
17
17
|
};
|
|
18
|
-
//# sourceMappingURL=chunk-
|
|
18
|
+
//# sourceMappingURL=chunk-NKPXKN63.js.map
|
|
@@ -5,7 +5,7 @@ import {
|
|
|
5
5
|
renderDangerousConfirmationPrompt,
|
|
6
6
|
renderSelectPrompt,
|
|
7
7
|
renderTextPrompt
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-7Z57GKMD.js";
|
|
9
9
|
import {
|
|
10
10
|
init_cjs_shims
|
|
11
11
|
} from "./chunk-PKR7KJ6P.js";
|
|
@@ -175,4 +175,4 @@ async function prompts() {
|
|
|
175
175
|
export {
|
|
176
176
|
prompts
|
|
177
177
|
};
|
|
178
|
-
//# sourceMappingURL=chunk-
|
|
178
|
+
//# sourceMappingURL=chunk-NMVJRPWT.js.map
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
asyncTasks
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-F7YDVUG6.js";
|
|
4
4
|
import {
|
|
5
5
|
base_command_default
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-PFXZ73LI.js";
|
|
7
7
|
import {
|
|
8
8
|
init_cjs_shims
|
|
9
9
|
} from "./chunk-PKR7KJ6P.js";
|
|
@@ -25,4 +25,4 @@ var KitchenSinkAsync = class extends base_command_default {
|
|
|
25
25
|
export {
|
|
26
26
|
KitchenSinkAsync
|
|
27
27
|
};
|
|
28
|
-
//# sourceMappingURL=chunk-
|
|
28
|
+
//# sourceMappingURL=chunk-ODZP3BOI.js.map
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import {
|
|
2
2
|
fetch,
|
|
3
3
|
z
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-7TDJWEEF.js";
|
|
5
5
|
import {
|
|
6
6
|
CLI_KIT_VERSION
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-V2EXSXIB.js";
|
|
8
8
|
import {
|
|
9
9
|
cacheRetrieve,
|
|
10
10
|
cacheStore,
|
|
11
11
|
versionSatisfies
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-YW77LWOY.js";
|
|
13
13
|
import {
|
|
14
14
|
AbortSilentError,
|
|
15
15
|
exec,
|
|
@@ -19,7 +19,7 @@ import {
|
|
|
19
19
|
renderError,
|
|
20
20
|
renderInfo,
|
|
21
21
|
renderWarning
|
|
22
|
-
} from "./chunk-
|
|
22
|
+
} from "./chunk-7Z57GKMD.js";
|
|
23
23
|
import {
|
|
24
24
|
init_cjs_shims
|
|
25
25
|
} from "./chunk-PKR7KJ6P.js";
|
|
@@ -87,7 +87,7 @@ async function showNotificationsIfNeeded(currentSurfaces, environment = process.
|
|
|
87
87
|
throw new AbortSilentError();
|
|
88
88
|
let errorMessage = `Error showing notifications: ${error.message}`;
|
|
89
89
|
outputDebug(errorMessage);
|
|
90
|
-
let { sendErrorToBugsnag } = await import("./error-handler-
|
|
90
|
+
let { sendErrorToBugsnag } = await import("./error-handler-CLK6ULQD.js");
|
|
91
91
|
await sendErrorToBugsnag(errorMessage, "unexpected_error");
|
|
92
92
|
}
|
|
93
93
|
}
|
|
@@ -125,8 +125,12 @@ async function getNotifications() {
|
|
|
125
125
|
return NotificationsSchema.parse(notifications);
|
|
126
126
|
}
|
|
127
127
|
async function fetchNotifications() {
|
|
128
|
-
outputDebug("Fetching
|
|
129
|
-
let response = await fetch(url(),
|
|
128
|
+
outputDebug("Fetching notifications...");
|
|
129
|
+
let response = await fetch(url(), void 0, {
|
|
130
|
+
useNetworkLevelRetry: !1,
|
|
131
|
+
useAbortSignal: !0,
|
|
132
|
+
timeoutMs: 3 * 1e3
|
|
133
|
+
});
|
|
130
134
|
if (response.status !== 200)
|
|
131
135
|
throw new Error(`Failed to fetch notifications: ${response.statusText}`);
|
|
132
136
|
let rawNotifications = await response.text(), notifications = JSON.parse(rawNotifications), result = NotificationsSchema.parse(notifications);
|
|
@@ -195,4 +199,4 @@ export {
|
|
|
195
199
|
fetchNotificationsInBackground,
|
|
196
200
|
stringifyFilters
|
|
197
201
|
};
|
|
198
|
-
//# sourceMappingURL=chunk-
|
|
202
|
+
//# sourceMappingURL=chunk-OZYTPWJS.js.map
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import {
|
|
2
2
|
errorHandler,
|
|
3
3
|
registerCleanBugsnagErrorsFromWithinPlugins
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-FGOKII2H.js";
|
|
5
5
|
import {
|
|
6
6
|
setCurrentCommandId,
|
|
7
7
|
showNotificationsIfNeeded
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-OZYTPWJS.js";
|
|
9
9
|
import {
|
|
10
10
|
AbortError,
|
|
11
11
|
addPublicMetadata,
|
|
@@ -22,10 +22,10 @@ import {
|
|
|
22
22
|
renderWarning,
|
|
23
23
|
terminalSupportsPrompting,
|
|
24
24
|
underscore
|
|
25
|
-
} from "./chunk-
|
|
25
|
+
} from "./chunk-7Z57GKMD.js";
|
|
26
26
|
import {
|
|
27
27
|
cwd
|
|
28
|
-
} from "./chunk-
|
|
28
|
+
} from "./chunk-57Q6OQG4.js";
|
|
29
29
|
import {
|
|
30
30
|
require_lib
|
|
31
31
|
} from "./chunk-VSKRQ3JT.js";
|
|
@@ -1663,4 +1663,4 @@ export {
|
|
|
1663
1663
|
loadEnvironment,
|
|
1664
1664
|
base_command_default
|
|
1665
1665
|
};
|
|
1666
|
-
//# sourceMappingURL=chunk-
|
|
1666
|
+
//# sourceMappingURL=chunk-PFXZ73LI.js.map
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import {
|
|
2
2
|
cliInstallCommand
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-J2TFYL5Z.js";
|
|
4
4
|
import {
|
|
5
5
|
base_command_default
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-PFXZ73LI.js";
|
|
7
7
|
import {
|
|
8
8
|
renderInfo
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-7Z57GKMD.js";
|
|
10
10
|
import {
|
|
11
11
|
init_cjs_shims
|
|
12
12
|
} from "./chunk-PKR7KJ6P.js";
|
|
@@ -34,4 +34,4 @@ var Upgrade = class extends base_command_default {
|
|
|
34
34
|
export {
|
|
35
35
|
Upgrade
|
|
36
36
|
};
|
|
37
|
-
//# sourceMappingURL=chunk-
|
|
37
|
+
//# sourceMappingURL=chunk-RXPX6QL6.js.map
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import {
|
|
2
2
|
prompts
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-NMVJRPWT.js";
|
|
4
4
|
import {
|
|
5
5
|
staticService
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-CYZVSCKE.js";
|
|
7
7
|
import {
|
|
8
8
|
asyncTasks
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-F7YDVUG6.js";
|
|
10
10
|
import {
|
|
11
11
|
base_command_default
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-PFXZ73LI.js";
|
|
13
13
|
import {
|
|
14
14
|
init_cjs_shims
|
|
15
15
|
} from "./chunk-PKR7KJ6P.js";
|
|
@@ -34,4 +34,4 @@ var KitchenSinkAll = class extends base_command_default {
|
|
|
34
34
|
export {
|
|
35
35
|
KitchenSinkAll
|
|
36
36
|
};
|
|
37
|
-
//# sourceMappingURL=chunk-
|
|
37
|
+
//# sourceMappingURL=chunk-THDGA4UF.js.map
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import {
|
|
2
2
|
base_command_default
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-PFXZ73LI.js";
|
|
4
4
|
import {
|
|
5
5
|
mkdir,
|
|
6
6
|
outputInfo,
|
|
7
7
|
rmdir,
|
|
8
8
|
writeFile
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-7Z57GKMD.js";
|
|
10
10
|
import {
|
|
11
11
|
cwd,
|
|
12
12
|
joinPath
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-57Q6OQG4.js";
|
|
14
14
|
import {
|
|
15
15
|
init_cjs_shims
|
|
16
16
|
} from "./chunk-PKR7KJ6P.js";
|
|
@@ -103,9 +103,12 @@ ${flagsDetails}
|
|
|
103
103
|
}
|
|
104
104
|
async function writeCommandUsageExampleFile(command, { fileName, commandName }) {
|
|
105
105
|
let usage = "", hasFlags = command.flags && Object.keys(command.flags).length > 0;
|
|
106
|
-
typeof command.usage == "string" ? usage = command.usage : Array.isArray(command.usage) ? usage = command.usage.join(`
|
|
106
|
+
typeof command.usage == "string" ? usage = prependShopify(command.usage) : Array.isArray(command.usage) ? usage = command.usage.map((usage2) => prependShopify(usage2)).join(`
|
|
107
107
|
|
|
108
|
-
`) : usage =
|
|
108
|
+
`) : usage = `${prependShopify(commandName)}${hasFlags ? " [flags]" : ""}`, await mkdir(`${docsPath}/examples`), await writeFile(`${docsPath}/examples/${fileName}.example.sh`, usage);
|
|
109
|
+
}
|
|
110
|
+
function prependShopify(command) {
|
|
111
|
+
return command.startsWith("shopify ") ? command : `shopify ${command}`;
|
|
109
112
|
}
|
|
110
113
|
|
|
111
114
|
export {
|
|
@@ -115,4 +118,4 @@ export {
|
|
|
115
118
|
writeCommandFlagInterface,
|
|
116
119
|
writeCommandUsageExampleFile
|
|
117
120
|
};
|
|
118
|
-
//# sourceMappingURL=chunk-
|
|
121
|
+
//# sourceMappingURL=chunk-TIMSXB7V.js.map
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
staticService
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-CYZVSCKE.js";
|
|
4
4
|
import {
|
|
5
5
|
base_command_default
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-PFXZ73LI.js";
|
|
7
7
|
import {
|
|
8
8
|
init_cjs_shims
|
|
9
9
|
} from "./chunk-PKR7KJ6P.js";
|
|
@@ -25,4 +25,4 @@ var KitchenSinkStatic = class extends base_command_default {
|
|
|
25
25
|
export {
|
|
26
26
|
KitchenSinkStatic
|
|
27
27
|
};
|
|
28
|
-
//# sourceMappingURL=chunk-
|
|
28
|
+
//# sourceMappingURL=chunk-V24VKC54.js.map
|
|
@@ -4,9 +4,9 @@ import {
|
|
|
4
4
|
|
|
5
5
|
// ../cli-kit/dist/public/common/version.js
|
|
6
6
|
init_cjs_shims();
|
|
7
|
-
var CLI_KIT_VERSION = "3.
|
|
7
|
+
var CLI_KIT_VERSION = "3.77.1";
|
|
8
8
|
|
|
9
9
|
export {
|
|
10
10
|
CLI_KIT_VERSION
|
|
11
11
|
};
|
|
12
|
-
//# sourceMappingURL=chunk-
|
|
12
|
+
//# sourceMappingURL=chunk-V2EXSXIB.js.map
|