@shopify/cli 3.85.3 → 3.85.4
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 +155 -148
- package/dist/assets/hydrogen/starter/CHANGELOG.md +125 -49
- 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 +62 -29
- 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 +2 -2
- package/dist/assets/hydrogen/starter/app/components/SearchForm.tsx +1 -1
- package/dist/assets/hydrogen/starter/app/components/SearchFormPredictive.tsx +8 -3
- package/dist/assets/hydrogen/starter/app/components/SearchResults.tsx +3 -11
- package/dist/assets/hydrogen/starter/app/components/SearchResultsPredictive.tsx +2 -6
- package/dist/assets/hydrogen/starter/app/entry.client.tsx +10 -2
- package/dist/assets/hydrogen/starter/app/entry.server.tsx +5 -3
- package/dist/assets/hydrogen/starter/app/graphql/customer-account/CustomerAddressMutations.ts +7 -4
- package/dist/assets/hydrogen/starter/app/graphql/customer-account/CustomerDetailsQuery.ts +1 -1
- package/dist/assets/hydrogen/starter/app/graphql/customer-account/CustomerOrderQuery.ts +4 -1
- package/dist/assets/hydrogen/starter/app/graphql/customer-account/CustomerOrdersQuery.ts +10 -5
- package/dist/assets/hydrogen/starter/app/graphql/customer-account/CustomerUpdateMutation.ts +3 -2
- package/dist/assets/hydrogen/starter/app/lib/context.ts +34 -17
- package/dist/assets/hydrogen/starter/app/lib/fragments.ts +1 -0
- package/dist/assets/hydrogen/starter/app/lib/orderFilters.ts +90 -0
- package/dist/assets/hydrogen/starter/app/lib/redirect.ts +1 -1
- package/dist/assets/hydrogen/starter/app/lib/session.ts +1 -1
- package/dist/assets/hydrogen/starter/app/lib/variants.ts +1 -1
- package/dist/assets/hydrogen/starter/app/root.tsx +23 -18
- package/dist/assets/hydrogen/starter/app/routes/$.tsx +2 -2
- package/dist/assets/hydrogen/starter/app/routes/[robots.txt].tsx +2 -2
- package/dist/assets/hydrogen/starter/app/routes/[sitemap.xml].tsx +2 -3
- package/dist/assets/hydrogen/starter/app/routes/_index.tsx +12 -8
- package/dist/assets/hydrogen/starter/app/routes/account.$.tsx +4 -3
- package/dist/assets/hydrogen/starter/app/routes/account._index.tsx +1 -1
- package/dist/assets/hydrogen/starter/app/routes/account.addresses.tsx +15 -11
- package/dist/assets/hydrogen/starter/app/routes/account.orders.$id.tsx +47 -22
- package/dist/assets/hydrogen/starter/app/routes/account.orders._index.tsx +152 -23
- package/dist/assets/hydrogen/starter/app/routes/account.profile.tsx +11 -8
- package/dist/assets/hydrogen/starter/app/routes/account.tsx +16 -4
- package/dist/assets/hydrogen/starter/app/routes/account_.authorize.tsx +2 -2
- package/dist/assets/hydrogen/starter/app/routes/account_.login.tsx +5 -3
- package/dist/assets/hydrogen/starter/app/routes/account_.logout.tsx +3 -2
- package/dist/assets/hydrogen/starter/app/routes/api.$version.[graphql.json].tsx +2 -2
- package/dist/assets/hydrogen/starter/app/routes/blogs.$blogHandle.$articleHandle.tsx +6 -10
- package/dist/assets/hydrogen/starter/app/routes/blogs.$blogHandle._index.tsx +10 -7
- package/dist/assets/hydrogen/starter/app/routes/blogs._index.tsx +13 -7
- package/dist/assets/hydrogen/starter/app/routes/cart.$lines.tsx +3 -2
- package/dist/assets/hydrogen/starter/app/routes/cart.tsx +13 -9
- package/dist/assets/hydrogen/starter/app/routes/collections.$handle.tsx +8 -11
- package/dist/assets/hydrogen/starter/app/routes/collections._index.tsx +6 -6
- package/dist/assets/hydrogen/starter/app/routes/collections.all.tsx +10 -7
- package/dist/assets/hydrogen/starter/app/routes/discount.$code.tsx +3 -2
- package/dist/assets/hydrogen/starter/app/routes/pages.$handle.tsx +8 -6
- package/dist/assets/hydrogen/starter/app/routes/policies.$handle.tsx +7 -4
- package/dist/assets/hydrogen/starter/app/routes/policies._index.tsx +19 -13
- package/dist/assets/hydrogen/starter/app/routes/products.$handle.tsx +9 -6
- package/dist/assets/hydrogen/starter/app/routes/search.tsx +14 -14
- package/dist/assets/hydrogen/starter/app/routes/sitemap.$type.$page[.xml].tsx +2 -3
- package/dist/assets/hydrogen/starter/app/routes.ts +1 -1
- package/dist/assets/hydrogen/starter/app/styles/app.css +53 -1
- package/dist/assets/hydrogen/starter/customer-accountapi.generated.d.ts +47 -13
- package/dist/assets/hydrogen/starter/env.d.ts +1 -39
- package/dist/assets/hydrogen/starter/eslint.config.js +35 -52
- package/dist/assets/hydrogen/starter/package.json +14 -15
- package/dist/assets/hydrogen/starter/react-router.config.ts +9 -3
- package/dist/assets/hydrogen/starter/server.ts +7 -7
- package/dist/assets/hydrogen/starter/storefrontapi.generated.d.ts +1 -1
- package/dist/assets/hydrogen/starter/tsconfig.json +17 -13
- package/dist/assets/hydrogen/starter/vite.config.ts +3 -0
- package/dist/assets/hydrogen/virtual-routes/components/RequestDetails.jsx +13 -20
- package/dist/assets/hydrogen/virtual-routes/routes/[.]well-known.appspecific.com[.]chrome[.]devtools[.]json.jsx +37 -0
- package/dist/{chokidar-TTCYG5AA.js → chokidar-HTKREZL3.js} +482 -7
- package/dist/{chunk-I4ATBX6D.js → chunk-2C6DJIBX.js} +4 -4
- package/dist/{chunk-JAUHWNMJ.js → chunk-2H6AD4EL.js} +5 -5
- package/dist/{chunk-HTTZVPR6.js → chunk-2XTIBWBA.js} +3 -3
- package/dist/{chunk-HS2O5IHL.js → chunk-34TWZ632.js} +3 -4
- package/dist/{chunk-Y4H4HMEZ.js → chunk-3762O47V.js} +2 -2
- package/dist/{chunk-C45MKMJT.js → chunk-3JZIRVBB.js} +8 -11
- package/dist/{chunk-OQKAZQIC.js → chunk-5AUZG65U.js} +5 -5
- package/dist/{chunk-OURS5IQY.js → chunk-5JFU2PDH.js} +3 -3
- package/dist/{chunk-AMWSD3HH.js → chunk-BRYTLGQH.js} +3 -3
- package/dist/{chunk-QP2MOS2Y.js → chunk-CBUCMJTB.js} +2 -2
- package/dist/{chunk-IHXRXBUN.js → chunk-DBQFPT3U.js} +6 -6
- package/dist/{chunk-QHKSKL4E.js → chunk-DEMUK3QR.js} +4 -4
- package/dist/{chunk-EDXQ22O4.js → chunk-EPNYJUKL.js} +6 -6
- package/dist/{chunk-5RNGA7FX.js → chunk-GMOJ4MM6.js} +5 -5
- package/dist/{chunk-ZHKIKKU7.js → chunk-JDGRN7YI.js} +4 -4
- package/dist/{chunk-HBANZKAF.js → chunk-JXSJVKPK.js} +3 -3
- package/dist/{chunk-LJXXOFEJ.js → chunk-M6DL6PW7.js} +2 -2
- package/dist/{chunk-D5DJSKHK.js → chunk-NIJYJVQ7.js} +112 -113
- package/dist/{chunk-NLFRHIZY.js → chunk-ON22YJEB.js} +6 -6
- package/dist/{chunk-F7TU455C.js → chunk-OYGH5GC4.js} +2 -2
- package/dist/{chunk-VR6Z7LKU.js → chunk-P24ZSULK.js} +3 -3
- package/dist/{chunk-6RJ7HBOQ.js → chunk-QCCEM2W7.js} +3 -3
- package/dist/{chunk-CAONVM2S.js → chunk-QCVEBMJO.js} +3 -3
- package/dist/{chunk-XJBIASMX.js → chunk-QDQ64PMY.js} +3 -3
- package/dist/{chunk-3XWYM7QS.js → chunk-S5H4ZYTZ.js} +3 -3
- package/dist/{chunk-V5ONTA7N.js → chunk-SJ6XHMPR.js} +2 -2
- package/dist/{chunk-UW4ASA6Y.js → chunk-UTGZE4KZ.js} +4 -4
- package/dist/{chunk-FGEKMLLA.js → chunk-VOXGVQ4Y.js} +6 -6
- package/dist/{chunk-RPU6TIF2.js → chunk-VVHZTHIS.js} +7 -7
- package/dist/{chunk-GRVHLYQS.js → chunk-W7V5E5TL.js} +4 -4
- package/dist/{chunk-6A6GDV25.js → chunk-XEG67XNW.js} +4 -4
- package/dist/{chunk-EWEA4LRT.js → chunk-XQMRWA2D.js} +2 -2
- package/dist/{chunk-L54PNQGV.js → chunk-XXIM3XSO.js} +2 -2
- package/dist/{chunk-VVUZFYUK.js → chunk-Y2BC44O5.js} +4 -4
- package/dist/{chunk-EG6MBBEN.js → chunk-Y2JP6WFP.js} +2 -2
- package/dist/cli/commands/auth/login.js +11 -11
- package/dist/cli/commands/auth/login.test.js +12 -12
- package/dist/cli/commands/auth/logout.js +11 -11
- package/dist/cli/commands/auth/logout.test.js +12 -12
- 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.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.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/{custom-oclif-loader-YDKLB47A.js → custom-oclif-loader-OFIEXBNK.js} +3 -3
- package/dist/{error-handler-BYZU2C5C.js → error-handler-FHZMF7GS.js} +9 -9
- package/dist/hooks/postrun.js +7 -7
- package/dist/hooks/prerun.js +8 -8
- package/dist/index.js +1798 -3481
- package/dist/{local-XLJD5WYP.js → local-4MIY74VR.js} +3 -3
- package/dist/{morph-5D7H6MU2.js → morph-D4BXY376.js} +9 -9
- package/dist/{node-package-manager-I7AWSWJ4.js → node-package-manager-H6KF4PH6.js} +4 -4
- package/dist/{path-GB4VIEM6.js → path-COZT77T2.js} +2 -2
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/dist/{ui-2AJAFJYY.js → ui-R3FDFL2U.js} +3 -3
- package/dist/{workerd-4DJKRJUB.js → workerd-JVZ57YOV.js} +13 -13
- package/oclif.manifest.json +11 -56
- package/package.json +8 -8
- package/dist/chokidar-XUA2BN3J.js +0 -1120
- package/dist/chunk-F7J5CUMZ.js +0 -497
|
@@ -3,10 +3,10 @@ import {
|
|
|
3
3
|
} from "./chunk-EFOOQV72.js";
|
|
4
4
|
import {
|
|
5
5
|
base_command_default
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-ON22YJEB.js";
|
|
7
7
|
import {
|
|
8
8
|
fanoutHooks
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-EPNYJUKL.js";
|
|
10
10
|
import {
|
|
11
11
|
businessPlatformRequest,
|
|
12
12
|
ensureAuthenticatedAdmin,
|
|
@@ -14,7 +14,7 @@ import {
|
|
|
14
14
|
graphqlRequest,
|
|
15
15
|
logout,
|
|
16
16
|
normalizeStoreFqdn
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-VOXGVQ4Y.js";
|
|
18
18
|
import {
|
|
19
19
|
findUpAndReadPackageJson,
|
|
20
20
|
getPackageManager,
|
|
@@ -22,7 +22,7 @@ import {
|
|
|
22
22
|
packageManagerFromUserAgent,
|
|
23
23
|
readAndParsePackageJson,
|
|
24
24
|
writePackageJSON
|
|
25
|
-
} from "./chunk-
|
|
25
|
+
} from "./chunk-UTGZE4KZ.js";
|
|
26
26
|
import {
|
|
27
27
|
AbortError,
|
|
28
28
|
BugError,
|
|
@@ -62,7 +62,7 @@ import {
|
|
|
62
62
|
runWithTimer,
|
|
63
63
|
source_default,
|
|
64
64
|
writeFile
|
|
65
|
-
} from "./chunk-
|
|
65
|
+
} from "./chunk-34TWZ632.js";
|
|
66
66
|
import {
|
|
67
67
|
require_ansi_escapes,
|
|
68
68
|
require_ansi_styles,
|
|
@@ -102,7 +102,7 @@ import {
|
|
|
102
102
|
relativePath,
|
|
103
103
|
relativizePath,
|
|
104
104
|
resolvePath
|
|
105
|
-
} from "./chunk-
|
|
105
|
+
} from "./chunk-Y2JP6WFP.js";
|
|
106
106
|
import {
|
|
107
107
|
__commonJS,
|
|
108
108
|
__require,
|
|
@@ -176,10 +176,10 @@ var require_fs = __commonJS({
|
|
|
176
176
|
}
|
|
177
177
|
}
|
|
178
178
|
exports.safeReadJson = safeReadJson;
|
|
179
|
-
function
|
|
179
|
+
function existsSync2(path3) {
|
|
180
180
|
return (0, node_fs_1.existsSync)(path3);
|
|
181
181
|
}
|
|
182
|
-
exports.existsSync =
|
|
182
|
+
exports.existsSync = existsSync2;
|
|
183
183
|
}
|
|
184
184
|
});
|
|
185
185
|
|
|
@@ -20704,7 +20704,7 @@ ${error.message}`, error;
|
|
|
20704
20704
|
}), require_find_parent_dir = __commonJS3({
|
|
20705
20705
|
"node_modules/find-parent-dir/index.js"(exports2, module2) {
|
|
20706
20706
|
"use strict";
|
|
20707
|
-
var path3 = __require("path"), fs = __require("fs"), exists2 = fs.exists || path3.exists,
|
|
20707
|
+
var path3 = __require("path"), fs = __require("fs"), exists2 = fs.exists || path3.exists, existsSync2 = fs.existsSync || path3.existsSync;
|
|
20708
20708
|
function splitPath(path22) {
|
|
20709
20709
|
var parts = path22.split(/(\/|\\)/);
|
|
20710
20710
|
return parts.length ? parts[0].length ? parts : parts.slice(1) : parts;
|
|
@@ -20725,7 +20725,7 @@ ${error.message}`, error;
|
|
|
20725
20725
|
function testDir(parts) {
|
|
20726
20726
|
if (parts.length === 0)
|
|
20727
20727
|
return null;
|
|
20728
|
-
var p = parts.join(""), itdoes =
|
|
20728
|
+
var p = parts.join(""), itdoes = existsSync2(path3.join(p, clue));
|
|
20729
20729
|
return itdoes ? p : testDir(parts.slice(0, -1));
|
|
20730
20730
|
}
|
|
20731
20731
|
return testDir(splitPath(currentFullPath));
|
|
@@ -146214,7 +146214,7 @@ var require_main2 = __commonJS({
|
|
|
146214
146214
|
}
|
|
146215
146215
|
});
|
|
146216
146216
|
|
|
146217
|
-
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@11.1.
|
|
146217
|
+
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@11.1.4_@graphql-codegen+cli@5.0.4_@parcel+watcher@2.5.1_@types+no_c52e2457cf80ea7b83331106203d4a49/node_modules/@shopify/cli-hydrogen/dist/lib/import-utils.js
|
|
146218
146218
|
init_cjs_shims();
|
|
146219
146219
|
import { createRequire } from "node:module";
|
|
146220
146220
|
import { pathToFileURL } from "node:url";
|
|
@@ -146223,8 +146223,8 @@ async function importVite(root) {
|
|
|
146223
146223
|
let vitePath = require2.resolve(
|
|
146224
146224
|
"vite",
|
|
146225
146225
|
process.env.SHOPIFY_UNIT_TEST ? void 0 : { paths: [root] }
|
|
146226
|
-
), vitePackageJson = await findUpAndReadPackageJson(vitePath), viteNodeIndexFile = vitePackageJson.content.exports?.["."]
|
|
146227
|
-
typeof viteNodeIndexFile != "string" && (viteNodeIndexFile = viteNodeIndexFile.default);
|
|
146226
|
+
), vitePackageJson = await findUpAndReadPackageJson(vitePath), viteNodeIndexFile = vitePackageJson.content.exports?.["."];
|
|
146227
|
+
typeof viteNodeIndexFile != "string" && (viteNodeIndexFile = viteNodeIndexFile?.import), typeof viteNodeIndexFile != "string" && (viteNodeIndexFile = viteNodeIndexFile.default);
|
|
146228
146228
|
let viteNodePath = joinPath(
|
|
146229
146229
|
dirname(vitePackageJson.path),
|
|
146230
146230
|
viteNodeIndexFile
|
|
@@ -146239,13 +146239,13 @@ function importLocal(packageName, path3) {
|
|
|
146239
146239
|
return import(pathToFileURL(realPath).href);
|
|
146240
146240
|
}
|
|
146241
146241
|
|
|
146242
|
-
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@11.1.
|
|
146242
|
+
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@11.1.4_@graphql-codegen+cli@5.0.4_@parcel+watcher@2.5.1_@types+no_c52e2457cf80ea7b83331106203d4a49/node_modules/@shopify/cli-hydrogen/dist/lib/request-events.js
|
|
146243
146243
|
init_cjs_shims();
|
|
146244
146244
|
import path from "node:path";
|
|
146245
146245
|
import { EventEmitter } from "node:events";
|
|
146246
146246
|
import { ReadableStream } from "node:stream/web";
|
|
146247
146247
|
|
|
146248
|
-
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@11.1.
|
|
146248
|
+
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@11.1.4_@graphql-codegen+cli@5.0.4_@parcel+watcher@2.5.1_@types+no_c52e2457cf80ea7b83331106203d4a49/node_modules/@shopify/cli-hydrogen/dist/lib/graphiql-url.js
|
|
146249
146249
|
init_cjs_shims();
|
|
146250
146250
|
function getGraphiQLUrl({
|
|
146251
146251
|
host = "",
|
|
@@ -146259,7 +146259,7 @@ function getGraphiQLUrl({
|
|
|
146259
146259
|
return url;
|
|
146260
146260
|
}
|
|
146261
146261
|
|
|
146262
|
-
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@11.1.
|
|
146262
|
+
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@11.1.4_@graphql-codegen+cli@5.0.4_@parcel+watcher@2.5.1_@types+no_c52e2457cf80ea7b83331106203d4a49/node_modules/@shopify/cli-hydrogen/dist/lib/request-events.js
|
|
146263
146263
|
var import_source_map_support = __toESM(require_source_map_support(), 1), H2O_BINDING_NAME = "H2O_LOG_EVENT", ResponseConstructor;
|
|
146264
146264
|
function setConstructors(constructors) {
|
|
146265
146265
|
ResponseConstructor = constructors.Response;
|
|
@@ -146360,7 +146360,7 @@ function handleDebugNetworkRequest(request) {
|
|
|
146360
146360
|
return request.method === "DELETE" ? clearHistory() : streamRequestEvents(request);
|
|
146361
146361
|
}
|
|
146362
146362
|
|
|
146363
|
-
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@11.1.
|
|
146363
|
+
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@11.1.4_@graphql-codegen+cli@5.0.4_@parcel+watcher@2.5.1_@types+no_c52e2457cf80ea7b83331106203d4a49/node_modules/@shopify/cli-hydrogen/dist/lib/mini-oxygen/common.js
|
|
146364
146364
|
init_cjs_shims();
|
|
146365
146365
|
var SUBREQUEST_PROFILER_ENDPOINT = "/debug-network-server";
|
|
146366
146366
|
function handleMiniOxygenImportFail() {
|
|
@@ -146376,7 +146376,7 @@ function logRequestLine({
|
|
|
146376
146376
|
}) {
|
|
146377
146377
|
try {
|
|
146378
146378
|
let url = new URL(request.url);
|
|
146379
|
-
if (DEV_ROUTES.has(url.pathname) || url.pathname === "/favicon.ico") return;
|
|
146379
|
+
if (!meta.durationMs && meta.startTimeMs && meta.endTimeMs && (meta.durationMs = meta.endTimeMs - meta.startTimeMs), DEV_ROUTES.has(url.pathname) || url.pathname === "/favicon.ico") return;
|
|
146380
146380
|
let isDataRequest = url.searchParams.has("_data"), route = request.url.replace(url.origin, ""), info = "", type = "render";
|
|
146381
146381
|
if (isDataRequest) {
|
|
146382
146382
|
type = request.method === "GET" ? "loader" : "action";
|
|
@@ -146387,39 +146387,40 @@ function logRequestLine({
|
|
|
146387
146387
|
outputInfo(
|
|
146388
146388
|
outputContent`${request.method.padStart(6)} ${colorizeStatus(
|
|
146389
146389
|
String(response.status)
|
|
146390
|
-
)} ${outputToken.italic(type.padEnd(7, " "))} ${route} ${meta.durationMs > 0 ? source_default.dim(` ${meta.durationMs}ms`) : ""}${info ? " " + source_default.dim(info) : ""}${request.headers.purpose === "prefetch" ?
|
|
146390
|
+
)} ${outputToken.italic(type.padEnd(7, " "))} ${route} ${meta.durationMs && meta.durationMs > 0 ? source_default.dim(` ${meta.durationMs}ms`) : ""}${info ? " " + source_default.dim(info) : ""}${request.headers.purpose === "prefetch" ? source_default.italic(source_default.dim(" prefetch")) : ""}`
|
|
146391
146391
|
);
|
|
146392
146392
|
} catch {
|
|
146393
146393
|
request && response?.status && outputInfo(`${request.method} ${response.status} ${request.url}`);
|
|
146394
146394
|
}
|
|
146395
146395
|
}
|
|
146396
146396
|
|
|
146397
|
-
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@11.1.
|
|
146397
|
+
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@11.1.4_@graphql-codegen+cli@5.0.4_@parcel+watcher@2.5.1_@types+no_c52e2457cf80ea7b83331106203d4a49/node_modules/@shopify/cli-hydrogen/dist/lib/dev-shared.js
|
|
146398
146398
|
init_cjs_shims();
|
|
146399
146399
|
|
|
146400
|
-
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@11.1.
|
|
146400
|
+
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@11.1.4_@graphql-codegen+cli@5.0.4_@parcel+watcher@2.5.1_@types+no_c52e2457cf80ea7b83331106203d4a49/node_modules/@shopify/cli-hydrogen/dist/commands/hydrogen/customer-account/push.js
|
|
146401
146401
|
init_cjs_shims();
|
|
146402
146402
|
var import_core3 = __toESM(require_lib2(), 1);
|
|
146403
146403
|
|
|
146404
|
-
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@11.1.
|
|
146404
|
+
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@11.1.4_@graphql-codegen+cli@5.0.4_@parcel+watcher@2.5.1_@types+no_c52e2457cf80ea7b83331106203d4a49/node_modules/@shopify/cli-hydrogen/dist/commands/hydrogen/link.js
|
|
146405
146405
|
init_cjs_shims();
|
|
146406
146406
|
var import_core2 = __toESM(require_lib2(), 1);
|
|
146407
146407
|
|
|
146408
|
-
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@11.1.
|
|
146408
|
+
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@11.1.4_@graphql-codegen+cli@5.0.4_@parcel+watcher@2.5.1_@types+no_c52e2457cf80ea7b83331106203d4a49/node_modules/@shopify/cli-hydrogen/dist/lib/flags.js
|
|
146409
146409
|
init_cjs_shims();
|
|
146410
146410
|
var import_core = __toESM(require_lib2(), 1);
|
|
146411
146411
|
|
|
146412
|
-
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@11.1.
|
|
146412
|
+
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@11.1.4_@graphql-codegen+cli@5.0.4_@parcel+watcher@2.5.1_@types+no_c52e2457cf80ea7b83331106203d4a49/node_modules/@shopify/cli-hydrogen/dist/lib/setups/css/index.js
|
|
146413
146413
|
init_cjs_shims();
|
|
146414
146414
|
|
|
146415
|
-
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@11.1.
|
|
146415
|
+
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@11.1.4_@graphql-codegen+cli@5.0.4_@parcel+watcher@2.5.1_@types+no_c52e2457cf80ea7b83331106203d4a49/node_modules/@shopify/cli-hydrogen/dist/lib/setups/css/assets.js
|
|
146416
146416
|
init_cjs_shims();
|
|
146417
146417
|
|
|
146418
|
-
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@11.1.
|
|
146418
|
+
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@11.1.4_@graphql-codegen+cli@5.0.4_@parcel+watcher@2.5.1_@types+no_c52e2457cf80ea7b83331106203d4a49/node_modules/@shopify/cli-hydrogen/dist/lib/build.js
|
|
146419
146419
|
init_cjs_shims();
|
|
146420
146420
|
import { fileURLToPath } from "node:url";
|
|
146421
|
+
import { existsSync } from "node:fs";
|
|
146421
146422
|
|
|
146422
|
-
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@11.1.
|
|
146423
|
+
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@11.1.4_@graphql-codegen+cli@5.0.4_@parcel+watcher@2.5.1_@types+no_c52e2457cf80ea7b83331106203d4a49/node_modules/@shopify/cli-hydrogen/dist/lib/process.js
|
|
146423
146424
|
init_cjs_shims();
|
|
146424
146425
|
import { exec } from "node:child_process";
|
|
146425
146426
|
import { promisify } from "node:util";
|
|
@@ -146431,10 +146432,19 @@ function supressNodeExperimentalWarnings() {
|
|
|
146431
146432
|
}));
|
|
146432
146433
|
}
|
|
146433
146434
|
|
|
146434
|
-
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@11.1.
|
|
146435
|
-
var monorepoPackagesPath = new URL("../../..", import.meta.url).pathname, isHydrogenMonorepo =
|
|
146436
|
-
|
|
146437
|
-
|
|
146435
|
+
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@11.1.4_@graphql-codegen+cli@5.0.4_@parcel+watcher@2.5.1_@types+no_c52e2457cf80ea7b83331106203d4a49/node_modules/@shopify/cli-hydrogen/dist/lib/build.js
|
|
146436
|
+
var monorepoPackagesPath = new URL("../../..", import.meta.url).pathname, isHydrogenMonorepo = (() => {
|
|
146437
|
+
try {
|
|
146438
|
+
let skeletonPath = joinPath(
|
|
146439
|
+
dirname(monorepoPackagesPath),
|
|
146440
|
+
"templates",
|
|
146441
|
+
"skeleton"
|
|
146442
|
+
);
|
|
146443
|
+
return existsSync(skeletonPath);
|
|
146444
|
+
} catch {
|
|
146445
|
+
return !1;
|
|
146446
|
+
}
|
|
146447
|
+
})(), hydrogenPackagesPath = isHydrogenMonorepo ? monorepoPackagesPath : void 0, ASSETS_DIR_PREFIX = "assets/hydrogen", ASSETS_STARTER_DIR = "starter", ASSETS_STARTER_DIR_ROUTES = "routes", pkgJsonPath;
|
|
146438
146448
|
async function getPkgJsonPath() {
|
|
146439
146449
|
if (pkgJsonPath ??= await findPathUp("package.json", {
|
|
146440
146450
|
cwd: fileURLToPath(import.meta.url),
|
|
@@ -146478,7 +146488,7 @@ async function getRepoNodeModules() {
|
|
|
146478
146488
|
return !nodeModulesPath && isHydrogenMonorepo && (nodeModulesPath = joinPath(dirname(monorepoPackagesPath), "node_modules")), nodeModulesPath;
|
|
146479
146489
|
}
|
|
146480
146490
|
|
|
146481
|
-
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@11.1.
|
|
146491
|
+
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@11.1.4_@graphql-codegen+cli@5.0.4_@parcel+watcher@2.5.1_@types+no_c52e2457cf80ea7b83331106203d4a49/node_modules/@shopify/cli-hydrogen/dist/lib/setups/css/assets.js
|
|
146482
146492
|
var SETUP_CSS_STRATEGIES = [
|
|
146483
146493
|
"tailwind",
|
|
146484
146494
|
"vanilla-extract",
|
|
@@ -146513,14 +146523,14 @@ async function canWriteFiles(assetMap, directory, force) {
|
|
|
146513
146523
|
}));
|
|
146514
146524
|
}
|
|
146515
146525
|
|
|
146516
|
-
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@11.1.
|
|
146526
|
+
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@11.1.4_@graphql-codegen+cli@5.0.4_@parcel+watcher@2.5.1_@types+no_c52e2457cf80ea7b83331106203d4a49/node_modules/@shopify/cli-hydrogen/dist/lib/setups/css/tailwind.js
|
|
146517
146527
|
init_cjs_shims();
|
|
146518
146528
|
|
|
146519
|
-
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@11.1.
|
|
146529
|
+
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@11.1.4_@graphql-codegen+cli@5.0.4_@parcel+watcher@2.5.1_@types+no_c52e2457cf80ea7b83331106203d4a49/node_modules/@shopify/cli-hydrogen/dist/lib/file.js
|
|
146520
146530
|
init_cjs_shims();
|
|
146521
146531
|
import { readdir } from "node:fs/promises";
|
|
146522
146532
|
|
|
146523
|
-
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@11.1.
|
|
146533
|
+
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@11.1.4_@graphql-codegen+cli@5.0.4_@parcel+watcher@2.5.1_@types+no_c52e2457cf80ea7b83331106203d4a49/node_modules/@shopify/cli-hydrogen/dist/lib/format-code.js
|
|
146524
146534
|
init_cjs_shims();
|
|
146525
146535
|
var prettier = __toESM(require_prettier(), 1);
|
|
146526
146536
|
import * as FS from "fs/promises";
|
|
@@ -146550,7 +146560,7 @@ async function formatCode(content, config = DEFAULT_PRETTIER_CONFIG, filePath =
|
|
|
146550
146560
|
});
|
|
146551
146561
|
}
|
|
146552
146562
|
|
|
146553
|
-
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@11.1.
|
|
146563
|
+
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@11.1.4_@graphql-codegen+cli@5.0.4_@parcel+watcher@2.5.1_@types+no_c52e2457cf80ea7b83331106203d4a49/node_modules/@shopify/cli-hydrogen/dist/lib/file.js
|
|
146554
146564
|
async function replaceFileContent(filepath, formatConfig, replacer) {
|
|
146555
146565
|
let content = await replacer(await readFile(filepath));
|
|
146556
146566
|
if (typeof content == "string")
|
|
@@ -146624,19 +146634,11 @@ async function mergePackageJson(sourceDir, targetDir, options) {
|
|
|
146624
146634
|
options?.onResult?.(targetPkgJson) ?? targetPkgJson
|
|
146625
146635
|
);
|
|
146626
146636
|
}
|
|
146627
|
-
async function mergeTsConfig(sourceDir, targetDir) {
|
|
146628
|
-
let sourceTsTypes = (await readFile(joinPath(sourceDir, "tsconfig.json"))).match(/"types": \[(.*?)\]/)?.[1];
|
|
146629
|
-
sourceTsTypes && replaceFileContent(
|
|
146630
|
-
joinPath(targetDir, "tsconfig.json"),
|
|
146631
|
-
!1,
|
|
146632
|
-
(content) => content.replace(/"types":\s*\[[^\]]*\]/, `"types": [${sourceTsTypes}]`)
|
|
146633
|
-
);
|
|
146634
|
-
}
|
|
146635
146637
|
|
|
146636
|
-
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@11.1.
|
|
146638
|
+
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@11.1.4_@graphql-codegen+cli@5.0.4_@parcel+watcher@2.5.1_@types+no_c52e2457cf80ea7b83331106203d4a49/node_modules/@shopify/cli-hydrogen/dist/lib/setups/css/replacers.js
|
|
146637
146639
|
init_cjs_shims();
|
|
146638
146640
|
|
|
146639
|
-
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@11.1.
|
|
146641
|
+
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@11.1.4_@graphql-codegen+cli@5.0.4_@parcel+watcher@2.5.1_@types+no_c52e2457cf80ea7b83331106203d4a49/node_modules/@shopify/cli-hydrogen/dist/lib/ast.js
|
|
146640
146642
|
init_cjs_shims();
|
|
146641
146643
|
async function importLangAstGrep(lang) {
|
|
146642
146644
|
let astGrep = await import("@ast-grep/napi");
|
|
@@ -146645,7 +146647,7 @@ async function importLangAstGrep(lang) {
|
|
|
146645
146647
|
return astGrep[lang];
|
|
146646
146648
|
}
|
|
146647
146649
|
|
|
146648
|
-
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@11.1.
|
|
146650
|
+
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@11.1.4_@graphql-codegen+cli@5.0.4_@parcel+watcher@2.5.1_@types+no_c52e2457cf80ea7b83331106203d4a49/node_modules/@shopify/cli-hydrogen/dist/lib/setups/css/replacers.js
|
|
146649
146651
|
async function replaceRootLinks(appDirectory, formatConfig, importer) {
|
|
146650
146652
|
let { filepath, astType } = await findFileWithExtension(appDirectory, "root");
|
|
146651
146653
|
if (!filepath || !astType)
|
|
@@ -146747,7 +146749,7 @@ var vitePluginListRule = {
|
|
|
146747
146749
|
}
|
|
146748
146750
|
};
|
|
146749
146751
|
|
|
146750
|
-
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@11.1.
|
|
146752
|
+
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@11.1.4_@graphql-codegen+cli@5.0.4_@parcel+watcher@2.5.1_@types+no_c52e2457cf80ea7b83331106203d4a49/node_modules/@shopify/cli-hydrogen/dist/lib/setups/css/tailwind.js
|
|
146751
146753
|
var tailwindCssPath = "styles/tailwind.css";
|
|
146752
146754
|
async function setupTailwind({ rootDirectory, appDirectory }, force = !1) {
|
|
146753
146755
|
let relativeAppDirectory = relativePath(rootDirectory, appDirectory), assetMap = {
|
|
@@ -146783,7 +146785,7 @@ async function setupTailwind({ rootDirectory, appDirectory }, force = !1) {
|
|
|
146783
146785
|
};
|
|
146784
146786
|
}
|
|
146785
146787
|
|
|
146786
|
-
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@11.1.
|
|
146788
|
+
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@11.1.4_@graphql-codegen+cli@5.0.4_@parcel+watcher@2.5.1_@types+no_c52e2457cf80ea7b83331106203d4a49/node_modules/@shopify/cli-hydrogen/dist/lib/setups/css/vanilla-extract.js
|
|
146787
146789
|
init_cjs_shims();
|
|
146788
146790
|
async function setupVanillaExtract({
|
|
146789
146791
|
rootDirectory
|
|
@@ -146804,7 +146806,7 @@ async function setupVanillaExtract({
|
|
|
146804
146806
|
};
|
|
146805
146807
|
}
|
|
146806
146808
|
|
|
146807
|
-
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@11.1.
|
|
146809
|
+
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@11.1.4_@graphql-codegen+cli@5.0.4_@parcel+watcher@2.5.1_@types+no_c52e2457cf80ea7b83331106203d4a49/node_modules/@shopify/cli-hydrogen/dist/lib/setups/css/index.js
|
|
146808
146810
|
var STYLING_CHOICES = [...SETUP_CSS_STRATEGIES, "none"], CSS_STRATEGY_NAME_MAP = {
|
|
146809
146811
|
tailwind: "Tailwind v4",
|
|
146810
146812
|
"vanilla-extract": "Vanilla Extract",
|
|
@@ -146849,23 +146851,23 @@ async function renderCssPrompt(options) {
|
|
|
146849
146851
|
});
|
|
146850
146852
|
}
|
|
146851
146853
|
|
|
146852
|
-
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@11.1.
|
|
146854
|
+
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@11.1.4_@graphql-codegen+cli@5.0.4_@parcel+watcher@2.5.1_@types+no_c52e2457cf80ea7b83331106203d4a49/node_modules/@shopify/cli-hydrogen/dist/lib/setups/i18n/index.js
|
|
146853
146855
|
init_cjs_shims();
|
|
146854
146856
|
|
|
146855
|
-
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@11.1.
|
|
146857
|
+
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@11.1.4_@graphql-codegen+cli@5.0.4_@parcel+watcher@2.5.1_@types+no_c52e2457cf80ea7b83331106203d4a49/node_modules/@shopify/cli-hydrogen/dist/lib/setups/i18n/replacers.js
|
|
146856
146858
|
init_cjs_shims();
|
|
146857
146859
|
|
|
146858
|
-
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@11.1.
|
|
146860
|
+
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@11.1.4_@graphql-codegen+cli@5.0.4_@parcel+watcher@2.5.1_@types+no_c52e2457cf80ea7b83331106203d4a49/node_modules/@shopify/cli-hydrogen/dist/lib/transpile/index.js
|
|
146859
146861
|
init_cjs_shims();
|
|
146860
146862
|
|
|
146861
|
-
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@11.1.
|
|
146863
|
+
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@11.1.4_@graphql-codegen+cli@5.0.4_@parcel+watcher@2.5.1_@types+no_c52e2457cf80ea7b83331106203d4a49/node_modules/@shopify/cli-hydrogen/dist/lib/transpile/file.js
|
|
146862
146864
|
init_cjs_shims();
|
|
146863
146865
|
async function transpileFile(code, filepath, keepTypes = !0) {
|
|
146864
|
-
let { transpileTs } = await import("./morph-
|
|
146866
|
+
let { transpileTs } = await import("./morph-D4BXY376.js");
|
|
146865
146867
|
return transpileTs(code, filepath, keepTypes);
|
|
146866
146868
|
}
|
|
146867
146869
|
|
|
146868
|
-
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@11.1.
|
|
146870
|
+
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@11.1.4_@graphql-codegen+cli@5.0.4_@parcel+watcher@2.5.1_@types+no_c52e2457cf80ea7b83331106203d4a49/node_modules/@shopify/cli-hydrogen/dist/lib/transpile/project.js
|
|
146869
146871
|
init_cjs_shims();
|
|
146870
146872
|
var DEFAULT_JS_CONFIG = {
|
|
146871
146873
|
checkJs: !1,
|
|
@@ -146898,11 +146900,14 @@ function convertConfigToJS(tsConfig, keepTypes = !1) {
|
|
|
146898
146900
|
return jsConfig;
|
|
146899
146901
|
}
|
|
146900
146902
|
async function transpileProject(projectDir, keepTypes = !0) {
|
|
146901
|
-
let routesPath = joinPath(projectDir, "app/routes.ts")
|
|
146902
|
-
|
|
146903
|
-
|
|
146904
|
-
|
|
146905
|
-
|
|
146903
|
+
let routesPath = joinPath(projectDir, "app/routes.ts");
|
|
146904
|
+
if (await fileExists(routesPath)) {
|
|
146905
|
+
let replacedRoutesFileContent = (await readFile(routesPath)).replace(
|
|
146906
|
+
"./layout.tsx",
|
|
146907
|
+
"./layout.jsx"
|
|
146908
|
+
);
|
|
146909
|
+
await writeFile(routesPath, replacedRoutesFileContent);
|
|
146910
|
+
}
|
|
146906
146911
|
let entries = await glob("**/*.+(ts|tsx)", {
|
|
146907
146912
|
absolute: !0,
|
|
146908
146913
|
cwd: projectDir,
|
|
@@ -146948,7 +146953,11 @@ async function transpileProject(projectDir, keepTypes = !0) {
|
|
|
146948
146953
|
let pkgJson = JSON.parse(
|
|
146949
146954
|
await readFile(joinPath(projectDir, "package.json"))
|
|
146950
146955
|
);
|
|
146951
|
-
|
|
146956
|
+
delete pkgJson.scripts.typecheck;
|
|
146957
|
+
let typegenPattern = /react-router typegen\s*&&\s*/g;
|
|
146958
|
+
for (let [key, value] of Object.entries(pkgJson.scripts || {}))
|
|
146959
|
+
typeof value == "string" && value.includes("react-router typegen") && (pkgJson.scripts[key] = value.replace(typegenPattern, ""));
|
|
146960
|
+
if (!keepTypes) {
|
|
146952
146961
|
delete pkgJson.devDependencies.typescript, delete pkgJson.devDependencies["@shopify/oxygen-workers-types"];
|
|
146953
146962
|
for (let key of Object.keys(pkgJson.devDependencies))
|
|
146954
146963
|
key.startsWith("@types/") && delete pkgJson.devDependencies[key];
|
|
@@ -146976,7 +146985,7 @@ async function transpileProject(projectDir, keepTypes = !0) {
|
|
|
146976
146985
|
}
|
|
146977
146986
|
}
|
|
146978
146987
|
|
|
146979
|
-
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@11.1.
|
|
146988
|
+
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@11.1.4_@graphql-codegen+cli@5.0.4_@parcel+watcher@2.5.1_@types+no_c52e2457cf80ea7b83331106203d4a49/node_modules/@shopify/cli-hydrogen/dist/lib/setups/i18n/replacers.js
|
|
146980
146989
|
async function replaceContextI18n({
|
|
146981
146990
|
rootDirectory,
|
|
146982
146991
|
contextCreate = joinPath("app", "lib", "context.ts")
|
|
@@ -147115,7 +147124,7 @@ async function findContextCreateFile({
|
|
|
147115
147124
|
return { filepath, astType };
|
|
147116
147125
|
}
|
|
147117
147126
|
|
|
147118
|
-
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@11.1.
|
|
147127
|
+
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@11.1.4_@graphql-codegen+cli@5.0.4_@parcel+watcher@2.5.1_@types+no_c52e2457cf80ea7b83331106203d4a49/node_modules/@shopify/cli-hydrogen/dist/lib/setups/i18n/index.js
|
|
147119
147128
|
var SETUP_I18N_STRATEGIES = [
|
|
147120
147129
|
"subfolders",
|
|
147121
147130
|
"domains",
|
|
@@ -147147,7 +147156,7 @@ async function renderI18nPrompt(options) {
|
|
|
147147
147156
|
});
|
|
147148
147157
|
}
|
|
147149
147158
|
|
|
147150
|
-
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@11.1.
|
|
147159
|
+
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@11.1.4_@graphql-codegen+cli@5.0.4_@parcel+watcher@2.5.1_@types+no_c52e2457cf80ea7b83331106203d4a49/node_modules/@shopify/cli-hydrogen/dist/lib/flags.js
|
|
147151
147160
|
var DEFAULT_APP_PORT = 3e3, DEFAULT_INSPECTOR_PORT = 9229, commonFlags = {
|
|
147152
147161
|
path: {
|
|
147153
147162
|
path: import_core.Flags.string({
|
|
@@ -147265,13 +147274,6 @@ var DEFAULT_APP_PORT = 3e3, DEFAULT_INSPECTOR_PORT = 9229, commonFlags = {
|
|
|
147265
147274
|
env: "SHOPIFY_HYDROGEN_FLAG_INSPECTOR_PORT"
|
|
147266
147275
|
})
|
|
147267
147276
|
},
|
|
147268
|
-
diff: {
|
|
147269
|
-
diff: import_core.Flags.boolean({
|
|
147270
|
-
description: "Applies the current files on top of Hydrogen's starter template in a temporary directory.",
|
|
147271
|
-
required: !1,
|
|
147272
|
-
hidden: !0
|
|
147273
|
-
})
|
|
147274
|
-
},
|
|
147275
147277
|
entry: {
|
|
147276
147278
|
entry: import_core.Flags.string({
|
|
147277
147279
|
description: "Entry file for the worker. Defaults to `./server`.",
|
|
@@ -147293,9 +147295,8 @@ var DEFAULT_APP_PORT = 3e3, DEFAULT_INSPECTOR_PORT = 9229, commonFlags = {
|
|
|
147293
147295
|
})
|
|
147294
147296
|
},
|
|
147295
147297
|
customerAccountPush: {
|
|
147296
|
-
"customer-account-
|
|
147297
|
-
|
|
147298
|
-
description: "Use tunneling for local development and push the tunneling domain to admin. Required to use Customer Account API's Oauth flow",
|
|
147298
|
+
"customer-account-push": import_core.Flags.boolean({
|
|
147299
|
+
description: "Use tunneling for local development and push the tunneling domain to admin. Required to use Customer Account API's OAuth flow",
|
|
147299
147300
|
required: !1,
|
|
147300
147301
|
env: "SHOPIFY_HYDROGEN_FLAG_CUSTOMER_ACCOUNT_PUSH"
|
|
147301
147302
|
})
|
|
@@ -147329,10 +147330,10 @@ function overrideFlag(flags, extra) {
|
|
|
147329
147330
|
);
|
|
147330
147331
|
}
|
|
147331
147332
|
|
|
147332
|
-
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@11.1.
|
|
147333
|
+
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@11.1.4_@graphql-codegen+cli@5.0.4_@parcel+watcher@2.5.1_@types+no_c52e2457cf80ea7b83331106203d4a49/node_modules/@shopify/cli-hydrogen/dist/lib/graphql/admin/link-storefront.js
|
|
147333
147334
|
init_cjs_shims();
|
|
147334
147335
|
|
|
147335
|
-
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@11.1.
|
|
147336
|
+
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@11.1.4_@graphql-codegen+cli@5.0.4_@parcel+watcher@2.5.1_@types+no_c52e2457cf80ea7b83331106203d4a49/node_modules/@shopify/cli-hydrogen/dist/lib/graphql/admin/client.js
|
|
147336
147337
|
init_cjs_shims();
|
|
147337
147338
|
async function adminRequest(query, session, variables) {
|
|
147338
147339
|
let api = "Admin", url = `https://${session.storeFqdn}/admin/api/unstable/graphql.json`;
|
|
@@ -147368,7 +147369,7 @@ async function adminRequest(query, session, variables) {
|
|
|
147368
147369
|
}
|
|
147369
147370
|
}
|
|
147370
147371
|
|
|
147371
|
-
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@11.1.
|
|
147372
|
+
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@11.1.4_@graphql-codegen+cli@5.0.4_@parcel+watcher@2.5.1_@types+no_c52e2457cf80ea7b83331106203d4a49/node_modules/@shopify/cli-hydrogen/dist/lib/gid.js
|
|
147372
147373
|
init_cjs_shims();
|
|
147373
147374
|
var GID_REGEXP = /gid:\/\/shopify\/\w*\/(\d+)/;
|
|
147374
147375
|
function parseGid(gid) {
|
|
@@ -147378,7 +147379,7 @@ function parseGid(gid) {
|
|
|
147378
147379
|
throw new AbortError(`Invalid Global ID: ${gid}`);
|
|
147379
147380
|
}
|
|
147380
147381
|
|
|
147381
|
-
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@11.1.
|
|
147382
|
+
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@11.1.4_@graphql-codegen+cli@5.0.4_@parcel+watcher@2.5.1_@types+no_c52e2457cf80ea7b83331106203d4a49/node_modules/@shopify/cli-hydrogen/dist/lib/graphql/admin/link-storefront.js
|
|
147382
147383
|
var LinkStorefrontQuery = `#graphql
|
|
147383
147384
|
query LinkStorefront {
|
|
147384
147385
|
hydrogenStorefronts {
|
|
@@ -147399,7 +147400,7 @@ async function getStorefronts(adminSession) {
|
|
|
147399
147400
|
}));
|
|
147400
147401
|
}
|
|
147401
147402
|
|
|
147402
|
-
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@11.1.
|
|
147403
|
+
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@11.1.4_@graphql-codegen+cli@5.0.4_@parcel+watcher@2.5.1_@types+no_c52e2457cf80ea7b83331106203d4a49/node_modules/@shopify/cli-hydrogen/dist/lib/shopify-config.js
|
|
147403
147404
|
init_cjs_shims();
|
|
147404
147405
|
var SHOPIFY_DIR = ".shopify", SHOPIFY_DIR_PROJECT = "project.json";
|
|
147405
147406
|
async function resetConfig(root) {
|
|
@@ -147470,7 +147471,7 @@ async function setCustomerAccountConfig(root, customerAccountConfig) {
|
|
|
147470
147471
|
}
|
|
147471
147472
|
}
|
|
147472
147473
|
|
|
147473
|
-
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@11.1.
|
|
147474
|
+
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@11.1.4_@graphql-codegen+cli@5.0.4_@parcel+watcher@2.5.1_@types+no_c52e2457cf80ea7b83331106203d4a49/node_modules/@shopify/cli-hydrogen/dist/lib/graphql/admin/create-storefront.js
|
|
147474
147475
|
init_cjs_shims();
|
|
147475
147476
|
var CreateStorefrontMutation = `#graphql
|
|
147476
147477
|
mutation CreateStorefront($title: String!) {
|
|
@@ -147504,7 +147505,7 @@ async function createStorefront(adminSession, title) {
|
|
|
147504
147505
|
return { jobId, storefront: hydrogenStorefront };
|
|
147505
147506
|
}
|
|
147506
147507
|
|
|
147507
|
-
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@11.1.
|
|
147508
|
+
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@11.1.4_@graphql-codegen+cli@5.0.4_@parcel+watcher@2.5.1_@types+no_c52e2457cf80ea7b83331106203d4a49/node_modules/@shopify/cli-hydrogen/dist/lib/graphql/admin/fetch-job.js
|
|
147508
147509
|
init_cjs_shims();
|
|
147509
147510
|
var FetchJobQuery = `#graphql
|
|
147510
147511
|
query FetchJob($id: ID!) {
|
|
@@ -147538,7 +147539,7 @@ function waitForJob(adminSession, jobId) {
|
|
|
147538
147539
|
});
|
|
147539
147540
|
}
|
|
147540
147541
|
|
|
147541
|
-
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@11.1.
|
|
147542
|
+
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@11.1.4_@graphql-codegen+cli@5.0.4_@parcel+watcher@2.5.1_@types+no_c52e2457cf80ea7b83331106203d4a49/node_modules/@shopify/cli-hydrogen/dist/lib/string.js
|
|
147542
147543
|
init_cjs_shims();
|
|
147543
147544
|
function titleize(name = "") {
|
|
147544
147545
|
return name.replace(/[\W_]+/g, " ").split(" ").filter((word) => word.length > 0).map(
|
|
@@ -147546,7 +147547,7 @@ function titleize(name = "") {
|
|
|
147546
147547
|
).join(" ");
|
|
147547
147548
|
}
|
|
147548
147549
|
|
|
147549
|
-
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@11.1.
|
|
147550
|
+
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@11.1.4_@graphql-codegen+cli@5.0.4_@parcel+watcher@2.5.1_@types+no_c52e2457cf80ea7b83331106203d4a49/node_modules/@shopify/cli-hydrogen/dist/lib/shell.js
|
|
147550
147551
|
init_cjs_shims();
|
|
147551
147552
|
import os from "node:os";
|
|
147552
147553
|
var ALIAS_NAME = "h2", isWindows = () => os.platform() === "win32", isGitBash = () => !!process.env.MINGW_PREFIX;
|
|
@@ -147661,10 +147662,10 @@ async function getCliCommand(directory = process.cwd(), forcePkgManager) {
|
|
|
147661
147662
|
return (pkgManager === "bun" || pkgManager === "pnpm" || pkgManager === "yarn") && (cli = pkgManager), `${cli} shopify hydrogen`;
|
|
147662
147663
|
}
|
|
147663
147664
|
|
|
147664
|
-
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@11.1.
|
|
147665
|
+
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@11.1.4_@graphql-codegen+cli@5.0.4_@parcel+watcher@2.5.1_@types+no_c52e2457cf80ea7b83331106203d4a49/node_modules/@shopify/cli-hydrogen/dist/lib/auth.js
|
|
147665
147666
|
init_cjs_shims();
|
|
147666
147667
|
|
|
147667
|
-
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@11.1.
|
|
147668
|
+
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@11.1.4_@graphql-codegen+cli@5.0.4_@parcel+watcher@2.5.1_@types+no_c52e2457cf80ea7b83331106203d4a49/node_modules/@shopify/cli-hydrogen/dist/lib/graphql/business-platform/user-account.js
|
|
147668
147669
|
init_cjs_shims();
|
|
147669
147670
|
var CurrentUserAccountQuery = `#graphql
|
|
147670
147671
|
query currentUserAccount {
|
|
@@ -147744,7 +147745,7 @@ async function getUserAccount(token) {
|
|
|
147744
147745
|
};
|
|
147745
147746
|
}
|
|
147746
147747
|
|
|
147747
|
-
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@11.1.
|
|
147748
|
+
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@11.1.4_@graphql-codegen+cli@5.0.4_@parcel+watcher@2.5.1_@types+no_c52e2457cf80ea7b83331106203d4a49/node_modules/@shopify/cli-hydrogen/dist/lib/log.js
|
|
147748
147749
|
init_cjs_shims();
|
|
147749
147750
|
var originalConsole = { ...console }, methodsReplaced = /* @__PURE__ */ new Set(), addedReplacers = /* @__PURE__ */ new Set(), messageReplacers = [];
|
|
147750
147751
|
function addMessageReplacers(key, ...items) {
|
|
@@ -147980,7 +147981,7 @@ function isH2Verbose() {
|
|
|
147980
147981
|
return !!(process.env.DEBUG === "*" || process.env.DEBUG?.includes("h2:*"));
|
|
147981
147982
|
}
|
|
147982
147983
|
|
|
147983
|
-
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@11.1.
|
|
147984
|
+
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@11.1.4_@graphql-codegen+cli@5.0.4_@parcel+watcher@2.5.1_@types+no_c52e2457cf80ea7b83331106203d4a49/node_modules/@shopify/cli-hydrogen/dist/lib/auth.js
|
|
147984
147985
|
async function logout2(root) {
|
|
147985
147986
|
await logout(), await resetConfig(root);
|
|
147986
147987
|
}
|
|
@@ -148019,7 +148020,7 @@ function renderLoginSuccess(config) {
|
|
|
148019
148020
|
});
|
|
148020
148021
|
}
|
|
148021
148022
|
|
|
148022
|
-
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@11.1.
|
|
148023
|
+
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@11.1.4_@graphql-codegen+cli@5.0.4_@parcel+watcher@2.5.1_@types+no_c52e2457cf80ea7b83331106203d4a49/node_modules/@shopify/cli-hydrogen/dist/lib/onboarding/common.js
|
|
148023
148024
|
init_cjs_shims();
|
|
148024
148025
|
import { symlink, readdir as readdir3 } from "node:fs/promises";
|
|
148025
148026
|
|
|
@@ -151469,11 +151470,11 @@ async function removeGitRemote(directory, remoteName = "origin") {
|
|
|
151469
151470
|
await repo.removeRemote(remoteName);
|
|
151470
151471
|
}
|
|
151471
151472
|
|
|
151472
|
-
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@11.1.
|
|
151473
|
+
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@11.1.4_@graphql-codegen+cli@5.0.4_@parcel+watcher@2.5.1_@types+no_c52e2457cf80ea7b83331106203d4a49/node_modules/@shopify/cli-hydrogen/dist/lib/setups/routes/generate.js
|
|
151473
151474
|
init_cjs_shims();
|
|
151474
151475
|
import { readdir as readdir2 } from "node:fs/promises";
|
|
151475
151476
|
|
|
151476
|
-
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@11.1.
|
|
151477
|
+
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@11.1.4_@graphql-codegen+cli@5.0.4_@parcel+watcher@2.5.1_@types+no_c52e2457cf80ea7b83331106203d4a49/node_modules/@shopify/cli-hydrogen/dist/lib/remix-version-interop.js
|
|
151477
151478
|
init_cjs_shims();
|
|
151478
151479
|
import { createRequire as createRequire2 } from "module";
|
|
151479
151480
|
function convertRouteToV1(route) {
|
|
@@ -151487,15 +151488,15 @@ function isV1RouteConventionInstalled() {
|
|
|
151487
151488
|
}
|
|
151488
151489
|
}
|
|
151489
151490
|
|
|
151490
|
-
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@11.1.
|
|
151491
|
+
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@11.1.4_@graphql-codegen+cli@5.0.4_@parcel+watcher@2.5.1_@types+no_c52e2457cf80ea7b83331106203d4a49/node_modules/@shopify/cli-hydrogen/dist/lib/remix-config.js
|
|
151491
151492
|
init_cjs_shims();
|
|
151492
151493
|
import { createRequire as createRequire3 } from "node:module";
|
|
151493
151494
|
import path2 from "node:path";
|
|
151494
151495
|
|
|
151495
|
-
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@11.1.
|
|
151496
|
+
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@11.1.4_@graphql-codegen+cli@5.0.4_@parcel+watcher@2.5.1_@types+no_c52e2457cf80ea7b83331106203d4a49/node_modules/@shopify/cli-hydrogen/dist/lib/remix-version-check.js
|
|
151496
151497
|
init_cjs_shims();
|
|
151497
151498
|
|
|
151498
|
-
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@11.1.
|
|
151499
|
+
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@11.1.4_@graphql-codegen+cli@5.0.4_@parcel+watcher@2.5.1_@types+no_c52e2457cf80ea7b83331106203d4a49/node_modules/@shopify/cli-hydrogen/dist/lib/vite-config.js
|
|
151499
151500
|
init_cjs_shims();
|
|
151500
151501
|
var REMIX_COMPILER_ERROR_MESSAGE = "Classic Remix Compiler projects are no longer supported, please upgrade to Vite by running 'npx shopify hydrogen setup vite'";
|
|
151501
151502
|
async function hasViteConfig(root) {
|
|
@@ -151580,7 +151581,7 @@ function findOxygenPlugin(config) {
|
|
|
151580
151581
|
return findPlugin(config, "oxygen:main");
|
|
151581
151582
|
}
|
|
151582
151583
|
|
|
151583
|
-
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@11.1.
|
|
151584
|
+
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@11.1.4_@graphql-codegen+cli@5.0.4_@parcel+watcher@2.5.1_@types+no_c52e2457cf80ea7b83331106203d4a49/node_modules/@shopify/cli-hydrogen/dist/lib/remix-config.js
|
|
151584
151585
|
async function hasRemixConfigFile(root) {
|
|
151585
151586
|
return !!(await findFileWithExtension(root, "remix.config")).filepath;
|
|
151586
151587
|
}
|
|
@@ -151610,7 +151611,7 @@ async function getRemixConfig(root, mode = process.env.NODE_ENV) {
|
|
|
151610
151611
|
return (await getViteConfig(root)).remixConfig;
|
|
151611
151612
|
}
|
|
151612
151613
|
|
|
151613
|
-
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@11.1.
|
|
151614
|
+
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@11.1.4_@graphql-codegen+cli@5.0.4_@parcel+watcher@2.5.1_@types+no_c52e2457cf80ea7b83331106203d4a49/node_modules/@shopify/cli-hydrogen/dist/lib/setups/routes/generate.js
|
|
151614
151615
|
var NO_LOCALE_PATTERNS = [/robots\.txt/], ROUTE_MAP = {
|
|
151615
151616
|
home: ["_index", "$"],
|
|
151616
151617
|
page: "pages*",
|
|
@@ -151767,12 +151768,12 @@ async function findRouteDependencies(routeFilePath, appDirectory) {
|
|
|
151767
151768
|
for (let filePath of filesToCheck) {
|
|
151768
151769
|
let importMatches = (await readFile(filePath, { encoding: "utf8" })).matchAll(/^(import|export)\s+.*?\s+from\s+['"](.*?)['"];?$/gims);
|
|
151769
151770
|
for (let [, , match] of importMatches) {
|
|
151770
|
-
if (!match || !/^(\.|~)/.test(match))
|
|
151771
|
-
match = match.replace(/\?[a-z.]+$/, ""), match = match.replace(
|
|
151771
|
+
if (!match || !/^(\.|~)/.test(match) || (match = match.replace(/\?[a-z.]+$/, ""), match = match.replace(
|
|
151772
151772
|
"~",
|
|
151773
151773
|
// import from '~/components/...'
|
|
151774
151774
|
relativePath(dirname(filePath), appDirectory) || "."
|
|
151775
|
-
)
|
|
151775
|
+
), match.includes("/+types/")))
|
|
151776
|
+
continue;
|
|
151776
151777
|
let resolvedMatchPath = resolvePath(dirname(filePath), match), absoluteFilepath = (await findFileWithExtension(
|
|
151777
151778
|
dirname(resolvedMatchPath),
|
|
151778
151779
|
basename(resolvedMatchPath)
|
|
@@ -151819,7 +151820,7 @@ async function copyRouteTemplate({
|
|
|
151819
151820
|
adapter && (templateContent = replaceAdapters(templateContent, adapter)), typescript || (templateContent = await transpileFile(templateContent, templatePath)), templateContent = await formatCode(templateContent, formatOptions, routePath), await writeFile(routePath, templateContent);
|
|
151820
151821
|
}
|
|
151821
151822
|
|
|
151822
|
-
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@11.1.
|
|
151823
|
+
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@11.1.4_@graphql-codegen+cli@5.0.4_@parcel+watcher@2.5.1_@types+no_c52e2457cf80ea7b83331106203d4a49/node_modules/@shopify/cli-hydrogen/dist/lib/onboarding/common.js
|
|
151823
151824
|
var LANGUAGES = {
|
|
151824
151825
|
js: "JavaScript",
|
|
151825
151826
|
ts: "TypeScript"
|
|
@@ -152267,7 +152268,7 @@ function generateRandomName() {
|
|
|
152267
152268
|
])} ${geographicalFeature}`;
|
|
152268
152269
|
}
|
|
152269
152270
|
|
|
152270
|
-
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@11.1.
|
|
152271
|
+
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@11.1.4_@graphql-codegen+cli@5.0.4_@parcel+watcher@2.5.1_@types+no_c52e2457cf80ea7b83331106203d4a49/node_modules/@shopify/cli-hydrogen/dist/commands/hydrogen/link.js
|
|
152271
152272
|
var Link = class _Link extends base_command_default {
|
|
152272
152273
|
static descriptionWithMarkdown = `Links your local development environment to a remote Hydrogen storefront. You can link an unlimited number of development environments to a single Hydrogen storefront.
|
|
152273
152274
|
|
|
@@ -152388,7 +152389,7 @@ async function createNewStorefront(root, session, storefronts) {
|
|
|
152388
152389
|
return storefront;
|
|
152389
152390
|
}
|
|
152390
152391
|
|
|
152391
|
-
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@11.1.
|
|
152392
|
+
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@11.1.4_@graphql-codegen+cli@5.0.4_@parcel+watcher@2.5.1_@types+no_c52e2457cf80ea7b83331106203d4a49/node_modules/@shopify/cli-hydrogen/dist/lib/graphql/admin/customer-application-update.js
|
|
152392
152393
|
init_cjs_shims();
|
|
152393
152394
|
var CUSTOMER_APPLICATION_URLS_REPLACE = `#graphql
|
|
152394
152395
|
mutation CustomerApplicationUrlsReplace($storefrontId: ID!, $urlsReplaceInput: HydrogenStorefrontCustomerApplicationUrlsReplaceInput!) {
|
|
@@ -152416,7 +152417,7 @@ async function replaceCustomerApplicationUrls(adminSession, storefrontId, urlsRe
|
|
|
152416
152417
|
return { success, userErrors };
|
|
152417
152418
|
}
|
|
152418
152419
|
|
|
152419
|
-
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@11.1.
|
|
152420
|
+
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@11.1.4_@graphql-codegen+cli@5.0.4_@parcel+watcher@2.5.1_@types+no_c52e2457cf80ea7b83331106203d4a49/node_modules/@shopify/cli-hydrogen/dist/commands/hydrogen/customer-account/push.js
|
|
152420
152421
|
var CustomerAccountPush = class _CustomerAccountPush extends base_command_default {
|
|
152421
152422
|
static description = "Push project configuration to admin";
|
|
152422
152423
|
static flags = {
|
|
@@ -152549,7 +152550,7 @@ async function getStorefrontId(root, storefrontIdFromFlag) {
|
|
|
152549
152550
|
}) ? (await getConfig(root)).storefront?.id : void 0;
|
|
152550
152551
|
}
|
|
152551
152552
|
|
|
152552
|
-
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@11.1.
|
|
152553
|
+
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@11.1.4_@graphql-codegen+cli@5.0.4_@parcel+watcher@2.5.1_@types+no_c52e2457cf80ea7b83331106203d4a49/node_modules/@shopify/cli-hydrogen/dist/lib/environment-variables.js
|
|
152553
152554
|
init_cjs_shims();
|
|
152554
152555
|
|
|
152555
152556
|
// ../cli-kit/dist/public/node/dot-env.js
|
|
@@ -152614,7 +152615,7 @@ function createDotEnvFileLine(key, value, quote2) {
|
|
|
152614
152615
|
return `${key}=${value}`;
|
|
152615
152616
|
}
|
|
152616
152617
|
|
|
152617
|
-
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@11.1.
|
|
152618
|
+
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@11.1.4_@graphql-codegen+cli@5.0.4_@parcel+watcher@2.5.1_@types+no_c52e2457cf80ea7b83331106203d4a49/node_modules/@shopify/cli-hydrogen/dist/lib/graphql/admin/pull-variables.js
|
|
152618
152619
|
init_cjs_shims();
|
|
152619
152620
|
var PullVariablesQuery = `#graphql
|
|
152620
152621
|
query PullVariables($id: ID!, $handle: String) {
|
|
@@ -152642,7 +152643,7 @@ async function getStorefrontEnvVariables(adminSession, storefrontId, envHandle)
|
|
|
152642
152643
|
return hydrogenStorefront;
|
|
152643
152644
|
}
|
|
152644
152645
|
|
|
152645
|
-
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@11.1.
|
|
152646
|
+
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@11.1.4_@graphql-codegen+cli@5.0.4_@parcel+watcher@2.5.1_@types+no_c52e2457cf80ea7b83331106203d4a49/node_modules/@shopify/cli-hydrogen/dist/lib/graphql/admin/list-environments.js
|
|
152646
152647
|
init_cjs_shims();
|
|
152647
152648
|
var ListEnvironmentsQuery = `#graphql
|
|
152648
152649
|
query ListStorefronts($id: ID!) {
|
|
@@ -152670,7 +152671,7 @@ async function getStorefrontEnvironments(adminSession, storefrontId) {
|
|
|
152670
152671
|
return hydrogenStorefront;
|
|
152671
152672
|
}
|
|
152672
152673
|
|
|
152673
|
-
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@11.1.
|
|
152674
|
+
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@11.1.4_@graphql-codegen+cli@5.0.4_@parcel+watcher@2.5.1_@types+no_c52e2457cf80ea7b83331106203d4a49/node_modules/@shopify/cli-hydrogen/dist/lib/common.js
|
|
152674
152675
|
init_cjs_shims();
|
|
152675
152676
|
function orderEnvironmentsBySafety(environments) {
|
|
152676
152677
|
return [
|
|
@@ -152711,7 +152712,7 @@ function environmentNotFound(criterion, value) {
|
|
|
152711
152712
|
);
|
|
152712
152713
|
}
|
|
152713
152714
|
|
|
152714
|
-
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@11.1.
|
|
152715
|
+
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@11.1.4_@graphql-codegen+cli@5.0.4_@parcel+watcher@2.5.1_@types+no_c52e2457cf80ea7b83331106203d4a49/node_modules/@shopify/cli-hydrogen/dist/lib/environment-variables.js
|
|
152715
152716
|
var createEmptyRemoteVars = () => ({
|
|
152716
152717
|
remoteVariables: {},
|
|
152717
152718
|
remoteSecrets: {}
|
|
@@ -152782,7 +152783,7 @@ async function getLocalVariables(root, envFile) {
|
|
|
152782
152783
|
);
|
|
152783
152784
|
}
|
|
152784
152785
|
|
|
152785
|
-
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@11.1.
|
|
152786
|
+
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@11.1.4_@graphql-codegen+cli@5.0.4_@parcel+watcher@2.5.1_@types+no_c52e2457cf80ea7b83331106203d4a49/node_modules/@shopify/cli-hydrogen/dist/lib/tunneling.js
|
|
152786
152787
|
init_cjs_shims();
|
|
152787
152788
|
async function startTunnelPlugin(config, port, provider) {
|
|
152788
152789
|
let hooks = await fanoutHooks(config, "tunnel_start", { port, provider }), first2 = Object.values(hooks).filter(
|
|
@@ -152813,7 +152814,7 @@ async function pollTunnelURL(tunnelClient) {
|
|
|
152813
152814
|
});
|
|
152814
152815
|
}
|
|
152815
152816
|
|
|
152816
|
-
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@11.1.
|
|
152817
|
+
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@11.1.4_@graphql-codegen+cli@5.0.4_@parcel+watcher@2.5.1_@types+no_c52e2457cf80ea7b83331106203d4a49/node_modules/@shopify/cli-hydrogen/dist/lib/dev-shared.js
|
|
152817
152818
|
function isMockShop(envVariables) {
|
|
152818
152819
|
return envVariables.PUBLIC_STORE_DOMAIN === "mock.shop" || // We fallback to mock.shop if the env var is falsy.
|
|
152819
152820
|
// When it's undefined, it might be overwritten by remote variables.
|
|
@@ -152920,13 +152921,11 @@ export {
|
|
|
152920
152921
|
getTemplateAppFile,
|
|
152921
152922
|
getStarterDir,
|
|
152922
152923
|
getSkeletonSourceDir,
|
|
152923
|
-
getRepoNodeModules,
|
|
152924
152924
|
SETUP_CSS_STRATEGIES,
|
|
152925
152925
|
getCodeFormatOptions,
|
|
152926
152926
|
formatCode,
|
|
152927
152927
|
replaceFileContent,
|
|
152928
152928
|
mergePackageJson,
|
|
152929
|
-
mergeTsConfig,
|
|
152930
152929
|
importLangAstGrep,
|
|
152931
152930
|
STYLING_CHOICES,
|
|
152932
152931
|
CSS_STRATEGY_NAME_MAP,
|
|
@@ -153021,4 +153020,4 @@ export {
|
|
|
153021
153020
|
getDebugBannerLine,
|
|
153022
153021
|
getUtilityBannerlines
|
|
153023
153022
|
};
|
|
153024
|
-
//# sourceMappingURL=chunk-
|
|
153023
|
+
//# sourceMappingURL=chunk-NIJYJVQ7.js.map
|