@shopify/cli 3.76.2 → 3.77.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-DTR7ATW4.js → chunk-3ARIMAIR.js} +3 -3
- package/dist/{chunk-6RHYOJ63.js → chunk-4BPRKRYD.js} +5 -5
- package/dist/{chunk-ZUCWDIGE.js → chunk-57Q6OQG4.js} +2 -2
- package/dist/{chunk-KI626P2Z.js → chunk-5ZMRZCPZ.js} +4 -4
- package/dist/{chunk-IKXB6S5W.js → chunk-6ZKE2WPK.js} +2 -2
- package/dist/{chunk-KTICPCDH.js → chunk-74V7KQLD.js} +4 -4
- package/dist/{chunk-TYXJ553W.js → chunk-7IKFEU6I.js} +2 -2
- package/dist/{chunk-PNWJ2GZC.js → chunk-ACSVNEID.js} +5 -5
- package/dist/{chunk-CBRJA5VT.js → chunk-AUBRXAVZ.js} +4 -4
- package/dist/{chunk-SO2JXJNK.js → chunk-AW7SZYGV.js} +7 -7
- package/dist/{chunk-3DV6EZ24.js → chunk-AZ33PIX2.js} +7 -7
- package/dist/{chunk-MIAZDAJI.js → chunk-CBLCYLJO.js} +2 -2
- package/dist/{chunk-JMXX7A4N.js → chunk-DHO2PUCK.js} +2 -2
- package/dist/{chunk-WOA7JN7E.js → chunk-FJAIUBHO.js} +12 -8
- package/dist/{chunk-AHNHLXEN.js → chunk-GPICPOCE.js} +9 -6
- package/dist/{chunk-BJXULBKX.js → chunk-IX7XAR6F.js} +144 -29
- package/dist/{chunk-3UYXKXR6.js → chunk-J3C7BGUW.js} +21 -8
- package/dist/{chunk-DZC6PFFO.js → chunk-MYIEKIZR.js} +2 -2
- package/dist/{chunk-XAK5UQFR.js → chunk-NHMQOM7T.js} +2 -2
- package/dist/{chunk-WYLW7KVV.js → chunk-NZVJ77WD.js} +3 -3
- package/dist/{chunk-VXUNILLD.js → chunk-O5U2T7LH.js} +6 -3
- package/dist/{chunk-WXONIGO7.js → chunk-PHWPEUZI.js} +5 -2
- package/dist/{chunk-7ZRFR7FA.js → chunk-QVZW3IVL.js} +7 -7
- package/dist/{chunk-EPUCFUDR.js → chunk-RA5UDHSI.js} +3 -3
- package/dist/{chunk-SROPQDQ2.js → chunk-RWT677FV.js} +4 -4
- package/dist/{chunk-QP45KHVL.js → chunk-S3PY2ULH.js} +214 -121
- package/dist/{chunk-XOWOZYS5.js → chunk-SO33Y5TT.js} +3 -3
- package/dist/{chunk-J64C3R6H.js → chunk-U7E5RRYF.js} +3 -3
- package/dist/{chunk-TKC27SYH.js → chunk-V5G4FJZH.js} +16 -14
- package/dist/{chunk-OSETU22I.js → chunk-VTEM2QWG.js} +3 -3
- package/dist/{chunk-WFJKWPG7.js → chunk-WN6OLVLP.js} +4 -4
- package/dist/{chunk-AZ3SNZKH.js → chunk-YL7TDFFA.js} +3 -3
- package/dist/{chunk-J4VMFBCX.js → chunk-YXR557PE.js} +3 -3
- package/dist/{chunk-3IUNQ4LM.js → chunk-ZKUNCSWD.js} +4 -4
- package/dist/{chunk-2WTNMSEA.js → chunk-ZVNHCLRN.js} +3 -3
- 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-TE6EUPGI.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-WC4XSLZQ.js} +9 -9
- package/dist/hooks/postrun.js +7 -7
- package/dist/hooks/prerun.js +8 -8
- package/dist/index.js +5452 -2315
- package/dist/{local-2RXSPQ2I.js → local-7Q5JCU62.js} +3 -3
- package/dist/{node-X35R6UYP.js → node-MNEYEH5U.js} +13 -13
- package/dist/{node-package-manager-3GAIXEER.js → node-package-manager-3SFTB3BW.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-NMP2SY3G.js} +3 -3
- package/dist/{workerd-EHYW43DG.js → workerd-NN737W52.js} +13 -13
- package/oclif.manifest.json +24 -19
- package/package.json +6 -6
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import {
|
|
2
2
|
base_command_default
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-4BPRKRYD.js";
|
|
4
4
|
import {
|
|
5
5
|
renderTable,
|
|
6
6
|
renderText
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-J3C7BGUW.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-3ARIMAIR.js.map
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import {
|
|
2
2
|
errorHandler,
|
|
3
3
|
registerCleanBugsnagErrorsFromWithinPlugins
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-QVZW3IVL.js";
|
|
5
5
|
import {
|
|
6
6
|
setCurrentCommandId,
|
|
7
7
|
showNotificationsIfNeeded
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-FJAIUBHO.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-J3C7BGUW.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-4BPRKRYD.js.map
|
|
@@ -40,7 +40,7 @@ var require_commondir = __commonJS({
|
|
|
40
40
|
|
|
41
41
|
// ../cli-kit/dist/public/node/path.js
|
|
42
42
|
init_cjs_shims();
|
|
43
|
-
var import_commondir = __toESM(require_commondir()
|
|
43
|
+
var import_commondir = __toESM(require_commondir());
|
|
44
44
|
import { fileURLToPath } from "url";
|
|
45
45
|
function joinPath(...paths) {
|
|
46
46
|
return join(...paths);
|
|
@@ -108,4 +108,4 @@ export {
|
|
|
108
108
|
sniffForPath,
|
|
109
109
|
sniffForJson
|
|
110
110
|
};
|
|
111
|
-
//# sourceMappingURL=chunk-
|
|
111
|
+
//# sourceMappingURL=chunk-57Q6OQG4.js.map
|
|
@@ -21,11 +21,11 @@ import {
|
|
|
21
21
|
require_get_stream,
|
|
22
22
|
runWithTimer,
|
|
23
23
|
writeFile
|
|
24
|
-
} from "./chunk-
|
|
24
|
+
} from "./chunk-J3C7BGUW.js";
|
|
25
25
|
import {
|
|
26
26
|
dirname,
|
|
27
27
|
joinPath
|
|
28
|
-
} from "./chunk-
|
|
28
|
+
} from "./chunk-57Q6OQG4.js";
|
|
29
29
|
import {
|
|
30
30
|
__commonJS,
|
|
31
31
|
__export,
|
|
@@ -13439,7 +13439,7 @@ async function latestVersion(packageName, options) {
|
|
|
13439
13439
|
}
|
|
13440
13440
|
|
|
13441
13441
|
// ../cli-kit/dist/public/node/node-package-manager.js
|
|
13442
|
-
var import_semver3 = __toESM(require_semver()), yarnLockfile = "yarn.lock", npmLockfile = "package-lock.json", pnpmLockfile = "pnpm-lock.yaml", bunLockfile = "bun.lockb", pnpmWorkspaceFile = "pnpm-workspace.yaml", lockfiles = [yarnLockfile, pnpmLockfile, npmLockfile, bunLockfile], lockfilesByManager = {
|
|
13442
|
+
var import_semver3 = __toESM(require_semver(), 1), yarnLockfile = "yarn.lock", npmLockfile = "package-lock.json", pnpmLockfile = "pnpm-lock.yaml", bunLockfile = "bun.lockb", pnpmWorkspaceFile = "pnpm-workspace.yaml", lockfiles = [yarnLockfile, pnpmLockfile, npmLockfile, bunLockfile], lockfilesByManager = {
|
|
13443
13443
|
yarn: yarnLockfile,
|
|
13444
13444
|
npm: npmLockfile,
|
|
13445
13445
|
pnpm: pnpmLockfile,
|
|
@@ -13749,4 +13749,4 @@ deep-extend/lib/deep-extend.js:
|
|
|
13749
13749
|
* CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|
13750
13750
|
*)
|
|
13751
13751
|
*/
|
|
13752
|
-
//# sourceMappingURL=chunk-
|
|
13752
|
+
//# sourceMappingURL=chunk-5ZMRZCPZ.js.map
|
|
@@ -7,7 +7,7 @@ import {
|
|
|
7
7
|
renderSuccess,
|
|
8
8
|
renderTable,
|
|
9
9
|
renderWarning
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-J3C7BGUW.js";
|
|
11
11
|
import {
|
|
12
12
|
init_cjs_shims
|
|
13
13
|
} from "./chunk-PKR7KJ6P.js";
|
|
@@ -203,4 +203,4 @@ async function staticService() {
|
|
|
203
203
|
export {
|
|
204
204
|
staticService
|
|
205
205
|
};
|
|
206
|
-
//# sourceMappingURL=chunk-
|
|
206
|
+
//# sourceMappingURL=chunk-6ZKE2WPK.js.map
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import {
|
|
2
2
|
cliInstallCommand
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-RA5UDHSI.js";
|
|
4
4
|
import {
|
|
5
5
|
base_command_default
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-4BPRKRYD.js";
|
|
7
7
|
import {
|
|
8
8
|
renderInfo
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-J3C7BGUW.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-74V7KQLD.js.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import {
|
|
2
2
|
clearCollectedLogs,
|
|
3
3
|
collectedLogs
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-J3C7BGUW.js";
|
|
5
5
|
import {
|
|
6
6
|
init_cjs_shims
|
|
7
7
|
} from "./chunk-PKR7KJ6P.js";
|
|
@@ -33,4 +33,4 @@ function mockAndCaptureOutput() {
|
|
|
33
33
|
export {
|
|
34
34
|
mockAndCaptureOutput
|
|
35
35
|
};
|
|
36
|
-
//# sourceMappingURL=chunk-
|
|
36
|
+
//# sourceMappingURL=chunk-7IKFEU6I.js.map
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import {
|
|
2
2
|
prompts
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-NHMQOM7T.js";
|
|
4
4
|
import {
|
|
5
5
|
staticService
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-6ZKE2WPK.js";
|
|
7
7
|
import {
|
|
8
8
|
asyncTasks
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-MYIEKIZR.js";
|
|
10
10
|
import {
|
|
11
11
|
base_command_default
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-4BPRKRYD.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-ACSVNEID.js.map
|
|
@@ -4,7 +4,7 @@ import {
|
|
|
4
4
|
findUpAndReadPackageJson,
|
|
5
5
|
getPackageManager,
|
|
6
6
|
usesWorkspaces
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-5ZMRZCPZ.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-J3C7BGUW.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-AUBRXAVZ.js.map
|
|
@@ -2,16 +2,16 @@ import {
|
|
|
2
2
|
getEnvironmentData,
|
|
3
3
|
getLastSeenUserIdAfterAuth,
|
|
4
4
|
getSensitiveEnvironmentData
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-S3PY2ULH.js";
|
|
6
6
|
import {
|
|
7
7
|
fetch
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-IX7XAR6F.js";
|
|
9
9
|
import {
|
|
10
10
|
CLI_KIT_VERSION
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-DHO2PUCK.js";
|
|
12
12
|
import {
|
|
13
13
|
runWithRateLimit
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-5ZMRZCPZ.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-J3C7BGUW.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-AW7SZYGV.js.map
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import {
|
|
2
2
|
base_command_default
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-4BPRKRYD.js";
|
|
4
4
|
import {
|
|
5
5
|
cacheClear
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-5ZMRZCPZ.js";
|
|
7
7
|
import {
|
|
8
8
|
environmentVariables,
|
|
9
9
|
isTruthy
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-J3C7BGUW.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-WC4XSLZQ.js"), { isDevelopment } = await import("./local-7Q5JCU62.js"), oclif = await import("./lib-SGEWXU7Z.js"), { ShopifyConfig } = await import("./custom-oclif-loader-TE6EUPGI.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-NMP2SY3G.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-3SFTB3BW.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-AZ33PIX2.js.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
openURL
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-J3C7BGUW.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-CBLCYLJO.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.0";
|
|
8
8
|
|
|
9
9
|
export {
|
|
10
10
|
CLI_KIT_VERSION
|
|
11
11
|
};
|
|
12
|
-
//# sourceMappingURL=chunk-
|
|
12
|
+
//# sourceMappingURL=chunk-DHO2PUCK.js.map
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import {
|
|
2
2
|
fetch,
|
|
3
3
|
z
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-IX7XAR6F.js";
|
|
5
5
|
import {
|
|
6
6
|
CLI_KIT_VERSION
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-DHO2PUCK.js";
|
|
8
8
|
import {
|
|
9
9
|
cacheRetrieve,
|
|
10
10
|
cacheStore,
|
|
11
11
|
versionSatisfies
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-5ZMRZCPZ.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-J3C7BGUW.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-WC4XSLZQ.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-FJAIUBHO.js.map
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import {
|
|
2
2
|
base_command_default
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-4BPRKRYD.js";
|
|
4
4
|
import {
|
|
5
5
|
mkdir,
|
|
6
6
|
outputInfo,
|
|
7
7
|
rmdir,
|
|
8
8
|
writeFile
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-J3C7BGUW.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-GPICPOCE.js.map
|