@shopify/cli 3.64.0 → 3.64.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/assets/hydrogen/starter/.graphqlrc.ts +27 -0
- package/dist/assets/hydrogen/starter/CHANGELOG.md +16 -7
- package/dist/assets/hydrogen/starter/app/components/CartMain.tsx +2 -2
- package/dist/assets/hydrogen/starter/app/components/CartSummary.tsx +3 -3
- package/dist/assets/hydrogen/starter/app/components/PageLayout.tsx +1 -1
- package/dist/assets/hydrogen/starter/app/components/Search.tsx +0 -1
- package/dist/assets/hydrogen/starter/app/routes/cart.tsx +1 -1
- package/dist/assets/hydrogen/starter/package.json +6 -6
- package/dist/{chunk-W26344X5.js → chunk-2DXCIFDK.js} +2 -2
- package/dist/{chunk-BKBHZTOE.js → chunk-63D4EGTO.js} +3 -3
- package/dist/{chunk-L5WUZYLP.js → chunk-6PJAGL2L.js} +4 -4
- package/dist/{chunk-PWYMBX34.js → chunk-7PVTYKQI.js} +5 -5
- package/dist/{chunk-JSLLI5MY.js → chunk-7TIDA343.js} +3 -3
- package/dist/{chunk-G4TC4KHZ.js → chunk-7W6SRTYP.js} +3 -3
- package/dist/{chunk-QI5O2CU6.js → chunk-ARCFCLME.js} +5 -5
- package/dist/{chunk-RX7VCI62.js → chunk-ATGUMSCJ.js} +4 -4
- package/dist/{chunk-YLPSXWEZ.js → chunk-B3D5VLUA.js} +2 -2
- package/dist/{chunk-UTXBNNRZ.js → chunk-DX43V2L4.js} +3 -3
- package/dist/{chunk-I6HNYSMO.js → chunk-FDLU3RD4.js} +4 -4
- package/dist/{chunk-GEAZ65AU.js → chunk-H6AQTECB.js} +132 -206
- package/dist/{chunk-LQX3GDBO.js → chunk-JNUJZFQL.js} +2 -2
- package/dist/{chunk-VPPZXHAK.js → chunk-KUVX423E.js} +2 -2
- package/dist/{chunk-CLBFKLWA.js → chunk-KZTALMEV.js} +4 -4
- package/dist/{chunk-TSZPIP7J.js → chunk-M6KGRVDD.js} +3 -3
- package/dist/{chunk-6TPBPH6V.js → chunk-NLE3ZLU6.js} +2 -2
- package/dist/{chunk-LVLKZYIC.js → chunk-OVWFZSJT.js} +2 -2
- package/dist/{chunk-PIJQNKK6.js → chunk-OXMHVKM3.js} +4 -4
- package/dist/{chunk-7GYETEC3.js → chunk-QNI6VLVR.js} +3 -3
- package/dist/{chunk-LHP5F5LY.js → chunk-QYT42J3T.js} +3 -3
- package/dist/{chunk-H66NIXGL.js → chunk-S3HWVIGJ.js} +4 -4
- package/dist/{chunk-GUB3OCYR.js → chunk-S7A7BHNA.js} +4 -4
- package/dist/{chunk-6LPAIJ4Y.js → chunk-SSAUIEBT.js} +2 -2
- package/dist/{chunk-TCQUNDAY.js → chunk-UQQI7TQG.js} +3 -3
- package/dist/{chunk-X34BQYQP.js → chunk-UXA5YROL.js} +2 -2
- package/dist/{chunk-2TZRSXDZ.js → chunk-V7NH4SZB.js} +2 -2
- package/dist/{chunk-KDK32T2A.js → chunk-WVY52EEZ.js} +4 -4
- package/dist/{chunk-QCK4QLB3.js → chunk-X3OUSYUQ.js} +2 -2
- package/dist/{chunk-5A6QTLMF.js → chunk-XNCQBHNR.js} +4 -4
- package/dist/{chunk-WIG6CPGR.js → chunk-ZIGJPI5N.js} +5 -5
- package/dist/{chunk-C2AKAEMR.js → chunk-ZKWHKX2C.js} +5 -5
- package/dist/{chunk-LP2H26NY.js → chunk-ZRGD2HUL.js} +3 -3
- package/dist/{chunk-T7DHXEC7.js → chunk-ZVT2WZZF.js} +2 -2
- package/dist/cli/commands/auth/logout.js +10 -10
- package/dist/cli/commands/auth/logout.test.js +11 -11
- package/dist/cli/commands/debug/command-flags.js +9 -9
- package/dist/cli/commands/demo/catalog.js +10 -10
- package/dist/cli/commands/demo/generate-file.js +10 -10
- package/dist/cli/commands/demo/index.js +10 -10
- package/dist/cli/commands/demo/print-ai-prompt.js +10 -10
- package/dist/cli/commands/docs/generate.js +9 -9
- package/dist/cli/commands/docs/generate.test.js +9 -9
- package/dist/cli/commands/help.js +9 -9
- package/dist/cli/commands/kitchen-sink/async.js +10 -10
- package/dist/cli/commands/kitchen-sink/async.test.js +10 -10
- package/dist/cli/commands/kitchen-sink/index.js +12 -12
- package/dist/cli/commands/kitchen-sink/index.test.js +12 -12
- package/dist/cli/commands/kitchen-sink/prompts.js +10 -10
- package/dist/cli/commands/kitchen-sink/prompts.test.js +10 -10
- package/dist/cli/commands/kitchen-sink/static.js +10 -10
- package/dist/cli/commands/kitchen-sink/static.test.js +10 -10
- package/dist/cli/commands/search.js +10 -10
- package/dist/cli/commands/upgrade.js +9 -9
- package/dist/cli/commands/version.js +10 -10
- package/dist/cli/commands/version.test.js +10 -10
- package/dist/cli/services/commands/search.js +2 -2
- package/dist/cli/services/commands/search.test.js +2 -2
- package/dist/cli/services/commands/version.js +4 -4
- package/dist/cli/services/commands/version.test.js +5 -5
- package/dist/cli/services/demo.js +2 -2
- package/dist/cli/services/demo.test.js +2 -2
- package/dist/cli/services/kitchen-sink/async.js +2 -2
- package/dist/cli/services/kitchen-sink/prompts.js +2 -2
- package/dist/cli/services/kitchen-sink/static.js +2 -2
- package/dist/cli/services/upgrade.js +3 -3
- package/dist/cli/services/upgrade.test.js +5 -5
- package/dist/{custom-oclif-loader-F5UKFNJS.js → custom-oclif-loader-BQAFOUNG.js} +2 -2
- package/dist/{error-handler-GCSQB44R.js → error-handler-S56KHSGD.js} +8 -8
- package/dist/hooks/postrun.js +6 -6
- package/dist/hooks/prerun.js +4 -4
- package/dist/index.js +225 -159
- package/dist/{local-VDSO2Y52.js → local-UQAQKOVL.js} +2 -2
- package/dist/{morph-DQWX4LPS.js → morph-DN4AZJZW.js} +9 -9
- package/dist/{node-3B62KLPY.js → node-GZYZUMBW.js} +13 -13
- package/dist/{node-package-manager-QLAS6UPG.js → node-package-manager-AOVZD6TP.js} +3 -3
- package/dist/{system-CPU6ZDBW.js → system-G7DVECOP.js} +2 -2
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/dist/{ui-Y4GW3DUK.js → ui-2AOZFYFM.js} +2 -2
- package/dist/{workerd-LSXMDY5M.js → workerd-2MO23YDQ.js} +12 -12
- package/oclif.manifest.json +1 -1
- package/package.json +7 -7
- package/dist/assets/hydrogen/starter/.graphqlrc.yml +0 -12
|
@@ -7,13 +7,13 @@ import {
|
|
|
7
7
|
handleDeprecations,
|
|
8
8
|
logout,
|
|
9
9
|
normalizeStoreFqdn
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-ZIGJPI5N.js";
|
|
11
11
|
import {
|
|
12
12
|
base_command_default
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-XNCQBHNR.js";
|
|
14
14
|
import {
|
|
15
15
|
fanoutHooks
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-ZKWHKX2C.js";
|
|
17
17
|
import {
|
|
18
18
|
findUpAndReadPackageJson,
|
|
19
19
|
getPackageManager,
|
|
@@ -21,7 +21,7 @@ import {
|
|
|
21
21
|
packageManagerFromUserAgent,
|
|
22
22
|
readAndParsePackageJson,
|
|
23
23
|
writePackageJSON
|
|
24
|
-
} from "./chunk-
|
|
24
|
+
} from "./chunk-X3OUSYUQ.js";
|
|
25
25
|
import {
|
|
26
26
|
AbortError,
|
|
27
27
|
BugError,
|
|
@@ -59,7 +59,7 @@ import {
|
|
|
59
59
|
runWithTimer,
|
|
60
60
|
source_default,
|
|
61
61
|
writeFile
|
|
62
|
-
} from "./chunk-
|
|
62
|
+
} from "./chunk-NLE3ZLU6.js";
|
|
63
63
|
import {
|
|
64
64
|
require_lib
|
|
65
65
|
} from "./chunk-GEN4RXTD.js";
|
|
@@ -155554,21 +155554,21 @@ var require_main = __commonJS({
|
|
|
155554
155554
|
}
|
|
155555
155555
|
});
|
|
155556
155556
|
|
|
155557
|
-
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@
|
|
155557
|
+
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@8.3.0_@graphql-codegen+cli@5.0.2_react-dom@17.0.2_react@17.0.2/node_modules/@shopify/cli-hydrogen/dist/lib/flags.js
|
|
155558
155558
|
init_cjs_shims();
|
|
155559
155559
|
var import_core = __toESM(require_lib(), 1);
|
|
155560
155560
|
|
|
155561
|
-
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@
|
|
155561
|
+
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@8.3.0_@graphql-codegen+cli@5.0.2_react-dom@17.0.2_react@17.0.2/node_modules/@shopify/cli-hydrogen/dist/lib/setups/css/index.js
|
|
155562
155562
|
init_cjs_shims();
|
|
155563
155563
|
|
|
155564
|
-
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@
|
|
155564
|
+
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@8.3.0_@graphql-codegen+cli@5.0.2_react-dom@17.0.2_react@17.0.2/node_modules/@shopify/cli-hydrogen/dist/lib/setups/css/assets.js
|
|
155565
155565
|
init_cjs_shims();
|
|
155566
155566
|
|
|
155567
|
-
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@
|
|
155567
|
+
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@8.3.0_@graphql-codegen+cli@5.0.2_react-dom@17.0.2_react@17.0.2/node_modules/@shopify/cli-hydrogen/dist/lib/build.js
|
|
155568
155568
|
init_cjs_shims();
|
|
155569
155569
|
import { fileURLToPath } from "node:url";
|
|
155570
155570
|
|
|
155571
|
-
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@
|
|
155571
|
+
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@8.3.0_@graphql-codegen+cli@5.0.2_react-dom@17.0.2_react@17.0.2/node_modules/@shopify/cli-hydrogen/dist/lib/process.js
|
|
155572
155572
|
init_cjs_shims();
|
|
155573
155573
|
import { exec } from "node:child_process";
|
|
155574
155574
|
import { promisify } from "node:util";
|
|
@@ -155585,7 +155585,7 @@ function supressNodeExperimentalWarnings() {
|
|
|
155585
155585
|
}
|
|
155586
155586
|
}
|
|
155587
155587
|
|
|
155588
|
-
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@
|
|
155588
|
+
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@8.3.0_@graphql-codegen+cli@5.0.2_react-dom@17.0.2_react@17.0.2/node_modules/@shopify/cli-hydrogen/dist/lib/build.js
|
|
155589
155589
|
var monorepoPackagesPath = new URL("../../..", import.meta.url).pathname;
|
|
155590
155590
|
var isHydrogenMonorepo = monorepoPackagesPath.endsWith(
|
|
155591
155591
|
"/hydrogen/packages/"
|
|
@@ -155647,7 +155647,7 @@ async function getRepoNodeModules() {
|
|
|
155647
155647
|
return nodeModulesPath;
|
|
155648
155648
|
}
|
|
155649
155649
|
|
|
155650
|
-
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@
|
|
155650
|
+
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@8.3.0_@graphql-codegen+cli@5.0.2_react-dom@17.0.2_react@17.0.2/node_modules/@shopify/cli-hydrogen/dist/lib/setups/css/assets.js
|
|
155651
155651
|
var SETUP_CSS_STRATEGIES = [
|
|
155652
155652
|
"tailwind",
|
|
155653
155653
|
"vanilla-extract",
|
|
@@ -155691,14 +155691,14 @@ async function canWriteFiles(assetMap, directory, force) {
|
|
|
155691
155691
|
return true;
|
|
155692
155692
|
}
|
|
155693
155693
|
|
|
155694
|
-
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@
|
|
155694
|
+
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@8.3.0_@graphql-codegen+cli@5.0.2_react-dom@17.0.2_react@17.0.2/node_modules/@shopify/cli-hydrogen/dist/lib/setups/css/tailwind.js
|
|
155695
155695
|
init_cjs_shims();
|
|
155696
155696
|
|
|
155697
|
-
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@
|
|
155697
|
+
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@8.3.0_@graphql-codegen+cli@5.0.2_react-dom@17.0.2_react@17.0.2/node_modules/@shopify/cli-hydrogen/dist/lib/file.js
|
|
155698
155698
|
init_cjs_shims();
|
|
155699
155699
|
import { readdir } from "node:fs/promises";
|
|
155700
155700
|
|
|
155701
|
-
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@
|
|
155701
|
+
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@8.3.0_@graphql-codegen+cli@5.0.2_react-dom@17.0.2_react@17.0.2/node_modules/@shopify/cli-hydrogen/dist/lib/format-code.js
|
|
155702
155702
|
init_cjs_shims();
|
|
155703
155703
|
var prettier = __toESM(require_prettier(), 1);
|
|
155704
155704
|
var DEFAULT_PRETTIER_CONFIG = {
|
|
@@ -155725,7 +155725,7 @@ async function formatCode(content, config = DEFAULT_PRETTIER_CONFIG, filePath =
|
|
|
155725
155725
|
});
|
|
155726
155726
|
}
|
|
155727
155727
|
|
|
155728
|
-
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@
|
|
155728
|
+
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@8.3.0_@graphql-codegen+cli@5.0.2_react-dom@17.0.2_react@17.0.2/node_modules/@shopify/cli-hydrogen/dist/lib/file.js
|
|
155729
155729
|
async function replaceFileContent(filepath, formatConfig, replacer) {
|
|
155730
155730
|
let content = await replacer(await readFile(filepath));
|
|
155731
155731
|
if (typeof content !== "string")
|
|
@@ -155830,10 +155830,10 @@ async function mergeTsConfig(sourceDir, targetDir) {
|
|
|
155830
155830
|
}
|
|
155831
155831
|
}
|
|
155832
155832
|
|
|
155833
|
-
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@
|
|
155833
|
+
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@8.3.0_@graphql-codegen+cli@5.0.2_react-dom@17.0.2_react@17.0.2/node_modules/@shopify/cli-hydrogen/dist/lib/setups/css/replacers.js
|
|
155834
155834
|
init_cjs_shims();
|
|
155835
155835
|
|
|
155836
|
-
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@
|
|
155836
|
+
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@8.3.0_@graphql-codegen+cli@5.0.2_react-dom@17.0.2_react@17.0.2/node_modules/@shopify/cli-hydrogen/dist/lib/ast.js
|
|
155837
155837
|
init_cjs_shims();
|
|
155838
155838
|
async function importLangAstGrep(lang) {
|
|
155839
155839
|
const astGrep = await import("@ast-grep/napi");
|
|
@@ -155843,7 +155843,7 @@ async function importLangAstGrep(lang) {
|
|
|
155843
155843
|
return astGrep[lang];
|
|
155844
155844
|
}
|
|
155845
155845
|
|
|
155846
|
-
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@
|
|
155846
|
+
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@8.3.0_@graphql-codegen+cli@5.0.2_react-dom@17.0.2_react@17.0.2/node_modules/@shopify/cli-hydrogen/dist/lib/setups/css/replacers.js
|
|
155847
155847
|
async function replaceRootLinks(appDirectory, formatConfig, importer) {
|
|
155848
155848
|
const { filepath, astType } = await findFileWithExtension(appDirectory, "root");
|
|
155849
155849
|
if (!filepath || !astType) {
|
|
@@ -155977,7 +155977,7 @@ var vitePluginListRule = {
|
|
|
155977
155977
|
}
|
|
155978
155978
|
};
|
|
155979
155979
|
|
|
155980
|
-
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@
|
|
155980
|
+
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@8.3.0_@graphql-codegen+cli@5.0.2_react-dom@17.0.2_react@17.0.2/node_modules/@shopify/cli-hydrogen/dist/lib/setups/css/tailwind.js
|
|
155981
155981
|
var tailwindCssPath = "styles/tailwind.css";
|
|
155982
155982
|
async function setupTailwind({ rootDirectory, appDirectory }, force = false) {
|
|
155983
155983
|
const relativeAppDirectory = relativePath(rootDirectory, appDirectory);
|
|
@@ -156015,7 +156015,7 @@ async function setupTailwind({ rootDirectory, appDirectory }, force = false) {
|
|
|
156015
156015
|
};
|
|
156016
156016
|
}
|
|
156017
156017
|
|
|
156018
|
-
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@
|
|
156018
|
+
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@8.3.0_@graphql-codegen+cli@5.0.2_react-dom@17.0.2_react@17.0.2/node_modules/@shopify/cli-hydrogen/dist/lib/setups/css/vanilla-extract.js
|
|
156019
156019
|
init_cjs_shims();
|
|
156020
156020
|
async function setupVanillaExtract({
|
|
156021
156021
|
rootDirectory
|
|
@@ -156037,7 +156037,7 @@ async function setupVanillaExtract({
|
|
|
156037
156037
|
};
|
|
156038
156038
|
}
|
|
156039
156039
|
|
|
156040
|
-
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@
|
|
156040
|
+
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@8.3.0_@graphql-codegen+cli@5.0.2_react-dom@17.0.2_react@17.0.2/node_modules/@shopify/cli-hydrogen/dist/lib/setups/css/index.js
|
|
156041
156041
|
var STYLING_CHOICES = [...SETUP_CSS_STRATEGIES, "none"];
|
|
156042
156042
|
var CSS_STRATEGY_NAME_MAP = {
|
|
156043
156043
|
tailwind: "Tailwind (v4 alpha)",
|
|
@@ -156084,23 +156084,23 @@ async function renderCssPrompt(options) {
|
|
|
156084
156084
|
});
|
|
156085
156085
|
}
|
|
156086
156086
|
|
|
156087
|
-
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@
|
|
156087
|
+
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@8.3.0_@graphql-codegen+cli@5.0.2_react-dom@17.0.2_react@17.0.2/node_modules/@shopify/cli-hydrogen/dist/lib/setups/i18n/index.js
|
|
156088
156088
|
init_cjs_shims();
|
|
156089
156089
|
|
|
156090
|
-
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@
|
|
156090
|
+
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@8.3.0_@graphql-codegen+cli@5.0.2_react-dom@17.0.2_react@17.0.2/node_modules/@shopify/cli-hydrogen/dist/lib/setups/i18n/replacers.js
|
|
156091
156091
|
init_cjs_shims();
|
|
156092
156092
|
|
|
156093
|
-
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@
|
|
156093
|
+
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@8.3.0_@graphql-codegen+cli@5.0.2_react-dom@17.0.2_react@17.0.2/node_modules/@shopify/cli-hydrogen/dist/lib/transpile/index.js
|
|
156094
156094
|
init_cjs_shims();
|
|
156095
156095
|
|
|
156096
|
-
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@
|
|
156096
|
+
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@8.3.0_@graphql-codegen+cli@5.0.2_react-dom@17.0.2_react@17.0.2/node_modules/@shopify/cli-hydrogen/dist/lib/transpile/file.js
|
|
156097
156097
|
init_cjs_shims();
|
|
156098
156098
|
async function transpileFile(code, filepath, keepTypes = true) {
|
|
156099
|
-
const { transpileTs } = await import("./morph-
|
|
156099
|
+
const { transpileTs } = await import("./morph-DN4AZJZW.js");
|
|
156100
156100
|
return transpileTs(code, filepath, keepTypes);
|
|
156101
156101
|
}
|
|
156102
156102
|
|
|
156103
|
-
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@
|
|
156103
|
+
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@8.3.0_@graphql-codegen+cli@5.0.2_react-dom@17.0.2_react@17.0.2/node_modules/@shopify/cli-hydrogen/dist/lib/transpile/project.js
|
|
156104
156104
|
init_cjs_shims();
|
|
156105
156105
|
var DEFAULT_JS_CONFIG = {
|
|
156106
156106
|
checkJs: false,
|
|
@@ -156143,7 +156143,9 @@ function convertConfigToJS(tsConfig, keepTypes = false) {
|
|
|
156143
156143
|
async function transpileProject(projectDir, keepTypes = true) {
|
|
156144
156144
|
const entries = await glob("**/*.+(ts|tsx)", {
|
|
156145
156145
|
absolute: true,
|
|
156146
|
-
cwd: projectDir
|
|
156146
|
+
cwd: projectDir,
|
|
156147
|
+
dot: true,
|
|
156148
|
+
ignore: ["**/node_modules/**"]
|
|
156147
156149
|
});
|
|
156148
156150
|
const formatConfig = await getCodeFormatOptions();
|
|
156149
156151
|
for (const entry of entries) {
|
|
@@ -156232,7 +156234,7 @@ async function transpileProject(projectDir, keepTypes = true) {
|
|
|
156232
156234
|
}
|
|
156233
156235
|
}
|
|
156234
156236
|
|
|
156235
|
-
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@
|
|
156237
|
+
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@8.3.0_@graphql-codegen+cli@5.0.2_react-dom@17.0.2_react@17.0.2/node_modules/@shopify/cli-hydrogen/dist/lib/setups/i18n/replacers.js
|
|
156236
156238
|
async function replaceServerI18n({ rootDirectory, serverEntryPoint = "server" }, formatConfig, localeExtractImpl, isJs) {
|
|
156237
156239
|
const { filepath, astType } = await findEntryFile({
|
|
156238
156240
|
rootDirectory,
|
|
@@ -156477,7 +156479,7 @@ async function findEntryFile({
|
|
|
156477
156479
|
return { filepath, astType };
|
|
156478
156480
|
}
|
|
156479
156481
|
|
|
156480
|
-
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@
|
|
156482
|
+
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@8.3.0_@graphql-codegen+cli@5.0.2_react-dom@17.0.2_react@17.0.2/node_modules/@shopify/cli-hydrogen/dist/lib/setups/i18n/index.js
|
|
156481
156483
|
var SETUP_I18N_STRATEGIES = [
|
|
156482
156484
|
"subfolders",
|
|
156483
156485
|
"domains",
|
|
@@ -156515,7 +156517,7 @@ async function renderI18nPrompt(options) {
|
|
|
156515
156517
|
});
|
|
156516
156518
|
}
|
|
156517
156519
|
|
|
156518
|
-
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@
|
|
156520
|
+
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@8.3.0_@graphql-codegen+cli@5.0.2_react-dom@17.0.2_react@17.0.2/node_modules/@shopify/cli-hydrogen/dist/lib/flags.js
|
|
156519
156521
|
var DEFAULT_APP_PORT = 3e3;
|
|
156520
156522
|
var DEFAULT_INSPECTOR_PORT = 9229;
|
|
156521
156523
|
var commonFlags = {
|
|
@@ -156728,13 +156730,16 @@ function overrideFlag(flags, extra) {
|
|
|
156728
156730
|
);
|
|
156729
156731
|
}
|
|
156730
156732
|
|
|
156731
|
-
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@
|
|
156733
|
+
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@8.3.0_@graphql-codegen+cli@5.0.2_react-dom@17.0.2_react@17.0.2/node_modules/@shopify/cli-hydrogen/dist/lib/import-utils.js
|
|
156732
156734
|
init_cjs_shims();
|
|
156733
156735
|
import { createRequire } from "node:module";
|
|
156734
156736
|
import { pathToFileURL } from "node:url";
|
|
156735
156737
|
var require2 = createRequire(import.meta.url);
|
|
156736
156738
|
async function importVite(root) {
|
|
156737
|
-
const vitePath = require2.resolve(
|
|
156739
|
+
const vitePath = require2.resolve(
|
|
156740
|
+
"vite",
|
|
156741
|
+
process.env.SHOPIFY_UNIT_TEST ? void 0 : { paths: [root] }
|
|
156742
|
+
);
|
|
156738
156743
|
const vitePackageJson = await findUpAndReadPackageJson(vitePath);
|
|
156739
156744
|
const viteNodeIndexFile = vitePackageJson.content.exports?.["."].import.default;
|
|
156740
156745
|
const viteNodePath = joinPath(
|
|
@@ -156744,17 +156749,20 @@ async function importVite(root) {
|
|
|
156744
156749
|
return import(pathToFileURL(viteNodePath).href);
|
|
156745
156750
|
}
|
|
156746
156751
|
function importLocal(packageName, path3) {
|
|
156747
|
-
const realPath = require2.resolve(
|
|
156752
|
+
const realPath = require2.resolve(
|
|
156753
|
+
packageName,
|
|
156754
|
+
process.env.SHOPIFY_UNIT_TEST ? void 0 : { paths: [path3] }
|
|
156755
|
+
);
|
|
156748
156756
|
return import(pathToFileURL(realPath).href);
|
|
156749
156757
|
}
|
|
156750
156758
|
|
|
156751
|
-
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@
|
|
156759
|
+
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@8.3.0_@graphql-codegen+cli@5.0.2_react-dom@17.0.2_react@17.0.2/node_modules/@shopify/cli-hydrogen/dist/lib/request-events.js
|
|
156752
156760
|
init_cjs_shims();
|
|
156753
156761
|
import path from "node:path";
|
|
156754
156762
|
import { EventEmitter } from "node:events";
|
|
156755
156763
|
import { ReadableStream } from "node:stream/web";
|
|
156756
156764
|
|
|
156757
|
-
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@
|
|
156765
|
+
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@8.3.0_@graphql-codegen+cli@5.0.2_react-dom@17.0.2_react@17.0.2/node_modules/@shopify/cli-hydrogen/dist/lib/graphiql-url.js
|
|
156758
156766
|
init_cjs_shims();
|
|
156759
156767
|
function getGraphiQLUrl({
|
|
156760
156768
|
host = "",
|
|
@@ -156773,7 +156781,7 @@ function getGraphiQLUrl({
|
|
|
156773
156781
|
return url;
|
|
156774
156782
|
}
|
|
156775
156783
|
|
|
156776
|
-
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@
|
|
156784
|
+
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@8.3.0_@graphql-codegen+cli@5.0.2_react-dom@17.0.2_react@17.0.2/node_modules/@shopify/cli-hydrogen/dist/lib/request-events.js
|
|
156777
156785
|
var import_source_map_support = __toESM(require_source_map_support(), 1);
|
|
156778
156786
|
var H2O_BINDING_NAME = "H2O_LOG_EVENT";
|
|
156779
156787
|
var ResponseConstructor;
|
|
@@ -156911,7 +156919,7 @@ function handleDebugNetworkRequest(request) {
|
|
|
156911
156919
|
return request.method === "DELETE" ? clearHistory() : streamRequestEvents(request);
|
|
156912
156920
|
}
|
|
156913
156921
|
|
|
156914
|
-
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@
|
|
156922
|
+
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@8.3.0_@graphql-codegen+cli@5.0.2_react-dom@17.0.2_react@17.0.2/node_modules/@shopify/cli-hydrogen/dist/lib/mini-oxygen/common.js
|
|
156915
156923
|
init_cjs_shims();
|
|
156916
156924
|
var SUBREQUEST_PROFILER_ENDPOINT = "/debug-network-server";
|
|
156917
156925
|
function handleMiniOxygenImportFail() {
|
|
@@ -156952,21 +156960,21 @@ function logRequestLine({
|
|
|
156952
156960
|
}
|
|
156953
156961
|
}
|
|
156954
156962
|
|
|
156955
|
-
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@
|
|
156963
|
+
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@8.3.0_@graphql-codegen+cli@5.0.2_react-dom@17.0.2_react@17.0.2/node_modules/@shopify/cli-hydrogen/dist/lib/dev-shared.js
|
|
156956
156964
|
init_cjs_shims();
|
|
156957
156965
|
|
|
156958
|
-
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@
|
|
156966
|
+
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@8.3.0_@graphql-codegen+cli@5.0.2_react-dom@17.0.2_react@17.0.2/node_modules/@shopify/cli-hydrogen/dist/commands/hydrogen/customer-account/push.js
|
|
156959
156967
|
init_cjs_shims();
|
|
156960
156968
|
var import_core3 = __toESM(require_lib(), 1);
|
|
156961
156969
|
|
|
156962
|
-
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@
|
|
156970
|
+
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@8.3.0_@graphql-codegen+cli@5.0.2_react-dom@17.0.2_react@17.0.2/node_modules/@shopify/cli-hydrogen/dist/commands/hydrogen/link.js
|
|
156963
156971
|
init_cjs_shims();
|
|
156964
156972
|
var import_core2 = __toESM(require_lib(), 1);
|
|
156965
156973
|
|
|
156966
|
-
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@
|
|
156974
|
+
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@8.3.0_@graphql-codegen+cli@5.0.2_react-dom@17.0.2_react@17.0.2/node_modules/@shopify/cli-hydrogen/dist/lib/graphql/admin/link-storefront.js
|
|
156967
156975
|
init_cjs_shims();
|
|
156968
156976
|
|
|
156969
|
-
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@
|
|
156977
|
+
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@8.3.0_@graphql-codegen+cli@5.0.2_react-dom@17.0.2_react@17.0.2/node_modules/@shopify/cli-hydrogen/dist/lib/graphql/admin/client.js
|
|
156970
156978
|
init_cjs_shims();
|
|
156971
156979
|
async function adminRequest(query, session, variables) {
|
|
156972
156980
|
const api = "Admin";
|
|
@@ -157009,7 +157017,7 @@ async function adminRequest(query, session, variables) {
|
|
|
157009
157017
|
}
|
|
157010
157018
|
}
|
|
157011
157019
|
|
|
157012
|
-
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@
|
|
157020
|
+
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@8.3.0_@graphql-codegen+cli@5.0.2_react-dom@17.0.2_react@17.0.2/node_modules/@shopify/cli-hydrogen/dist/lib/gid.js
|
|
157013
157021
|
init_cjs_shims();
|
|
157014
157022
|
var GID_REGEXP = /gid:\/\/shopify\/\w*\/(\d+)/;
|
|
157015
157023
|
function parseGid(gid) {
|
|
@@ -157020,7 +157028,7 @@ function parseGid(gid) {
|
|
|
157020
157028
|
throw new AbortError(`Invalid Global ID: ${gid}`);
|
|
157021
157029
|
}
|
|
157022
157030
|
|
|
157023
|
-
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@
|
|
157031
|
+
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@8.3.0_@graphql-codegen+cli@5.0.2_react-dom@17.0.2_react@17.0.2/node_modules/@shopify/cli-hydrogen/dist/lib/graphql/admin/link-storefront.js
|
|
157024
157032
|
var LinkStorefrontQuery = `#graphql
|
|
157025
157033
|
query LinkStorefront {
|
|
157026
157034
|
hydrogenStorefronts {
|
|
@@ -157041,7 +157049,7 @@ async function getStorefronts(adminSession) {
|
|
|
157041
157049
|
}));
|
|
157042
157050
|
}
|
|
157043
157051
|
|
|
157044
|
-
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@
|
|
157052
|
+
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@8.3.0_@graphql-codegen+cli@5.0.2_react-dom@17.0.2_react@17.0.2/node_modules/@shopify/cli-hydrogen/dist/lib/shopify-config.js
|
|
157045
157053
|
init_cjs_shims();
|
|
157046
157054
|
var SHOPIFY_DIR = ".shopify";
|
|
157047
157055
|
var SHOPIFY_DIR_PROJECT = "project.json";
|
|
@@ -157147,7 +157155,7 @@ async function setCustomerAccountConfig(root, customerAccountConfig) {
|
|
|
157147
157155
|
}
|
|
157148
157156
|
}
|
|
157149
157157
|
|
|
157150
|
-
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@
|
|
157158
|
+
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@8.3.0_@graphql-codegen+cli@5.0.2_react-dom@17.0.2_react@17.0.2/node_modules/@shopify/cli-hydrogen/dist/lib/graphql/admin/create-storefront.js
|
|
157151
157159
|
init_cjs_shims();
|
|
157152
157160
|
var CreateStorefrontMutation = `#graphql
|
|
157153
157161
|
mutation CreateStorefront($title: String!) {
|
|
@@ -157181,7 +157189,7 @@ async function createStorefront(adminSession, title) {
|
|
|
157181
157189
|
return { jobId, storefront: hydrogenStorefront };
|
|
157182
157190
|
}
|
|
157183
157191
|
|
|
157184
|
-
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@
|
|
157192
|
+
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@8.3.0_@graphql-codegen+cli@5.0.2_react-dom@17.0.2_react@17.0.2/node_modules/@shopify/cli-hydrogen/dist/lib/graphql/admin/fetch-job.js
|
|
157185
157193
|
init_cjs_shims();
|
|
157186
157194
|
var FetchJobQuery = `#graphql
|
|
157187
157195
|
query FetchJob($id: ID!) {
|
|
@@ -157219,7 +157227,7 @@ function waitForJob(adminSession, jobId) {
|
|
|
157219
157227
|
});
|
|
157220
157228
|
}
|
|
157221
157229
|
|
|
157222
|
-
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@
|
|
157230
|
+
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@8.3.0_@graphql-codegen+cli@5.0.2_react-dom@17.0.2_react@17.0.2/node_modules/@shopify/cli-hydrogen/dist/lib/string.js
|
|
157223
157231
|
init_cjs_shims();
|
|
157224
157232
|
function titleize(name = "") {
|
|
157225
157233
|
return name.replace(/[\W_]+/g, " ").split(" ").filter((word) => word.length > 0).map(
|
|
@@ -157227,7 +157235,7 @@ function titleize(name = "") {
|
|
|
157227
157235
|
).join(" ");
|
|
157228
157236
|
}
|
|
157229
157237
|
|
|
157230
|
-
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@
|
|
157238
|
+
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@8.3.0_@graphql-codegen+cli@5.0.2_react-dom@17.0.2_react@17.0.2/node_modules/@shopify/cli-hydrogen/dist/lib/shell.js
|
|
157231
157239
|
init_cjs_shims();
|
|
157232
157240
|
import os from "node:os";
|
|
157233
157241
|
var ALIAS_NAME = "h2";
|
|
@@ -157391,10 +157399,10 @@ async function getCliCommand(directory = process.cwd(), forcePkgManager) {
|
|
|
157391
157399
|
return `${cli} shopify hydrogen`;
|
|
157392
157400
|
}
|
|
157393
157401
|
|
|
157394
|
-
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@
|
|
157402
|
+
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@8.3.0_@graphql-codegen+cli@5.0.2_react-dom@17.0.2_react@17.0.2/node_modules/@shopify/cli-hydrogen/dist/lib/auth.js
|
|
157395
157403
|
init_cjs_shims();
|
|
157396
157404
|
|
|
157397
|
-
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@
|
|
157405
|
+
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@8.3.0_@graphql-codegen+cli@5.0.2_react-dom@17.0.2_react@17.0.2/node_modules/@shopify/cli-hydrogen/dist/lib/graphql/business-platform/user-account.js
|
|
157398
157406
|
init_cjs_shims();
|
|
157399
157407
|
|
|
157400
157408
|
// ../cli-kit/dist/public/node/api/business-platform.js
|
|
@@ -157425,7 +157433,7 @@ async function businessPlatformRequestDoc(query, token, variables) {
|
|
|
157425
157433
|
});
|
|
157426
157434
|
}
|
|
157427
157435
|
|
|
157428
|
-
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@
|
|
157436
|
+
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@8.3.0_@graphql-codegen+cli@5.0.2_react-dom@17.0.2_react@17.0.2/node_modules/@shopify/cli-hydrogen/dist/lib/graphql/business-platform/user-account.js
|
|
157429
157437
|
var CurrentUserAccountQuery = `#graphql
|
|
157430
157438
|
query currentUserAccount {
|
|
157431
157439
|
currentUserAccount {
|
|
@@ -157505,7 +157513,7 @@ async function getUserAccount(token) {
|
|
|
157505
157513
|
};
|
|
157506
157514
|
}
|
|
157507
157515
|
|
|
157508
|
-
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@
|
|
157516
|
+
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@8.3.0_@graphql-codegen+cli@5.0.2_react-dom@17.0.2_react@17.0.2/node_modules/@shopify/cli-hydrogen/dist/lib/log.js
|
|
157509
157517
|
init_cjs_shims();
|
|
157510
157518
|
var originalConsole = { ...console };
|
|
157511
157519
|
var methodsReplaced = /* @__PURE__ */ new Set();
|
|
@@ -157690,61 +157698,30 @@ function muteDevLogs({ workerReload } = {}) {
|
|
|
157690
157698
|
return processStderrWrite.apply(process.stderr, args);
|
|
157691
157699
|
};
|
|
157692
157700
|
}
|
|
157693
|
-
|
|
157694
|
-
|
|
157695
|
-
onPressKey,
|
|
157696
|
-
onKeyTimeout
|
|
157697
|
-
}) {
|
|
157698
|
-
if (process.stdout.write === originalWrite) {
|
|
157699
|
-
const write = originalWrite.bind(process.stdout);
|
|
157700
|
-
process.stdout.write = (item, cb) => {
|
|
157701
|
-
if (typeof item !== "string")
|
|
157702
|
-
return write(item, cb);
|
|
157703
|
-
const replacers = messageReplacers.reduce((acc, [matcher, replacer]) => {
|
|
157704
|
-
if (matcher([item], acc.length))
|
|
157705
|
-
acc.push(replacer);
|
|
157706
|
-
return acc;
|
|
157707
|
-
}, []);
|
|
157708
|
-
if (replacers.length === 0)
|
|
157709
|
-
return write(item, cb);
|
|
157710
|
-
const result = replacers.reduce(
|
|
157711
|
-
(resultArgs, replacer) => resultArgs && replacer(resultArgs),
|
|
157712
|
-
[item]
|
|
157713
|
-
);
|
|
157714
|
-
if (result)
|
|
157715
|
-
return write(result[0], cb);
|
|
157716
|
-
};
|
|
157717
|
-
}
|
|
157701
|
+
function enhanceAuthLogs(hideInitialLog = false) {
|
|
157702
|
+
injectLogReplacer("log", warningDebouncer);
|
|
157718
157703
|
addMessageReplacers(
|
|
157719
157704
|
"auth",
|
|
157720
157705
|
[
|
|
157721
|
-
([first2]) => typeof first2 === "string" && first2.includes("
|
|
157706
|
+
([first2]) => hideInitialLog && typeof first2 === "string" && first2.includes("To run this command,"),
|
|
157722
157707
|
([first2]) => {
|
|
157723
|
-
|
|
157724
|
-
const link = content.match(/(https?:\/\/.*)Log in/)?.[1];
|
|
157725
|
-
onKeyTimeout(link);
|
|
157726
|
-
if (link)
|
|
157727
|
-
return;
|
|
157728
|
-
return [content];
|
|
157708
|
+
return;
|
|
157729
157709
|
}
|
|
157730
157710
|
],
|
|
157731
157711
|
[
|
|
157732
|
-
([first2]) => typeof first2 === "string" && first2.includes("
|
|
157733
|
-
() => {
|
|
157734
|
-
|
|
157735
|
-
return;
|
|
157712
|
+
([first2]) => typeof first2 === "string" && first2.includes("Open this link to start the auth process"),
|
|
157713
|
+
([first2]) => {
|
|
157714
|
+
return [first2.replace("\u{1F449} ", "").replace(": ", ":\n")];
|
|
157736
157715
|
}
|
|
157737
157716
|
],
|
|
157738
157717
|
[
|
|
157739
|
-
([first2]) => typeof first2 === "string" &&
|
|
157718
|
+
([first2]) => typeof first2 === "string" && first2.includes("Logged in."),
|
|
157740
157719
|
() => {
|
|
157720
|
+
process.stdout.write(ansi_escapes_default.eraseLines(hideInitialLog ? 4 : 5));
|
|
157741
157721
|
return;
|
|
157742
157722
|
}
|
|
157743
157723
|
]
|
|
157744
157724
|
);
|
|
157745
|
-
return () => {
|
|
157746
|
-
process.stdout.write = originalWrite;
|
|
157747
|
-
};
|
|
157748
157725
|
}
|
|
157749
157726
|
function enhanceH2Logs(options) {
|
|
157750
157727
|
injectLogReplacer("error");
|
|
@@ -157885,31 +157862,13 @@ function isH2Verbose() {
|
|
|
157885
157862
|
return !!(process.env.DEBUG === "*" || process.env.DEBUG?.includes("h2:*"));
|
|
157886
157863
|
}
|
|
157887
157864
|
|
|
157888
|
-
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@
|
|
157889
|
-
init_cjs_shims();
|
|
157890
|
-
function deferPromise() {
|
|
157891
|
-
const deferred2 = { state: "pending" };
|
|
157892
|
-
deferred2.promise = new Promise((resolve, reject) => {
|
|
157893
|
-
deferred2.resolve = (value) => {
|
|
157894
|
-
if (deferred2.state === "pending")
|
|
157895
|
-
deferred2.state = "resolved";
|
|
157896
|
-
return resolve(value);
|
|
157897
|
-
};
|
|
157898
|
-
deferred2.reject = (reason) => {
|
|
157899
|
-
if (deferred2.state === "pending")
|
|
157900
|
-
deferred2.state = "rejected";
|
|
157901
|
-
return reject(reason);
|
|
157902
|
-
};
|
|
157903
|
-
});
|
|
157904
|
-
return deferred2;
|
|
157905
|
-
}
|
|
157906
|
-
|
|
157907
|
-
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@0.0.0-next-18e76ba-20240708092928_@graphql-codegen+cli@5.0.2_react-dom@17.0.2_react@17.0.2/node_modules/@shopify/cli-hydrogen/dist/lib/auth.js
|
|
157865
|
+
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@8.3.0_@graphql-codegen+cli@5.0.2_react-dom@17.0.2_react@17.0.2/node_modules/@shopify/cli-hydrogen/dist/lib/auth.js
|
|
157908
157866
|
async function logout2(root) {
|
|
157909
157867
|
await logout();
|
|
157910
157868
|
await resetConfig(root);
|
|
157911
157869
|
}
|
|
157912
157870
|
async function login(root, shop) {
|
|
157871
|
+
enhanceAuthLogs(false);
|
|
157913
157872
|
const forcePrompt = shop === true;
|
|
157914
157873
|
const existingConfig = root ? await getConfig(root) : {};
|
|
157915
157874
|
let { email, shopName } = existingConfig;
|
|
@@ -157918,7 +157877,6 @@ async function login(root, shop) {
|
|
|
157918
157877
|
}
|
|
157919
157878
|
if (shop)
|
|
157920
157879
|
shop = await normalizeStoreFqdn(shop);
|
|
157921
|
-
const hideLoginInfo = showLoginInfo();
|
|
157922
157880
|
if (!shop || !shopName || !email || forcePrompt || shop !== existingConfig.shop) {
|
|
157923
157881
|
const token = await ensureAuthenticatedBusinessPlatform().catch(() => {
|
|
157924
157882
|
throw new AbortError(
|
|
@@ -157926,7 +157884,6 @@ async function login(root, shop) {
|
|
|
157926
157884
|
);
|
|
157927
157885
|
});
|
|
157928
157886
|
const userAccount = await getUserAccount(token);
|
|
157929
|
-
await hideLoginInfo();
|
|
157930
157887
|
const preselected = !forcePrompt && shop && userAccount.activeShops.find(({ fqdn }) => shop === fqdn);
|
|
157931
157888
|
const selected = preselected || await renderSelectPrompt({
|
|
157932
157889
|
message: "Select a shop to log in to",
|
|
@@ -157944,64 +157901,9 @@ async function login(root, shop) {
|
|
|
157944
157901
|
`Ensure the shop that you specified is correct (you are trying to use: ${shop})`
|
|
157945
157902
|
]);
|
|
157946
157903
|
});
|
|
157947
|
-
await hideLoginInfo();
|
|
157948
157904
|
const config = root ? await setUserAccount(root, { shop, shopName, email }) : { shop, shopName, email };
|
|
157949
157905
|
return { session, config };
|
|
157950
157906
|
}
|
|
157951
|
-
function showLoginInfo() {
|
|
157952
|
-
const deferred2 = deferPromise();
|
|
157953
|
-
console.log("");
|
|
157954
|
-
let hasLoggedTimeout = false;
|
|
157955
|
-
let hasLoggedPressKey = false;
|
|
157956
|
-
const restoreLogs = muteAuthLogs({
|
|
157957
|
-
onKeyTimeout: (link) => {
|
|
157958
|
-
if (link) {
|
|
157959
|
-
hasLoggedTimeout = true;
|
|
157960
|
-
process.stdout.write(ansi_escapes_default.eraseLines(9));
|
|
157961
|
-
try {
|
|
157962
|
-
const secureLink = link.replace("http://", "https://");
|
|
157963
|
-
const url = new URL(secureLink);
|
|
157964
|
-
const label = url.origin + "/..." + url.search.slice(-14);
|
|
157965
|
-
renderInfo({
|
|
157966
|
-
headline: "Log in to Shopify",
|
|
157967
|
-
body: outputContent`Timed out. Click to open your browser:\n${outputToken.link(
|
|
157968
|
-
source_default.white(label),
|
|
157969
|
-
secureLink
|
|
157970
|
-
)}`.value
|
|
157971
|
-
});
|
|
157972
|
-
} catch {
|
|
157973
|
-
}
|
|
157974
|
-
}
|
|
157975
|
-
},
|
|
157976
|
-
onPressKey: () => {
|
|
157977
|
-
hasLoggedPressKey = true;
|
|
157978
|
-
renderInfo({
|
|
157979
|
-
headline: "Log in to Shopify",
|
|
157980
|
-
body: "Press any key to login with your default browser"
|
|
157981
|
-
});
|
|
157982
|
-
process.stdin.once("data", () => {
|
|
157983
|
-
renderTasks([
|
|
157984
|
-
{
|
|
157985
|
-
title: "Waiting for Shopify authentication",
|
|
157986
|
-
task: async () => {
|
|
157987
|
-
await deferred2.promise;
|
|
157988
|
-
}
|
|
157989
|
-
}
|
|
157990
|
-
]);
|
|
157991
|
-
});
|
|
157992
|
-
}
|
|
157993
|
-
});
|
|
157994
|
-
deferred2.promise.then(() => {
|
|
157995
|
-
restoreLogs();
|
|
157996
|
-
if (hasLoggedPressKey) {
|
|
157997
|
-
process.stdout.write(ansi_escapes_default.eraseLines(hasLoggedTimeout ? 11 : 10));
|
|
157998
|
-
}
|
|
157999
|
-
});
|
|
158000
|
-
return async () => {
|
|
158001
|
-
deferred2.resolve();
|
|
158002
|
-
await new Promise((resolve) => setTimeout(resolve, 0));
|
|
158003
|
-
};
|
|
158004
|
-
}
|
|
158005
157907
|
function renderLoginSuccess(config) {
|
|
158006
157908
|
renderSuccess({
|
|
158007
157909
|
headline: "Shopify authentication complete",
|
|
@@ -158013,9 +157915,9 @@ function renderLoginSuccess(config) {
|
|
|
158013
157915
|
});
|
|
158014
157916
|
}
|
|
158015
157917
|
|
|
158016
|
-
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@
|
|
157918
|
+
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@8.3.0_@graphql-codegen+cli@5.0.2_react-dom@17.0.2_react@17.0.2/node_modules/@shopify/cli-hydrogen/dist/lib/onboarding/common.js
|
|
158017
157919
|
init_cjs_shims();
|
|
158018
|
-
import { readdir as readdir4 } from "node:fs/promises";
|
|
157920
|
+
import { symlink, readdir as readdir4 } from "node:fs/promises";
|
|
158019
157921
|
|
|
158020
157922
|
// ../cli-kit/dist/public/node/git.js
|
|
158021
157923
|
init_cjs_shims();
|
|
@@ -162030,11 +161932,11 @@ async function isClean(directory) {
|
|
|
162030
161932
|
return (await esm_default({ baseDir: directory }).status()).isClean();
|
|
162031
161933
|
}
|
|
162032
161934
|
|
|
162033
|
-
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@
|
|
161935
|
+
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@8.3.0_@graphql-codegen+cli@5.0.2_react-dom@17.0.2_react@17.0.2/node_modules/@shopify/cli-hydrogen/dist/lib/setups/routes/generate.js
|
|
162034
161936
|
init_cjs_shims();
|
|
162035
161937
|
import { readdir as readdir3 } from "node:fs/promises";
|
|
162036
161938
|
|
|
162037
|
-
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@
|
|
161939
|
+
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@8.3.0_@graphql-codegen+cli@5.0.2_react-dom@17.0.2_react@17.0.2/node_modules/@shopify/cli-hydrogen/dist/lib/remix-version-interop.js
|
|
162038
161940
|
init_cjs_shims();
|
|
162039
161941
|
import { createRequire as createRequire2 } from "module";
|
|
162040
161942
|
function convertRouteToV1(route) {
|
|
@@ -162050,13 +161952,13 @@ function isV1RouteConventionInstalled() {
|
|
|
162050
161952
|
}
|
|
162051
161953
|
}
|
|
162052
161954
|
|
|
162053
|
-
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@
|
|
161955
|
+
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@8.3.0_@graphql-codegen+cli@5.0.2_react-dom@17.0.2_react@17.0.2/node_modules/@shopify/cli-hydrogen/dist/lib/remix-config.js
|
|
162054
161956
|
init_cjs_shims();
|
|
162055
161957
|
import { createRequire as createRequire4 } from "node:module";
|
|
162056
161958
|
import path2 from "node:path";
|
|
162057
161959
|
import { readdir as readdir2 } from "node:fs/promises";
|
|
162058
161960
|
|
|
162059
|
-
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@
|
|
161961
|
+
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@8.3.0_@graphql-codegen+cli@5.0.2_react-dom@17.0.2_react@17.0.2/node_modules/@shopify/cli-hydrogen/dist/lib/remix-version-check.js
|
|
162060
161962
|
init_cjs_shims();
|
|
162061
161963
|
import { createRequire as createRequire3 } from "node:module";
|
|
162062
161964
|
var REQUIRED_REMIX_VERSION = "^2.1.0";
|
|
@@ -162105,7 +162007,7 @@ function getRemixPackageVersion(require22, name, root) {
|
|
|
162105
162007
|
return result;
|
|
162106
162008
|
}
|
|
162107
162009
|
|
|
162108
|
-
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@
|
|
162010
|
+
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@8.3.0_@graphql-codegen+cli@5.0.2_react-dom@17.0.2_react@17.0.2/node_modules/@shopify/cli-hydrogen/dist/lib/vite-config.js
|
|
162109
162011
|
init_cjs_shims();
|
|
162110
162012
|
async function hasViteConfig(root) {
|
|
162111
162013
|
const result = await findFileWithExtension(root, "vite.config");
|
|
@@ -162178,7 +162080,7 @@ function findOxygenPlugin(config) {
|
|
|
162178
162080
|
return findPlugin(config, "oxygen:main");
|
|
162179
162081
|
}
|
|
162180
162082
|
|
|
162181
|
-
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@
|
|
162083
|
+
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@8.3.0_@graphql-codegen+cli@5.0.2_react-dom@17.0.2_react@17.0.2/node_modules/@shopify/cli-hydrogen/dist/lib/remix-config.js
|
|
162182
162084
|
async function hasRemixConfigFile(root) {
|
|
162183
162085
|
const result = await findFileWithExtension(root, "remix.config");
|
|
162184
162086
|
return !!result.filepath;
|
|
@@ -162330,7 +162232,7 @@ async function assertEntryFileExists(root, fileRelative) {
|
|
|
162330
162232
|
}
|
|
162331
162233
|
}
|
|
162332
162234
|
|
|
162333
|
-
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@
|
|
162235
|
+
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@8.3.0_@graphql-codegen+cli@5.0.2_react-dom@17.0.2_react@17.0.2/node_modules/@shopify/cli-hydrogen/dist/lib/setups/routes/generate.js
|
|
162334
162236
|
var NO_LOCALE_PATTERNS = [/robots\.txt/];
|
|
162335
162237
|
var ROUTE_MAP = {
|
|
162336
162238
|
home: ["_index", "$"],
|
|
@@ -162435,19 +162337,12 @@ async function generateProjectFile(routeFrom, {
|
|
|
162435
162337
|
formatOptions,
|
|
162436
162338
|
localePrefix,
|
|
162437
162339
|
v1RouteConvention = false,
|
|
162438
|
-
signal
|
|
162340
|
+
signal,
|
|
162341
|
+
overwriteFileDeps = true
|
|
162439
162342
|
}) {
|
|
162440
162343
|
templatesRoot ??= await getStarterDir();
|
|
162441
162344
|
const extension = (routeFrom.match(/(\.[jt]sx?)$/) ?? [])[1] ?? ".tsx";
|
|
162442
162345
|
routeFrom = routeFrom.replace(extension, "");
|
|
162443
|
-
const routeTemplatePath = await getTemplateAppFile(
|
|
162444
|
-
routeFrom + extension,
|
|
162445
|
-
templatesRoot
|
|
162446
|
-
);
|
|
162447
|
-
const allFilesToGenerate = await findRouteDependencies(
|
|
162448
|
-
routeTemplatePath,
|
|
162449
|
-
await getTemplateAppFile("", templatesRoot)
|
|
162450
|
-
);
|
|
162451
162346
|
const routeDestinationPath = joinPath(
|
|
162452
162347
|
appDirectory,
|
|
162453
162348
|
getDestinationRoute(routeFrom, localePrefix, { v1RouteConvention }) + (typescript ? extension : extension.replace(".ts", ".js"))
|
|
@@ -162469,12 +162364,23 @@ async function generateProjectFile(routeFrom, {
|
|
|
162469
162364
|
return { ...result, operation: "skipped" };
|
|
162470
162365
|
result.operation = "replaced";
|
|
162471
162366
|
}
|
|
162367
|
+
const routeTemplatePath = await getTemplateAppFile(
|
|
162368
|
+
routeFrom + extension,
|
|
162369
|
+
templatesRoot
|
|
162370
|
+
);
|
|
162371
|
+
const allFilesToGenerate = await findRouteDependencies(
|
|
162372
|
+
routeTemplatePath,
|
|
162373
|
+
await getTemplateAppFile("", templatesRoot)
|
|
162374
|
+
);
|
|
162472
162375
|
for (const filePath of allFilesToGenerate) {
|
|
162473
162376
|
const isRoute = filePath.startsWith(ASSETS_STARTER_DIR_ROUTES + "/");
|
|
162474
162377
|
const destinationPath = isRoute ? routeDestinationPath : joinPath(
|
|
162475
162378
|
appDirectory,
|
|
162476
162379
|
filePath.replace(/\.ts(x?)$/, `.${typescript ? "ts$1" : "js$1"}`)
|
|
162477
162380
|
);
|
|
162381
|
+
if (!overwriteFileDeps && await fileExists(destinationPath)) {
|
|
162382
|
+
continue;
|
|
162383
|
+
}
|
|
162478
162384
|
if (!await fileExists(dirname(destinationPath))) {
|
|
162479
162385
|
await mkdir(dirname(destinationPath));
|
|
162480
162386
|
}
|
|
@@ -162591,7 +162497,7 @@ async function copyRouteTemplate({
|
|
|
162591
162497
|
await writeFile(routePath, templateContent);
|
|
162592
162498
|
}
|
|
162593
162499
|
|
|
162594
|
-
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@
|
|
162500
|
+
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@8.3.0_@graphql-codegen+cli@5.0.2_react-dom@17.0.2_react@17.0.2/node_modules/@shopify/cli-hydrogen/dist/lib/onboarding/common.js
|
|
162595
162501
|
var LANGUAGES = {
|
|
162596
162502
|
js: "JavaScript",
|
|
162597
162503
|
ts: "TypeScript"
|
|
@@ -162620,7 +162526,7 @@ async function handleRouteGeneration(controller, flagRoutes) {
|
|
|
162620
162526
|
const needsRouteGeneration = routesToScaffold === "all" || routesToScaffold.length > 0;
|
|
162621
162527
|
return {
|
|
162622
162528
|
needsRouteGeneration,
|
|
162623
|
-
setupRoutes: async (directory, language,
|
|
162529
|
+
setupRoutes: async (directory, language, options) => {
|
|
162624
162530
|
if (needsRouteGeneration) {
|
|
162625
162531
|
const result = await generateRoutes(
|
|
162626
162532
|
{
|
|
@@ -162628,8 +162534,9 @@ async function handleRouteGeneration(controller, flagRoutes) {
|
|
|
162628
162534
|
directory,
|
|
162629
162535
|
force: true,
|
|
162630
162536
|
typescript: language === "ts",
|
|
162631
|
-
localePrefix: i18nStrategy === "subfolders" ? "locale" : false,
|
|
162632
|
-
signal: controller.signal
|
|
162537
|
+
localePrefix: options?.i18nStrategy === "subfolders" ? "locale" : false,
|
|
162538
|
+
signal: controller.signal,
|
|
162539
|
+
...options
|
|
162633
162540
|
},
|
|
162634
162541
|
{
|
|
162635
162542
|
rootDirectory: directory,
|
|
@@ -162683,6 +162590,7 @@ async function handleCliShortcut(controller, cliCommand, flagShortcut) {
|
|
|
162683
162590
|
};
|
|
162684
162591
|
}
|
|
162685
162592
|
async function handleStorefrontLink(controller) {
|
|
162593
|
+
enhanceAuthLogs(true);
|
|
162686
162594
|
const { session, config } = await login();
|
|
162687
162595
|
renderLoginSuccess(config);
|
|
162688
162596
|
const storefronts = await getStorefronts(session);
|
|
@@ -162857,6 +162765,20 @@ async function handleDependencies(projectDir, controller, packageManagerFromFlag
|
|
|
162857
162765
|
});
|
|
162858
162766
|
}
|
|
162859
162767
|
}
|
|
162768
|
+
if (isHydrogenMonorepo) {
|
|
162769
|
+
await copyFile(
|
|
162770
|
+
joinPath(getSkeletonSourceDir(), ".npmrc"),
|
|
162771
|
+
joinPath(projectDir, ".npmrc")
|
|
162772
|
+
).catch(() => {
|
|
162773
|
+
});
|
|
162774
|
+
if (!shouldInstallDeps) {
|
|
162775
|
+
await symlink(
|
|
162776
|
+
await getRepoNodeModules(),
|
|
162777
|
+
joinPath(projectDir, "node_modules")
|
|
162778
|
+
).catch(() => {
|
|
162779
|
+
});
|
|
162780
|
+
}
|
|
162781
|
+
}
|
|
162860
162782
|
return {
|
|
162861
162783
|
packageManager: actualPackageManager,
|
|
162862
162784
|
shouldInstallDeps,
|
|
@@ -163021,6 +162943,10 @@ function createAbortHandler(controller, project) {
|
|
|
163021
162943
|
error?.tryMessage ?? error?.stack
|
|
163022
162944
|
)
|
|
163023
162945
|
);
|
|
162946
|
+
if (process.env.SHOPIFY_UNIT_TEST && process.exit.name !== "spy") {
|
|
162947
|
+
console.error("Error during test before process.exit:", error);
|
|
162948
|
+
throw error;
|
|
162949
|
+
}
|
|
163024
162950
|
process.exit(1);
|
|
163025
162951
|
};
|
|
163026
162952
|
}
|
|
@@ -163101,7 +163027,7 @@ function generateRandomName() {
|
|
|
163101
163027
|
return `${colorNames} ${geographicalFeature}`;
|
|
163102
163028
|
}
|
|
163103
163029
|
|
|
163104
|
-
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@
|
|
163030
|
+
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@8.3.0_@graphql-codegen+cli@5.0.2_react-dom@17.0.2_react@17.0.2/node_modules/@shopify/cli-hydrogen/dist/commands/hydrogen/link.js
|
|
163105
163031
|
var Link = class _Link extends base_command_default {
|
|
163106
163032
|
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.
|
|
163107
163033
|
|
|
@@ -163247,7 +163173,7 @@ async function createNewStorefront(root, session, storefronts) {
|
|
|
163247
163173
|
return storefront;
|
|
163248
163174
|
}
|
|
163249
163175
|
|
|
163250
|
-
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@
|
|
163176
|
+
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@8.3.0_@graphql-codegen+cli@5.0.2_react-dom@17.0.2_react@17.0.2/node_modules/@shopify/cli-hydrogen/dist/lib/graphql/admin/customer-application-update.js
|
|
163251
163177
|
init_cjs_shims();
|
|
163252
163178
|
var CUSTOMER_APPLICATION_URLS_REPLACE = `#graphql
|
|
163253
163179
|
mutation CustomerApplicationUrlsReplace($storefrontId: ID!, $urlsReplaceInput: HydrogenStorefrontCustomerApplicationUrlsReplaceInput!) {
|
|
@@ -163275,7 +163201,7 @@ async function replaceCustomerApplicationUrls(adminSession, storefrontId, urlsRe
|
|
|
163275
163201
|
return { success, userErrors };
|
|
163276
163202
|
}
|
|
163277
163203
|
|
|
163278
|
-
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@
|
|
163204
|
+
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@8.3.0_@graphql-codegen+cli@5.0.2_react-dom@17.0.2_react@17.0.2/node_modules/@shopify/cli-hydrogen/dist/commands/hydrogen/customer-account/push.js
|
|
163279
163205
|
var CustomerAccountPush = class _CustomerAccountPush extends base_command_default {
|
|
163280
163206
|
static description = "Push project configuration to admin";
|
|
163281
163207
|
static flags = {
|
|
@@ -163434,7 +163360,7 @@ async function getStorefrontId(root, storefrontIdFromFlag) {
|
|
|
163434
163360
|
return newConfig.storefront?.id;
|
|
163435
163361
|
}
|
|
163436
163362
|
|
|
163437
|
-
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@
|
|
163363
|
+
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@8.3.0_@graphql-codegen+cli@5.0.2_react-dom@17.0.2_react@17.0.2/node_modules/@shopify/cli-hydrogen/dist/lib/environment-variables.js
|
|
163438
163364
|
init_cjs_shims();
|
|
163439
163365
|
|
|
163440
163366
|
// ../cli-kit/dist/public/node/dot-env.js
|
|
@@ -163523,7 +163449,7 @@ function createDotEnvFileLine(key, value, quote2) {
|
|
|
163523
163449
|
return `${key}=${value}`;
|
|
163524
163450
|
}
|
|
163525
163451
|
|
|
163526
|
-
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@
|
|
163452
|
+
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@8.3.0_@graphql-codegen+cli@5.0.2_react-dom@17.0.2_react@17.0.2/node_modules/@shopify/cli-hydrogen/dist/lib/graphql/admin/pull-variables.js
|
|
163527
163453
|
init_cjs_shims();
|
|
163528
163454
|
var PullVariablesQuery = `#graphql
|
|
163529
163455
|
query PullVariables($id: ID!, $handle: String) {
|
|
@@ -163551,7 +163477,7 @@ async function getStorefrontEnvVariables(adminSession, storefrontId, envHandle)
|
|
|
163551
163477
|
return hydrogenStorefront;
|
|
163552
163478
|
}
|
|
163553
163479
|
|
|
163554
|
-
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@
|
|
163480
|
+
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@8.3.0_@graphql-codegen+cli@5.0.2_react-dom@17.0.2_react@17.0.2/node_modules/@shopify/cli-hydrogen/dist/lib/graphql/admin/list-environments.js
|
|
163555
163481
|
init_cjs_shims();
|
|
163556
163482
|
var ListEnvironmentsQuery = `#graphql
|
|
163557
163483
|
query ListStorefronts($id: ID!) {
|
|
@@ -163579,7 +163505,7 @@ async function getStorefrontEnvironments(adminSession, storefrontId) {
|
|
|
163579
163505
|
return hydrogenStorefront;
|
|
163580
163506
|
}
|
|
163581
163507
|
|
|
163582
|
-
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@
|
|
163508
|
+
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@8.3.0_@graphql-codegen+cli@5.0.2_react-dom@17.0.2_react@17.0.2/node_modules/@shopify/cli-hydrogen/dist/lib/common.js
|
|
163583
163509
|
init_cjs_shims();
|
|
163584
163510
|
function orderEnvironmentsBySafety(environments) {
|
|
163585
163511
|
return [
|
|
@@ -163627,7 +163553,7 @@ function environmentNotFound(criterion, value) {
|
|
|
163627
163553
|
);
|
|
163628
163554
|
}
|
|
163629
163555
|
|
|
163630
|
-
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@
|
|
163556
|
+
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@8.3.0_@graphql-codegen+cli@5.0.2_react-dom@17.0.2_react@17.0.2/node_modules/@shopify/cli-hydrogen/dist/lib/environment-variables.js
|
|
163631
163557
|
var createEmptyRemoteVars = () => ({
|
|
163632
163558
|
remoteVariables: {},
|
|
163633
163559
|
remoteSecrets: {}
|
|
@@ -163708,7 +163634,7 @@ async function getLocalVariables(root) {
|
|
|
163708
163634
|
);
|
|
163709
163635
|
}
|
|
163710
163636
|
|
|
163711
|
-
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@
|
|
163637
|
+
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@8.3.0_@graphql-codegen+cli@5.0.2_react-dom@17.0.2_react@17.0.2/node_modules/@shopify/cli-hydrogen/dist/lib/tunneling.js
|
|
163712
163638
|
init_cjs_shims();
|
|
163713
163639
|
async function startTunnelPlugin(config, port, provider) {
|
|
163714
163640
|
const hooks = await fanoutHooks(config, "tunnel_start", { port, provider });
|
|
@@ -163749,7 +163675,7 @@ async function pollTunnelURL(tunnelClient) {
|
|
|
163749
163675
|
});
|
|
163750
163676
|
}
|
|
163751
163677
|
|
|
163752
|
-
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@
|
|
163678
|
+
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@8.3.0_@graphql-codegen+cli@5.0.2_react-dom@17.0.2_react@17.0.2/node_modules/@shopify/cli-hydrogen/dist/lib/dev-shared.js
|
|
163753
163679
|
function isMockShop(envVariables) {
|
|
163754
163680
|
return envVariables.PUBLIC_STORE_DOMAIN === "mock.shop" || // We fallback to mock.shop if the env var is falsy.
|
|
163755
163681
|
// When it's undefined, it might be overwritten by remote variables.
|
|
@@ -163887,6 +163813,7 @@ export {
|
|
|
163887
163813
|
findHydrogenPlugin,
|
|
163888
163814
|
findOxygenPlugin,
|
|
163889
163815
|
muteDevLogs,
|
|
163816
|
+
enhanceAuthLogs,
|
|
163890
163817
|
enhanceH2Logs,
|
|
163891
163818
|
createRemixLogger,
|
|
163892
163819
|
muteRemixLogs,
|
|
@@ -163899,7 +163826,6 @@ export {
|
|
|
163899
163826
|
getRawRemixConfig,
|
|
163900
163827
|
getRemixConfig,
|
|
163901
163828
|
assertOxygenChecks,
|
|
163902
|
-
deferPromise,
|
|
163903
163829
|
adminRequest,
|
|
163904
163830
|
parseGid,
|
|
163905
163831
|
getStorefronts,
|
|
@@ -163963,4 +163889,4 @@ export {
|
|
|
163963
163889
|
getDebugBannerLine,
|
|
163964
163890
|
getUtilityBannerlines
|
|
163965
163891
|
};
|
|
163966
|
-
//# sourceMappingURL=chunk-
|
|
163892
|
+
//# sourceMappingURL=chunk-H6AQTECB.js.map
|