@shopify/cli 3.80.6 → 3.81.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/assets/dev-console/extensions/dev-console/assets/index-ohOjvIJh.js +64 -0
- package/dist/assets/dev-console/index.html +1 -1
- package/dist/assets/hydrogen/starter/.cursor/rules/cookbook-recipe-subscriptions.mdc +921 -0
- package/dist/assets/hydrogen/starter/CHANGELOG.md +0 -35
- package/dist/assets/hydrogen/starter/app/components/AddToCartButton.tsx +1 -1
- package/dist/assets/hydrogen/starter/app/components/CartLineItem.tsx +1 -1
- package/dist/assets/hydrogen/starter/app/components/CartMain.tsx +1 -1
- package/dist/assets/hydrogen/starter/app/components/CartSummary.tsx +1 -1
- package/dist/assets/hydrogen/starter/app/components/Footer.tsx +1 -1
- package/dist/assets/hydrogen/starter/app/components/Header.tsx +1 -1
- package/dist/assets/hydrogen/starter/app/components/PageLayout.tsx +1 -1
- package/dist/assets/hydrogen/starter/app/components/ProductForm.tsx +1 -1
- package/dist/assets/hydrogen/starter/app/components/ProductItem.tsx +1 -1
- package/dist/assets/hydrogen/starter/app/components/SearchForm.tsx +1 -1
- package/dist/assets/hydrogen/starter/app/components/SearchFormPredictive.tsx +6 -1
- package/dist/assets/hydrogen/starter/app/components/SearchResults.tsx +1 -1
- package/dist/assets/hydrogen/starter/app/components/SearchResultsPredictive.tsx +1 -1
- package/dist/assets/hydrogen/starter/app/entry.client.tsx +2 -2
- package/dist/assets/hydrogen/starter/app/entry.server.tsx +4 -9
- package/dist/assets/hydrogen/starter/app/lib/variants.ts +1 -1
- package/dist/assets/hydrogen/starter/app/root.tsx +1 -1
- package/dist/assets/hydrogen/starter/app/routes/_index.tsx +1 -1
- package/dist/assets/hydrogen/starter/app/routes/account.addresses.tsx +1 -1
- package/dist/assets/hydrogen/starter/app/routes/account.orders.$id.tsx +4 -4
- package/dist/assets/hydrogen/starter/app/routes/account.orders._index.tsx +1 -1
- package/dist/assets/hydrogen/starter/app/routes/account.profile.tsx +7 -1
- package/dist/assets/hydrogen/starter/app/routes/account.tsx +1 -1
- package/dist/assets/hydrogen/starter/app/routes/blogs.$blogHandle.$articleHandle.tsx +1 -1
- package/dist/assets/hydrogen/starter/app/routes/blogs.$blogHandle._index.tsx +1 -1
- package/dist/assets/hydrogen/starter/app/routes/blogs._index.tsx +1 -1
- package/dist/assets/hydrogen/starter/app/routes/cart.tsx +2 -7
- package/dist/assets/hydrogen/starter/app/routes/collections.$handle.tsx +1 -1
- package/dist/assets/hydrogen/starter/app/routes/collections._index.tsx +1 -1
- package/dist/assets/hydrogen/starter/app/routes/collections.all.tsx +2 -2
- package/dist/assets/hydrogen/starter/app/routes/pages.$handle.tsx +1 -1
- package/dist/assets/hydrogen/starter/app/routes/policies.$handle.tsx +1 -1
- package/dist/assets/hydrogen/starter/app/routes/policies._index.tsx +1 -1
- package/dist/assets/hydrogen/starter/app/routes/products.$handle.tsx +1 -1
- package/dist/assets/hydrogen/starter/app/routes/search.tsx +1 -1
- package/dist/assets/hydrogen/starter/app/routes.ts +2 -2
- package/dist/assets/hydrogen/starter/env.d.ts +2 -12
- package/dist/assets/hydrogen/starter/eslint.config.js +0 -2
- package/dist/assets/hydrogen/starter/package.json +12 -11
- package/dist/assets/hydrogen/starter/server.ts +5 -2
- package/dist/assets/hydrogen/starter/tsconfig.json +6 -18
- package/dist/assets/hydrogen/starter/vite.config.ts +24 -3
- package/dist/assets/hydrogen/tailwind/package.json +1 -4
- package/dist/assets/hydrogen/virtual-routes/components/RequestDetails.jsx +1 -1
- package/dist/assets/hydrogen/virtual-routes/layout.jsx +7 -1
- package/dist/assets/hydrogen/virtual-routes/routes/index.jsx +1 -1
- package/dist/assets/hydrogen/virtual-routes/routes/subrequest-profiler.jsx +1 -1
- package/dist/assets/hydrogen/virtual-routes/virtual-root-with-layout.jsx +1 -1
- package/dist/assets/hydrogen/virtual-routes/virtual-root.jsx +1 -1
- package/dist/assets/hydrogen/vite/vite.config.js +1 -1
- package/dist/{chunk-4VUXI7H6.js → chunk-2RTQR5PF.js} +4 -4
- package/dist/{chunk-65ZFQZTE.js → chunk-3TCAFLMI.js} +3 -3
- package/dist/{chunk-NL3YMB4U.js → chunk-4UU24IRW.js} +5 -5
- package/dist/{chunk-BSF6VAN5.js → chunk-66LU5RHQ.js} +3 -3
- package/dist/{chunk-AFDDJCYX.js → chunk-7KHSYC7Q.js} +4 -4
- package/dist/{chunk-3CBDZFEX.js → chunk-AFKRMMUK.js} +2 -2
- package/dist/{chunk-7WRUWTUK.js → chunk-BU5YHTR3.js} +242 -216
- package/dist/{chunk-ACIWWUHC.js → chunk-BWXOMTF4.js} +2 -2
- package/dist/{chunk-TJM3YBLQ.js → chunk-CTFDRWUN.js} +15 -12
- package/dist/{chunk-ACFJ6IFW.js → chunk-EVLVUZ4W.js} +17 -12
- package/dist/{chunk-HJNOSZIV.js → chunk-F65YW645.js} +2 -2
- package/dist/{chunk-OWRPRJTD.js → chunk-FAITFLRX.js} +2 -2
- package/dist/{chunk-EZ6BZ5PD.js → chunk-FBJAZPR7.js} +3 -3
- package/dist/{chunk-D6ZGKY37.js → chunk-FD2PC23V.js} +6 -6
- package/dist/{chunk-FDW7NWC7.js → chunk-GESAFNQ7.js} +276 -77
- package/dist/{chunk-UBFTFKE4.js → chunk-H4NXKYFX.js} +28 -28
- package/dist/{chunk-Z2BLJB2N.js → chunk-H7RFBD5F.js} +4 -4
- package/dist/{chunk-O6RFRW32.js → chunk-HL635BW4.js} +9 -8
- package/dist/{chunk-5RIR73IP.js → chunk-HVXOXFW7.js} +8 -6
- package/dist/{chunk-ICOMCQIW.js → chunk-I3MFQXUO.js} +5 -5
- package/dist/{chunk-23F56LJQ.js → chunk-I55SUBMN.js} +45 -23
- package/dist/{chunk-ZH34MCD3.js → chunk-J22RRMUV.js} +3 -3
- package/dist/{chunk-6OYFGNE2.js → chunk-JMLKYNLE.js} +3 -3
- package/dist/{chunk-2PS2UQAA.js → chunk-LJSDT5VD.js} +3 -3
- package/dist/{chunk-VUR3GWEO.js → chunk-LKFFDKQK.js} +3 -3
- package/dist/{chunk-5AFYDRV4.js → chunk-LPU2VGJR.js} +42 -507
- package/dist/{chunk-DBRMHJ74.js → chunk-NVXZREWB.js} +27 -30
- package/dist/{chunk-72FER6OH.js → chunk-OCEG2LVS.js} +2 -2
- package/dist/{chunk-RMON7GVP.js → chunk-PL4FBKID.js} +5 -5
- package/dist/{chunk-JCVVFO7I.js → chunk-PO4WPF5B.js} +2 -2
- package/dist/{chunk-MRTKI7HQ.js → chunk-PZ532W3Q.js} +8 -8
- package/dist/{chunk-ALOIYWSW.js → chunk-Q5VEQZWD.js} +5 -5
- package/dist/{chunk-AMSWTXT7.js → chunk-R3OIVMMP.js} +4 -4
- package/dist/{chunk-IN3MU7YC.js → chunk-RN6ES42P.js} +4 -4
- package/dist/{chunk-LQ2ZKVR6.js → chunk-UMUTXITN.js} +87 -4
- package/dist/chunk-V67D4V7T.js +107 -0
- package/dist/{chunk-DN2ZP5X3.js → chunk-VKZ4FDXJ.js} +2 -2
- package/dist/chunk-W5G2YPO2.js +11805 -0
- package/dist/{chunk-GQTBVMLV.js → chunk-XSJQXZOL.js} +4 -4
- package/dist/{chunk-CDBXAE2F.js → chunk-Y2JP6WFP.js} +99 -11
- package/dist/{chunk-QOJ7MYZZ.js → chunk-YQAKBVIP.js} +534 -336
- package/dist/cli/commands/auth/logout.js +16 -17
- package/dist/cli/commands/auth/logout.test.js +18 -19
- package/dist/cli/commands/cache/clear.js +15 -16
- package/dist/cli/commands/debug/command-flags.js +15 -16
- package/dist/cli/commands/docs/generate.js +15 -16
- package/dist/cli/commands/docs/generate.test.js +16 -17
- package/dist/cli/commands/help.js +15 -16
- package/dist/cli/commands/kitchen-sink/async.js +16 -17
- package/dist/cli/commands/kitchen-sink/async.test.js +17 -18
- package/dist/cli/commands/kitchen-sink/index.js +18 -19
- package/dist/cli/commands/kitchen-sink/index.test.js +19 -20
- package/dist/cli/commands/kitchen-sink/prompts.js +16 -17
- package/dist/cli/commands/kitchen-sink/prompts.test.js +17 -18
- package/dist/cli/commands/kitchen-sink/static.js +16 -17
- package/dist/cli/commands/kitchen-sink/static.test.js +17 -18
- package/dist/cli/commands/notifications/generate.js +16 -17
- package/dist/cli/commands/notifications/list.js +16 -17
- package/dist/cli/commands/search.js +16 -17
- package/dist/cli/commands/upgrade.js +16 -17
- package/dist/cli/commands/upgrade.test.js +1 -2
- package/dist/cli/commands/version.js +16 -17
- package/dist/cli/commands/version.test.js +17 -18
- package/dist/cli/services/commands/notifications.js +11 -12
- package/dist/cli/services/commands/search.js +7 -8
- package/dist/cli/services/commands/search.test.js +8 -9
- package/dist/cli/services/commands/version.js +8 -9
- package/dist/cli/services/commands/version.test.js +10 -11
- package/dist/cli/services/kitchen-sink/async.js +7 -8
- package/dist/cli/services/kitchen-sink/prompts.js +7 -8
- package/dist/cli/services/kitchen-sink/static.js +7 -8
- package/dist/cli/services/upgrade.js +8 -9
- package/dist/cli/services/upgrade.test.js +10 -11
- package/dist/{custom-oclif-loader-FBD5HO3U.js → custom-oclif-loader-OGNQPWLM.js} +7 -8
- package/dist/{del-YIU34DZ5.js → del-4JSTEFDW.js} +3 -3
- package/dist/{devtools-J4QAI6HR.js → devtools-LDCSRUXB.js} +4 -4
- package/dist/{error-handler-Y4QDEH3I.js → error-handler-7HDPJKMS.js} +13 -14
- package/dist/hooks/postrun.js +11 -12
- package/dist/hooks/prerun.js +12 -13
- package/dist/{http-proxy-KGLXPNEY.js → http-proxy-LHSVRGJ5.js} +14 -10
- package/dist/index.js +153248 -162660
- package/dist/{lib-MIBR2T7P.js → lib-2ZBT3UR2.js} +5 -5
- package/dist/{local-US2LLU7Y.js → local-5DGEQTKE.js} +9 -14
- package/dist/{magic-string.es-BSVDQOZI.js → magic-string.es-UZAAPNRE.js} +42 -36
- package/dist/{morph-3VOLMA55.js → morph-DFRO3NRL.js} +10 -10
- package/dist/node-OJGXX6YN.js +164 -0
- package/dist/{node-package-manager-ZUD6DL6H.js → node-package-manager-QX5ULXMO.js} +8 -9
- package/dist/{out-5KP5WGIK.js → out-NKJPLKLB.js} +2 -2
- package/dist/{path-GWAZZN2N.js → path-COZT77T2.js} +2 -3
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/dist/{ui-LKBRSHMZ.js → ui-ZOXO5UFK.js} +7 -10
- package/dist/{workerd-LF2ZHPL2.js → workerd-BW3TVO32.js} +18 -20
- package/oclif.manifest.json +29 -9
- package/package.json +10 -11
- package/dist/assets/dev-console/extensions/dev-console/assets/index-CqNhY1h-.js +0 -64
- package/dist/assets/hydrogen/starter/.cursor/rules/hydrogen-react-router.mdc +0 -52
- package/dist/assets/hydrogen/starter/app/routes/api.$version.[graphql.json].tsx +0 -14
- package/dist/assets/hydrogen/starter/react-router.config.ts +0 -7
- package/dist/chunk-3I3GQNEW.js +0 -95
- package/dist/chunk-ZEM3T4UY.js +0 -10590
- package/dist/chunk-ZUCWDIGE.js +0 -111
- package/dist/toml-patch-wasm-J5VGG6WG.js +0 -140
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import {
|
|
2
2
|
renderConcurrent,
|
|
3
3
|
renderTasks
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-BU5YHTR3.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-OCEG2LVS.js.map
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
CLI_KIT_VERSION
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-F65YW645.js";
|
|
4
4
|
import {
|
|
5
|
-
|
|
6
|
-
} from "./chunk-
|
|
5
|
+
outputResult
|
|
6
|
+
} from "./chunk-BU5YHTR3.js";
|
|
7
7
|
import {
|
|
8
8
|
init_cjs_shims
|
|
9
9
|
} from "./chunk-PKR7KJ6P.js";
|
|
@@ -11,10 +11,10 @@ import {
|
|
|
11
11
|
// src/cli/services/commands/version.ts
|
|
12
12
|
init_cjs_shims();
|
|
13
13
|
async function versionService() {
|
|
14
|
-
|
|
14
|
+
outputResult(CLI_KIT_VERSION);
|
|
15
15
|
}
|
|
16
16
|
|
|
17
17
|
export {
|
|
18
18
|
versionService
|
|
19
19
|
};
|
|
20
|
-
//# sourceMappingURL=chunk-
|
|
20
|
+
//# sourceMappingURL=chunk-PL4FBKID.js.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import {
|
|
2
2
|
clearCollectedLogs,
|
|
3
3
|
collectedLogs
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-BU5YHTR3.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-PO4WPF5B.js.map
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import {
|
|
2
2
|
base_command_default
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-I55SUBMN.js";
|
|
4
4
|
import {
|
|
5
5
|
cacheClear
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-GESAFNQ7.js";
|
|
7
7
|
import {
|
|
8
8
|
environmentVariables,
|
|
9
9
|
isTruthy
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-BU5YHTR3.js";
|
|
11
11
|
import {
|
|
12
12
|
require_lib
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-LPU2VGJR.js";
|
|
14
14
|
import {
|
|
15
15
|
__toESM,
|
|
16
16
|
init_cjs_shims
|
|
@@ -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-7HDPJKMS.js"), { isDevelopment } = await import("./local-5DGEQTKE.js"), oclif = await import("./lib-2ZBT3UR2.js"), { ShopifyConfig } = await import("./custom-oclif-loader-OGNQPWLM.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-ZOXO5UFK.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-QX5ULXMO.js"), { moduleDirectory } = await import("./path-COZT77T2.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-PZ532W3Q.js.map
|
|
@@ -2,13 +2,13 @@ import {
|
|
|
2
2
|
fetchNotifications,
|
|
3
3
|
getNotifications,
|
|
4
4
|
stringifyFilters
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-FD2PC23V.js";
|
|
6
6
|
import {
|
|
7
7
|
randomUUID
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-NVXZREWB.js";
|
|
9
9
|
import {
|
|
10
10
|
CLI_KIT_VERSION
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-F65YW645.js";
|
|
12
12
|
import {
|
|
13
13
|
outputInfo,
|
|
14
14
|
renderSelectPrompt,
|
|
@@ -16,7 +16,7 @@ import {
|
|
|
16
16
|
renderTable,
|
|
17
17
|
renderTextPrompt,
|
|
18
18
|
writeFile
|
|
19
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-BU5YHTR3.js";
|
|
20
20
|
import {
|
|
21
21
|
init_cjs_shims
|
|
22
22
|
} from "./chunk-PKR7KJ6P.js";
|
|
@@ -103,4 +103,4 @@ export {
|
|
|
103
103
|
generate,
|
|
104
104
|
list
|
|
105
105
|
};
|
|
106
|
-
//# sourceMappingURL=chunk-
|
|
106
|
+
//# sourceMappingURL=chunk-Q5VEQZWD.js.map
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import {
|
|
2
2
|
searchService
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-BWXOMTF4.js";
|
|
4
4
|
import {
|
|
5
5
|
base_command_default
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-I55SUBMN.js";
|
|
7
7
|
import {
|
|
8
8
|
require_lib
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-LPU2VGJR.js";
|
|
10
10
|
import {
|
|
11
11
|
__toESM,
|
|
12
12
|
init_cjs_shims
|
|
@@ -48,4 +48,4 @@ var import_core = __toESM(require_lib(), 1), Search = class _Search extends base
|
|
|
48
48
|
export {
|
|
49
49
|
Search
|
|
50
50
|
};
|
|
51
|
-
//# sourceMappingURL=chunk-
|
|
51
|
+
//# sourceMappingURL=chunk-R3OIVMMP.js.map
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import {
|
|
2
2
|
logout
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-7KHSYC7Q.js";
|
|
4
4
|
import {
|
|
5
5
|
base_command_default
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-I55SUBMN.js";
|
|
7
7
|
import {
|
|
8
8
|
outputSuccess
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-BU5YHTR3.js";
|
|
10
10
|
import {
|
|
11
11
|
init_cjs_shims
|
|
12
12
|
} from "./chunk-PKR7KJ6P.js";
|
|
@@ -25,4 +25,4 @@ var Logout = class extends base_command_default {
|
|
|
25
25
|
export {
|
|
26
26
|
Logout
|
|
27
27
|
};
|
|
28
|
-
//# sourceMappingURL=chunk-
|
|
28
|
+
//# sourceMappingURL=chunk-RN6ES42P.js.map
|
|
@@ -1,6 +1,3 @@
|
|
|
1
|
-
import {
|
|
2
|
-
require_supports_color
|
|
3
|
-
} from "./chunk-3I3GQNEW.js";
|
|
4
1
|
import {
|
|
5
2
|
__commonJS,
|
|
6
3
|
__require,
|
|
@@ -334,6 +331,90 @@ var require_browser = __commonJS({
|
|
|
334
331
|
}
|
|
335
332
|
});
|
|
336
333
|
|
|
334
|
+
// ../../node_modules/.pnpm/has-flag@4.0.0/node_modules/has-flag/index.js
|
|
335
|
+
var require_has_flag = __commonJS({
|
|
336
|
+
"../../node_modules/.pnpm/has-flag@4.0.0/node_modules/has-flag/index.js"(exports, module) {
|
|
337
|
+
"use strict";
|
|
338
|
+
init_cjs_shims();
|
|
339
|
+
module.exports = (flag, argv = process.argv) => {
|
|
340
|
+
let prefix = flag.startsWith("-") ? "" : flag.length === 1 ? "-" : "--", position = argv.indexOf(prefix + flag), terminatorPosition = argv.indexOf("--");
|
|
341
|
+
return position !== -1 && (terminatorPosition === -1 || position < terminatorPosition);
|
|
342
|
+
};
|
|
343
|
+
}
|
|
344
|
+
});
|
|
345
|
+
|
|
346
|
+
// ../../node_modules/.pnpm/supports-color@8.1.1/node_modules/supports-color/index.js
|
|
347
|
+
var require_supports_color = __commonJS({
|
|
348
|
+
"../../node_modules/.pnpm/supports-color@8.1.1/node_modules/supports-color/index.js"(exports, module) {
|
|
349
|
+
"use strict";
|
|
350
|
+
init_cjs_shims();
|
|
351
|
+
var os = __require("os"), tty = __require("tty"), hasFlag = require_has_flag(), { env } = process, flagForceColor;
|
|
352
|
+
hasFlag("no-color") || hasFlag("no-colors") || hasFlag("color=false") || hasFlag("color=never") ? flagForceColor = 0 : (hasFlag("color") || hasFlag("colors") || hasFlag("color=true") || hasFlag("color=always")) && (flagForceColor = 1);
|
|
353
|
+
function envForceColor() {
|
|
354
|
+
if ("FORCE_COLOR" in env)
|
|
355
|
+
return env.FORCE_COLOR === "true" ? 1 : env.FORCE_COLOR === "false" ? 0 : env.FORCE_COLOR.length === 0 ? 1 : Math.min(Number.parseInt(env.FORCE_COLOR, 10), 3);
|
|
356
|
+
}
|
|
357
|
+
function translateLevel(level) {
|
|
358
|
+
return level === 0 ? !1 : {
|
|
359
|
+
level,
|
|
360
|
+
hasBasic: !0,
|
|
361
|
+
has256: level >= 2,
|
|
362
|
+
has16m: level >= 3
|
|
363
|
+
};
|
|
364
|
+
}
|
|
365
|
+
function supportsColor(haveStream, { streamIsTTY, sniffFlags = !0 } = {}) {
|
|
366
|
+
let noFlagForceColor = envForceColor();
|
|
367
|
+
noFlagForceColor !== void 0 && (flagForceColor = noFlagForceColor);
|
|
368
|
+
let forceColor = sniffFlags ? flagForceColor : noFlagForceColor;
|
|
369
|
+
if (forceColor === 0)
|
|
370
|
+
return 0;
|
|
371
|
+
if (sniffFlags) {
|
|
372
|
+
if (hasFlag("color=16m") || hasFlag("color=full") || hasFlag("color=truecolor"))
|
|
373
|
+
return 3;
|
|
374
|
+
if (hasFlag("color=256"))
|
|
375
|
+
return 2;
|
|
376
|
+
}
|
|
377
|
+
if (haveStream && !streamIsTTY && forceColor === void 0)
|
|
378
|
+
return 0;
|
|
379
|
+
let min = forceColor || 0;
|
|
380
|
+
if (env.TERM === "dumb")
|
|
381
|
+
return min;
|
|
382
|
+
if (process.platform === "win32") {
|
|
383
|
+
let osRelease = os.release().split(".");
|
|
384
|
+
return Number(osRelease[0]) >= 10 && Number(osRelease[2]) >= 10586 ? Number(osRelease[2]) >= 14931 ? 3 : 2 : 1;
|
|
385
|
+
}
|
|
386
|
+
if ("CI" in env)
|
|
387
|
+
return ["TRAVIS", "CIRCLECI", "APPVEYOR", "GITLAB_CI", "GITHUB_ACTIONS", "BUILDKITE", "DRONE"].some((sign) => sign in env) || env.CI_NAME === "codeship" ? 1 : min;
|
|
388
|
+
if ("TEAMCITY_VERSION" in env)
|
|
389
|
+
return /^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(env.TEAMCITY_VERSION) ? 1 : 0;
|
|
390
|
+
if (env.COLORTERM === "truecolor")
|
|
391
|
+
return 3;
|
|
392
|
+
if ("TERM_PROGRAM" in env) {
|
|
393
|
+
let version = Number.parseInt((env.TERM_PROGRAM_VERSION || "").split(".")[0], 10);
|
|
394
|
+
switch (env.TERM_PROGRAM) {
|
|
395
|
+
case "iTerm.app":
|
|
396
|
+
return version >= 3 ? 3 : 2;
|
|
397
|
+
case "Apple_Terminal":
|
|
398
|
+
return 2;
|
|
399
|
+
}
|
|
400
|
+
}
|
|
401
|
+
return /-256(color)?$/i.test(env.TERM) ? 2 : /^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(env.TERM) || "COLORTERM" in env ? 1 : min;
|
|
402
|
+
}
|
|
403
|
+
function getSupportLevel(stream, options = {}) {
|
|
404
|
+
let level = supportsColor(stream, {
|
|
405
|
+
streamIsTTY: stream && stream.isTTY,
|
|
406
|
+
...options
|
|
407
|
+
});
|
|
408
|
+
return translateLevel(level);
|
|
409
|
+
}
|
|
410
|
+
module.exports = {
|
|
411
|
+
supportsColor: getSupportLevel,
|
|
412
|
+
stdout: getSupportLevel({ isTTY: tty.isatty(1) }),
|
|
413
|
+
stderr: getSupportLevel({ isTTY: tty.isatty(2) })
|
|
414
|
+
};
|
|
415
|
+
}
|
|
416
|
+
});
|
|
417
|
+
|
|
337
418
|
// ../../node_modules/.pnpm/debug@4.4.0_supports-color@8.1.1/node_modules/debug/src/node.js
|
|
338
419
|
var require_node = __commonJS({
|
|
339
420
|
"../../node_modules/.pnpm/debug@4.4.0_supports-color@8.1.1/node_modules/debug/src/node.js"(exports, module) {
|
|
@@ -490,7 +571,9 @@ var require_src = __commonJS({
|
|
|
490
571
|
});
|
|
491
572
|
|
|
492
573
|
export {
|
|
574
|
+
require_has_flag,
|
|
493
575
|
require_ms,
|
|
576
|
+
require_supports_color,
|
|
494
577
|
require_src
|
|
495
578
|
};
|
|
496
|
-
//# sourceMappingURL=chunk-
|
|
579
|
+
//# sourceMappingURL=chunk-UMUTXITN.js.map
|
|
@@ -0,0 +1,107 @@
|
|
|
1
|
+
import {
|
|
2
|
+
init_cjs_shims
|
|
3
|
+
} from "./chunk-PKR7KJ6P.js";
|
|
4
|
+
|
|
5
|
+
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@10.0.1_@graphql-codegen+cli@5.0.4_@parcel+watcher@2.5.1_@types+no_700217a4222a08650099cd57a51aa579/node_modules/@shopify/cli-hydrogen/dist/lib/find-port.js
|
|
6
|
+
init_cjs_shims();
|
|
7
|
+
|
|
8
|
+
// ../../node_modules/.pnpm/get-port@7.1.0/node_modules/get-port/index.js
|
|
9
|
+
init_cjs_shims();
|
|
10
|
+
import net from "node:net";
|
|
11
|
+
import os from "node:os";
|
|
12
|
+
var Locked = class extends Error {
|
|
13
|
+
constructor(port) {
|
|
14
|
+
super(`${port} is locked`);
|
|
15
|
+
}
|
|
16
|
+
}, lockedPorts = {
|
|
17
|
+
old: /* @__PURE__ */ new Set(),
|
|
18
|
+
young: /* @__PURE__ */ new Set()
|
|
19
|
+
}, releaseOldLockedPortsIntervalMs = 1e3 * 15, minPort = 1024, maxPort = 65535, timeout, getLocalHosts = () => {
|
|
20
|
+
let interfaces = os.networkInterfaces(), results = /* @__PURE__ */ new Set([void 0, "0.0.0.0"]);
|
|
21
|
+
for (let _interface of Object.values(interfaces))
|
|
22
|
+
for (let config of _interface)
|
|
23
|
+
results.add(config.address);
|
|
24
|
+
return results;
|
|
25
|
+
}, checkAvailablePort = (options) => new Promise((resolve, reject) => {
|
|
26
|
+
let server = net.createServer();
|
|
27
|
+
server.unref(), server.on("error", reject), server.listen(options, () => {
|
|
28
|
+
let { port } = server.address();
|
|
29
|
+
server.close(() => {
|
|
30
|
+
resolve(port);
|
|
31
|
+
});
|
|
32
|
+
});
|
|
33
|
+
}), getAvailablePort = async (options, hosts) => {
|
|
34
|
+
if (options.host || options.port === 0)
|
|
35
|
+
return checkAvailablePort(options);
|
|
36
|
+
for (let host of hosts)
|
|
37
|
+
try {
|
|
38
|
+
await checkAvailablePort({ port: options.port, host });
|
|
39
|
+
} catch (error) {
|
|
40
|
+
if (!["EADDRNOTAVAIL", "EINVAL"].includes(error.code))
|
|
41
|
+
throw error;
|
|
42
|
+
}
|
|
43
|
+
return options.port;
|
|
44
|
+
}, portCheckSequence = function* (ports) {
|
|
45
|
+
ports && (yield* ports), yield 0;
|
|
46
|
+
};
|
|
47
|
+
async function getPorts(options) {
|
|
48
|
+
let ports, exclude = /* @__PURE__ */ new Set();
|
|
49
|
+
if (options && (options.port && (ports = typeof options.port == "number" ? [options.port] : options.port), options.exclude)) {
|
|
50
|
+
let excludeIterable = options.exclude;
|
|
51
|
+
if (typeof excludeIterable[Symbol.iterator] != "function")
|
|
52
|
+
throw new TypeError("The `exclude` option must be an iterable.");
|
|
53
|
+
for (let element of excludeIterable) {
|
|
54
|
+
if (typeof element != "number")
|
|
55
|
+
throw new TypeError("Each item in the `exclude` option must be a number corresponding to the port you want excluded.");
|
|
56
|
+
if (!Number.isSafeInteger(element))
|
|
57
|
+
throw new TypeError(`Number ${element} in the exclude option is not a safe integer and can't be used`);
|
|
58
|
+
}
|
|
59
|
+
exclude = new Set(excludeIterable);
|
|
60
|
+
}
|
|
61
|
+
timeout === void 0 && (timeout = setTimeout(() => {
|
|
62
|
+
timeout = void 0, lockedPorts.old = lockedPorts.young, lockedPorts.young = /* @__PURE__ */ new Set();
|
|
63
|
+
}, releaseOldLockedPortsIntervalMs), timeout.unref && timeout.unref());
|
|
64
|
+
let hosts = getLocalHosts();
|
|
65
|
+
for (let port of portCheckSequence(ports))
|
|
66
|
+
try {
|
|
67
|
+
if (exclude.has(port))
|
|
68
|
+
continue;
|
|
69
|
+
let availablePort = await getAvailablePort({ ...options, port }, hosts);
|
|
70
|
+
for (; lockedPorts.old.has(availablePort) || lockedPorts.young.has(availablePort); ) {
|
|
71
|
+
if (port !== 0)
|
|
72
|
+
throw new Locked(port);
|
|
73
|
+
availablePort = await getAvailablePort({ ...options, port }, hosts);
|
|
74
|
+
}
|
|
75
|
+
return lockedPorts.young.add(availablePort), availablePort;
|
|
76
|
+
} catch (error) {
|
|
77
|
+
if (!["EADDRINUSE", "EACCES"].includes(error.code) && !(error instanceof Locked))
|
|
78
|
+
throw error;
|
|
79
|
+
}
|
|
80
|
+
throw new Error("No available ports found");
|
|
81
|
+
}
|
|
82
|
+
function portNumbers(from, to) {
|
|
83
|
+
if (!Number.isInteger(from) || !Number.isInteger(to))
|
|
84
|
+
throw new TypeError("`from` and `to` must be integer numbers");
|
|
85
|
+
if (from < minPort || from > maxPort)
|
|
86
|
+
throw new RangeError(`'from' must be between ${minPort} and ${maxPort}`);
|
|
87
|
+
if (to < minPort || to > maxPort)
|
|
88
|
+
throw new RangeError(`'to' must be between ${minPort} and ${maxPort}`);
|
|
89
|
+
if (from > to)
|
|
90
|
+
throw new RangeError("`to` must be greater than or equal to `from`");
|
|
91
|
+
return function* (from2, to2) {
|
|
92
|
+
for (let port = from2; port <= to2; port++)
|
|
93
|
+
yield port;
|
|
94
|
+
}(from, to);
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@10.0.1_@graphql-codegen+cli@5.0.4_@parcel+watcher@2.5.1_@types+no_700217a4222a08650099cd57a51aa579/node_modules/@shopify/cli-hydrogen/dist/lib/find-port.js
|
|
98
|
+
function findPort(portPreference, range = 100) {
|
|
99
|
+
return getPorts({
|
|
100
|
+
port: portNumbers(portPreference, portPreference + range)
|
|
101
|
+
});
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
export {
|
|
105
|
+
findPort
|
|
106
|
+
};
|
|
107
|
+
//# sourceMappingURL=chunk-V67D4V7T.js.map
|
|
@@ -5,7 +5,7 @@ import {
|
|
|
5
5
|
renderDangerousConfirmationPrompt,
|
|
6
6
|
renderSelectPrompt,
|
|
7
7
|
renderTextPrompt
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-BU5YHTR3.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-VKZ4FDXJ.js.map
|