@shopify/cli 3.78.1 → 3.79.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/assets/dev-console/extensions/dev-console/assets/index-BteeGmYf.css +1 -0
- package/dist/assets/dev-console/extensions/dev-console/assets/index-CqNhY1h-.js +64 -0
- package/dist/assets/dev-console/index.html +2 -2
- package/dist/assets/hydrogen/starter/.cursor/rules/cookbook-recipe-subscriptions.mdc +921 -0
- package/dist/assets/hydrogen/starter/CHANGELOG.md +20 -0
- package/dist/assets/hydrogen/starter/app/components/CartLineItem.tsx +15 -0
- package/dist/assets/hydrogen/starter/app/components/CartMain.tsx +1 -1
- package/dist/assets/hydrogen/starter/app/components/ProductItem.tsx +44 -0
- package/dist/assets/hydrogen/starter/app/lib/redirect.ts +23 -0
- package/dist/assets/hydrogen/starter/app/routes/_index.tsx +8 -23
- package/dist/assets/hydrogen/starter/app/routes/blogs.$blogHandle.$articleHandle.tsx +22 -2
- package/dist/assets/hydrogen/starter/app/routes/blogs.$blogHandle._index.tsx +4 -0
- package/dist/assets/hydrogen/starter/app/routes/collections.$handle.tsx +7 -41
- package/dist/assets/hydrogen/starter/app/routes/collections.all.tsx +11 -44
- package/dist/assets/hydrogen/starter/app/routes/pages.$handle.tsx +9 -1
- package/dist/assets/hydrogen/starter/app/routes/products.$handle.tsx +5 -1
- package/dist/assets/hydrogen/starter/app/styles/app.css +15 -3
- package/dist/assets/hydrogen/starter/package.json +5 -5
- package/dist/assets/hydrogen/starter/storefrontapi.generated.d.ts +57 -36
- package/dist/{chunk-F3SJ7GH2.js → chunk-2B4E6VSB.js} +3 -3
- package/dist/{chunk-TJUGCRWY.js → chunk-4BO44W6A.js} +2 -2
- package/dist/{chunk-ZJ2IPVO4.js → chunk-54K4AM4U.js} +3 -3
- package/dist/{chunk-HE3BDMSQ.js → chunk-7QKG75SI.js} +73 -7
- package/dist/{chunk-6GQF27II.js → chunk-ALANDDAF.js} +3 -3
- package/dist/{chunk-GA5Q2G7N.js → chunk-ANW4ZUSD.js} +2 -2
- package/dist/{chunk-RH2XRA3A.js → chunk-AVR7SY23.js} +4 -4
- package/dist/{chunk-5DXEBIVF.js → chunk-CZ7EMDNP.js} +5 -5
- package/dist/{chunk-6IPFYNHW.js → chunk-DG3SRCQ7.js} +2 -2
- package/dist/{chunk-QYA3TD2H.js → chunk-DOKAITPJ.js} +4 -4
- package/dist/{chunk-SWU3QODP.js → chunk-EKAPTGJ2.js} +2 -2
- package/dist/{chunk-OAZABGFS.js → chunk-F55GHOR3.js} +83 -130
- package/dist/{chunk-HRT2J6AZ.js → chunk-G63ZK76J.js} +3 -3
- package/dist/{chunk-VE4ESNRH.js → chunk-HTK3YCUG.js} +3 -3
- package/dist/{chunk-F23MB6TB.js → chunk-IARZXI6R.js} +3 -3
- package/dist/{chunk-HGD26EDV.js → chunk-IYBFDT7N.js} +41 -16
- package/dist/{chunk-WWOE2EFZ.js → chunk-JCZQQS22.js} +4 -4
- package/dist/{chunk-TIMWAEJ5.js → chunk-KRTNJAVX.js} +3 -3
- package/dist/{chunk-AV64MUSE.js → chunk-KVPURBXO.js} +5 -5
- package/dist/{chunk-EBRJEUGC.js → chunk-LFQMCRXU.js} +13 -9
- package/dist/{chunk-H73PDGHM.js → chunk-MLGPNWXX.js} +87 -97
- package/dist/{chunk-3COQLGRL.js → chunk-MRU3X272.js} +4 -4
- package/dist/{chunk-BV6PURBM.js → chunk-NOSVFQH5.js} +3 -3
- package/dist/{chunk-GWN4I7WX.js → chunk-OOVDD552.js} +3 -3
- package/dist/{chunk-FHYKRLSA.js → chunk-P6WUJAQG.js} +3 -3
- package/dist/{chunk-FEYZLXHI.js → chunk-PRSCEDOW.js} +18 -5
- package/dist/{chunk-HO5XX2LU.js → chunk-QBB7AFBN.js} +7 -7
- package/dist/{chunk-LE26CN2H.js → chunk-QJTHRGGC.js} +7 -5
- package/dist/{chunk-TFCMG5O2.js → chunk-QW44EO42.js} +8 -8
- package/dist/{chunk-PT5BDLIN.js → chunk-SHIHLMYP.js} +8 -6
- package/dist/{chunk-UGX6DGR4.js → chunk-SUWZRQHU.js} +2 -2
- package/dist/{chunk-DNGCAQBF.js → chunk-U6TDVNHS.js} +16 -15
- package/dist/{chunk-QTRXKFCW.js → chunk-UQLLSBKG.js} +3 -3
- package/dist/{chunk-QAKYKTFV.js → chunk-UTDSSCPI.js} +5 -5
- package/dist/{chunk-O6JLOWUE.js → chunk-YILOICE5.js} +5 -5
- package/dist/{chunk-FZI742QM.js → chunk-ZCIGSW2P.js} +2 -2
- package/dist/cli/commands/auth/logout.js +13 -13
- package/dist/cli/commands/auth/logout.test.js +14 -14
- package/dist/cli/commands/cache/clear.js +12 -12
- package/dist/cli/commands/debug/command-flags.js +12 -12
- package/dist/cli/commands/docs/generate.js +12 -12
- package/dist/cli/commands/docs/generate.test.js +13 -13
- package/dist/cli/commands/help.js +12 -12
- package/dist/cli/commands/kitchen-sink/async.js +13 -13
- package/dist/cli/commands/kitchen-sink/async.test.js +13 -13
- package/dist/cli/commands/kitchen-sink/index.js +15 -15
- package/dist/cli/commands/kitchen-sink/index.test.js +15 -15
- package/dist/cli/commands/kitchen-sink/prompts.js +13 -13
- package/dist/cli/commands/kitchen-sink/prompts.test.js +13 -13
- package/dist/cli/commands/kitchen-sink/static.js +13 -13
- package/dist/cli/commands/kitchen-sink/static.test.js +13 -13
- package/dist/cli/commands/notifications/generate.js +13 -13
- package/dist/cli/commands/notifications/list.js +13 -13
- package/dist/cli/commands/search.js +13 -13
- package/dist/cli/commands/upgrade.js +13 -13
- package/dist/cli/commands/version.js +13 -13
- package/dist/cli/commands/version.test.js +13 -13
- package/dist/cli/services/commands/notifications.js +8 -8
- package/dist/cli/services/commands/search.js +5 -4
- package/dist/cli/services/commands/search.test.js +5 -4
- package/dist/cli/services/commands/version.js +6 -5
- package/dist/cli/services/commands/version.test.js +7 -6
- package/dist/cli/services/kitchen-sink/async.js +5 -4
- package/dist/cli/services/kitchen-sink/prompts.js +5 -4
- package/dist/cli/services/kitchen-sink/static.js +5 -4
- package/dist/cli/services/upgrade.js +5 -5
- package/dist/cli/services/upgrade.test.js +7 -7
- package/dist/configs/all.yml +19 -4
- package/dist/configs/recommended.yml +19 -4
- package/dist/{custom-oclif-loader-BGXT6N23.js → custom-oclif-loader-ZMH2MAPE.js} +5 -4
- package/dist/{error-handler-HVEM4RKZ.js → error-handler-7Z6N6VQJ.js} +10 -10
- package/dist/hooks/postrun.js +9 -9
- package/dist/hooks/prerun.js +10 -10
- package/dist/index.js +2780 -2431
- package/dist/is-wsl-YAJ3DFN7.js +64 -0
- package/dist/{lib-IZAG57CE.js → lib-MWWAATIC.js} +3 -3
- package/dist/{local-UX2FKODS.js → local-LWMJQBFZ.js} +5 -6
- package/dist/{morph-W4XLLZ47.js → morph-MDY3DSJL.js} +9 -9
- package/dist/{node-RJ5OAO2M.js → node-JJXJUMVQ.js} +17 -17
- package/dist/{node-package-manager-NS6MYGUI.js → node-package-manager-BZGMCXZM.js} +5 -5
- package/dist/toml-patch-wasm-J5VGG6WG.js +140 -0
- package/dist/toml_patch_bg.wasm +0 -0
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/dist/{ui-FQHY2OWD.js → ui-IJDVK4OG.js} +5 -4
- package/dist/{workerd-KUHMQGDX.js → workerd-XA4WKUCO.js} +16 -16
- package/oclif.manifest.json +100 -2
- package/package.json +7 -7
- package/dist/assets/dev-console/extensions/dev-console/assets/index-lyGm6l3x.js +0 -64
- package/dist/assets/dev-console/extensions/dev-console/assets/index-n8yr6cxq.css +0 -1
|
@@ -8,19 +8,19 @@ import {
|
|
|
8
8
|
ensureAuthenticatedAdmin,
|
|
9
9
|
ensureAuthenticatedBusinessPlatform,
|
|
10
10
|
logout
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-PRSCEDOW.js";
|
|
12
12
|
import {
|
|
13
13
|
base_command_default
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-SHIHLMYP.js";
|
|
15
15
|
import {
|
|
16
16
|
fanoutHooks,
|
|
17
17
|
requestIdsCollection
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-QBB7AFBN.js";
|
|
19
19
|
import {
|
|
20
20
|
businessPlatformFqdn,
|
|
21
21
|
normalizeStoreFqdn,
|
|
22
22
|
partnersFqdn
|
|
23
|
-
} from "./chunk-
|
|
23
|
+
} from "./chunk-IYBFDT7N.js";
|
|
24
24
|
import {
|
|
25
25
|
ClientError,
|
|
26
26
|
GraphQLClient,
|
|
@@ -28,15 +28,16 @@ import {
|
|
|
28
28
|
abortSignalFromRequestBehaviour,
|
|
29
29
|
buildHeaders,
|
|
30
30
|
httpsAgent,
|
|
31
|
+
nonRandomUUID,
|
|
31
32
|
requestMode,
|
|
32
33
|
resolveRequestDocument,
|
|
33
34
|
retryAwareRequest,
|
|
34
35
|
sanitizeURL,
|
|
35
36
|
sanitizedHeadersOutput
|
|
36
|
-
} from "./chunk-
|
|
37
|
+
} from "./chunk-7QKG75SI.js";
|
|
37
38
|
import {
|
|
38
39
|
CLI_KIT_VERSION
|
|
39
|
-
} from "./chunk-
|
|
40
|
+
} from "./chunk-SUWZRQHU.js";
|
|
40
41
|
import {
|
|
41
42
|
cacheRetrieveOrRepopulate,
|
|
42
43
|
findUpAndReadPackageJson,
|
|
@@ -46,7 +47,7 @@ import {
|
|
|
46
47
|
readAndParsePackageJson,
|
|
47
48
|
timeIntervalToMilliseconds,
|
|
48
49
|
writePackageJSON
|
|
49
|
-
} from "./chunk-
|
|
50
|
+
} from "./chunk-CZ7EMDNP.js";
|
|
50
51
|
import {
|
|
51
52
|
AbortError,
|
|
52
53
|
BugError,
|
|
@@ -56,9 +57,7 @@ import {
|
|
|
56
57
|
capitalize,
|
|
57
58
|
copyFile,
|
|
58
59
|
currentProcessIsGlobal,
|
|
59
|
-
detectEOL,
|
|
60
60
|
fileExists,
|
|
61
|
-
fileExistsSync,
|
|
62
61
|
findPathUp,
|
|
63
62
|
formatPackageManagerCommand,
|
|
64
63
|
glob,
|
|
@@ -68,14 +67,12 @@ import {
|
|
|
68
67
|
isTerminalInteractive,
|
|
69
68
|
linesToColumns,
|
|
70
69
|
mkdir,
|
|
71
|
-
nonRandomUUID,
|
|
72
70
|
outputContent,
|
|
73
71
|
outputDebug,
|
|
74
72
|
outputInfo,
|
|
75
73
|
outputToken,
|
|
76
74
|
outputWarn,
|
|
77
75
|
readFile,
|
|
78
|
-
readFileSync,
|
|
79
76
|
removeFile,
|
|
80
77
|
renderConfirmationPrompt,
|
|
81
78
|
renderFatalError,
|
|
@@ -89,9 +86,8 @@ import {
|
|
|
89
86
|
runWithTimer,
|
|
90
87
|
source_default,
|
|
91
88
|
stringifyMessage,
|
|
92
|
-
writeFile
|
|
93
|
-
|
|
94
|
-
} from "./chunk-OAZABGFS.js";
|
|
89
|
+
writeFile
|
|
90
|
+
} from "./chunk-F55GHOR3.js";
|
|
95
91
|
import {
|
|
96
92
|
basename,
|
|
97
93
|
cwd,
|
|
@@ -104,7 +100,7 @@ import {
|
|
|
104
100
|
} from "./chunk-57Q6OQG4.js";
|
|
105
101
|
import {
|
|
106
102
|
require_lib
|
|
107
|
-
} from "./chunk-
|
|
103
|
+
} from "./chunk-UTDSSCPI.js";
|
|
108
104
|
import {
|
|
109
105
|
require_source_map_support
|
|
110
106
|
} from "./chunk-G5R6YD27.js";
|
|
@@ -135355,21 +135351,21 @@ var require_main = __commonJS({
|
|
|
135355
135351
|
}
|
|
135356
135352
|
});
|
|
135357
135353
|
|
|
135358
|
-
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@10.0.
|
|
135354
|
+
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@10.0.1_@graphql-codegen+cli@5.0.4_graphql@16.10.0_react-dom@17.0.2_react@17.0.2/node_modules/@shopify/cli-hydrogen/dist/lib/flags.js
|
|
135359
135355
|
init_cjs_shims();
|
|
135360
135356
|
var import_core = __toESM(require_lib(), 1);
|
|
135361
135357
|
|
|
135362
|
-
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@10.0.
|
|
135358
|
+
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@10.0.1_@graphql-codegen+cli@5.0.4_graphql@16.10.0_react-dom@17.0.2_react@17.0.2/node_modules/@shopify/cli-hydrogen/dist/lib/setups/css/index.js
|
|
135363
135359
|
init_cjs_shims();
|
|
135364
135360
|
|
|
135365
|
-
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@10.0.
|
|
135361
|
+
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@10.0.1_@graphql-codegen+cli@5.0.4_graphql@16.10.0_react-dom@17.0.2_react@17.0.2/node_modules/@shopify/cli-hydrogen/dist/lib/setups/css/assets.js
|
|
135366
135362
|
init_cjs_shims();
|
|
135367
135363
|
|
|
135368
|
-
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@10.0.
|
|
135364
|
+
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@10.0.1_@graphql-codegen+cli@5.0.4_graphql@16.10.0_react-dom@17.0.2_react@17.0.2/node_modules/@shopify/cli-hydrogen/dist/lib/build.js
|
|
135369
135365
|
init_cjs_shims();
|
|
135370
135366
|
import { fileURLToPath } from "node:url";
|
|
135371
135367
|
|
|
135372
|
-
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@10.0.
|
|
135368
|
+
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@10.0.1_@graphql-codegen+cli@5.0.4_graphql@16.10.0_react-dom@17.0.2_react@17.0.2/node_modules/@shopify/cli-hydrogen/dist/lib/process.js
|
|
135373
135369
|
init_cjs_shims();
|
|
135374
135370
|
import { exec } from "node:child_process";
|
|
135375
135371
|
import { promisify } from "node:util";
|
|
@@ -135381,7 +135377,7 @@ function supressNodeExperimentalWarnings() {
|
|
|
135381
135377
|
}));
|
|
135382
135378
|
}
|
|
135383
135379
|
|
|
135384
|
-
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@10.0.
|
|
135380
|
+
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@10.0.1_@graphql-codegen+cli@5.0.4_graphql@16.10.0_react-dom@17.0.2_react@17.0.2/node_modules/@shopify/cli-hydrogen/dist/lib/build.js
|
|
135385
135381
|
var monorepoPackagesPath = new URL("../../..", import.meta.url).pathname, isHydrogenMonorepo = monorepoPackagesPath.endsWith(
|
|
135386
135382
|
"/hydrogen/packages/"
|
|
135387
135383
|
), hydrogenPackagesPath = isHydrogenMonorepo ? monorepoPackagesPath : void 0, ASSETS_DIR_PREFIX = "assets/hydrogen", ASSETS_STARTER_DIR = "starter", ASSETS_STARTER_DIR_ROUTES = "routes", pkgJsonPath;
|
|
@@ -135428,7 +135424,7 @@ async function getRepoNodeModules() {
|
|
|
135428
135424
|
return !nodeModulesPath && isHydrogenMonorepo && (nodeModulesPath = joinPath(dirname(monorepoPackagesPath), "node_modules")), nodeModulesPath;
|
|
135429
135425
|
}
|
|
135430
135426
|
|
|
135431
|
-
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@10.0.
|
|
135427
|
+
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@10.0.1_@graphql-codegen+cli@5.0.4_graphql@16.10.0_react-dom@17.0.2_react@17.0.2/node_modules/@shopify/cli-hydrogen/dist/lib/setups/css/assets.js
|
|
135432
135428
|
var SETUP_CSS_STRATEGIES = [
|
|
135433
135429
|
"tailwind",
|
|
135434
135430
|
"vanilla-extract",
|
|
@@ -135463,14 +135459,14 @@ async function canWriteFiles(assetMap, directory, force) {
|
|
|
135463
135459
|
}));
|
|
135464
135460
|
}
|
|
135465
135461
|
|
|
135466
|
-
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@10.0.
|
|
135462
|
+
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@10.0.1_@graphql-codegen+cli@5.0.4_graphql@16.10.0_react-dom@17.0.2_react@17.0.2/node_modules/@shopify/cli-hydrogen/dist/lib/setups/css/tailwind.js
|
|
135467
135463
|
init_cjs_shims();
|
|
135468
135464
|
|
|
135469
|
-
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@10.0.
|
|
135465
|
+
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@10.0.1_@graphql-codegen+cli@5.0.4_graphql@16.10.0_react-dom@17.0.2_react@17.0.2/node_modules/@shopify/cli-hydrogen/dist/lib/file.js
|
|
135470
135466
|
init_cjs_shims();
|
|
135471
135467
|
import { readdir } from "node:fs/promises";
|
|
135472
135468
|
|
|
135473
|
-
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@10.0.
|
|
135469
|
+
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@10.0.1_@graphql-codegen+cli@5.0.4_graphql@16.10.0_react-dom@17.0.2_react@17.0.2/node_modules/@shopify/cli-hydrogen/dist/lib/format-code.js
|
|
135474
135470
|
init_cjs_shims();
|
|
135475
135471
|
var prettier = __toESM(require_prettier(), 1);
|
|
135476
135472
|
import * as FS from "fs/promises";
|
|
@@ -135500,7 +135496,7 @@ async function formatCode(content, config = DEFAULT_PRETTIER_CONFIG, filePath =
|
|
|
135500
135496
|
});
|
|
135501
135497
|
}
|
|
135502
135498
|
|
|
135503
|
-
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@10.0.
|
|
135499
|
+
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@10.0.1_@graphql-codegen+cli@5.0.4_graphql@16.10.0_react-dom@17.0.2_react@17.0.2/node_modules/@shopify/cli-hydrogen/dist/lib/file.js
|
|
135504
135500
|
async function replaceFileContent(filepath, formatConfig, replacer) {
|
|
135505
135501
|
let content = await replacer(await readFile(filepath));
|
|
135506
135502
|
if (typeof content == "string")
|
|
@@ -135583,10 +135579,10 @@ async function mergeTsConfig(sourceDir, targetDir) {
|
|
|
135583
135579
|
);
|
|
135584
135580
|
}
|
|
135585
135581
|
|
|
135586
|
-
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@10.0.
|
|
135582
|
+
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@10.0.1_@graphql-codegen+cli@5.0.4_graphql@16.10.0_react-dom@17.0.2_react@17.0.2/node_modules/@shopify/cli-hydrogen/dist/lib/setups/css/replacers.js
|
|
135587
135583
|
init_cjs_shims();
|
|
135588
135584
|
|
|
135589
|
-
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@10.0.
|
|
135585
|
+
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@10.0.1_@graphql-codegen+cli@5.0.4_graphql@16.10.0_react-dom@17.0.2_react@17.0.2/node_modules/@shopify/cli-hydrogen/dist/lib/ast.js
|
|
135590
135586
|
init_cjs_shims();
|
|
135591
135587
|
async function importLangAstGrep(lang) {
|
|
135592
135588
|
let astGrep = await import("@ast-grep/napi");
|
|
@@ -135595,7 +135591,7 @@ async function importLangAstGrep(lang) {
|
|
|
135595
135591
|
return astGrep[lang];
|
|
135596
135592
|
}
|
|
135597
135593
|
|
|
135598
|
-
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@10.0.
|
|
135594
|
+
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@10.0.1_@graphql-codegen+cli@5.0.4_graphql@16.10.0_react-dom@17.0.2_react@17.0.2/node_modules/@shopify/cli-hydrogen/dist/lib/setups/css/replacers.js
|
|
135599
135595
|
async function replaceRootLinks(appDirectory, formatConfig, importer) {
|
|
135600
135596
|
let { filepath, astType } = await findFileWithExtension(appDirectory, "root");
|
|
135601
135597
|
if (!filepath || !astType)
|
|
@@ -135697,7 +135693,7 @@ var vitePluginListRule = {
|
|
|
135697
135693
|
}
|
|
135698
135694
|
};
|
|
135699
135695
|
|
|
135700
|
-
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@10.0.
|
|
135696
|
+
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@10.0.1_@graphql-codegen+cli@5.0.4_graphql@16.10.0_react-dom@17.0.2_react@17.0.2/node_modules/@shopify/cli-hydrogen/dist/lib/setups/css/tailwind.js
|
|
135701
135697
|
var tailwindCssPath = "styles/tailwind.css";
|
|
135702
135698
|
async function setupTailwind({ rootDirectory, appDirectory }, force = !1) {
|
|
135703
135699
|
let relativeAppDirectory = relativePath(rootDirectory, appDirectory), assetMap = {
|
|
@@ -135733,7 +135729,7 @@ async function setupTailwind({ rootDirectory, appDirectory }, force = !1) {
|
|
|
135733
135729
|
};
|
|
135734
135730
|
}
|
|
135735
135731
|
|
|
135736
|
-
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@10.0.
|
|
135732
|
+
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@10.0.1_@graphql-codegen+cli@5.0.4_graphql@16.10.0_react-dom@17.0.2_react@17.0.2/node_modules/@shopify/cli-hydrogen/dist/lib/setups/css/vanilla-extract.js
|
|
135737
135733
|
init_cjs_shims();
|
|
135738
135734
|
async function setupVanillaExtract({
|
|
135739
135735
|
rootDirectory
|
|
@@ -135754,7 +135750,7 @@ async function setupVanillaExtract({
|
|
|
135754
135750
|
};
|
|
135755
135751
|
}
|
|
135756
135752
|
|
|
135757
|
-
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@10.0.
|
|
135753
|
+
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@10.0.1_@graphql-codegen+cli@5.0.4_graphql@16.10.0_react-dom@17.0.2_react@17.0.2/node_modules/@shopify/cli-hydrogen/dist/lib/setups/css/index.js
|
|
135758
135754
|
var STYLING_CHOICES = [...SETUP_CSS_STRATEGIES, "none"], CSS_STRATEGY_NAME_MAP = {
|
|
135759
135755
|
tailwind: "Tailwind v4",
|
|
135760
135756
|
"vanilla-extract": "Vanilla Extract",
|
|
@@ -135799,23 +135795,23 @@ async function renderCssPrompt(options2) {
|
|
|
135799
135795
|
});
|
|
135800
135796
|
}
|
|
135801
135797
|
|
|
135802
|
-
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@10.0.
|
|
135798
|
+
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@10.0.1_@graphql-codegen+cli@5.0.4_graphql@16.10.0_react-dom@17.0.2_react@17.0.2/node_modules/@shopify/cli-hydrogen/dist/lib/setups/i18n/index.js
|
|
135803
135799
|
init_cjs_shims();
|
|
135804
135800
|
|
|
135805
|
-
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@10.0.
|
|
135801
|
+
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@10.0.1_@graphql-codegen+cli@5.0.4_graphql@16.10.0_react-dom@17.0.2_react@17.0.2/node_modules/@shopify/cli-hydrogen/dist/lib/setups/i18n/replacers.js
|
|
135806
135802
|
init_cjs_shims();
|
|
135807
135803
|
|
|
135808
|
-
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@10.0.
|
|
135804
|
+
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@10.0.1_@graphql-codegen+cli@5.0.4_graphql@16.10.0_react-dom@17.0.2_react@17.0.2/node_modules/@shopify/cli-hydrogen/dist/lib/transpile/index.js
|
|
135809
135805
|
init_cjs_shims();
|
|
135810
135806
|
|
|
135811
|
-
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@10.0.
|
|
135807
|
+
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@10.0.1_@graphql-codegen+cli@5.0.4_graphql@16.10.0_react-dom@17.0.2_react@17.0.2/node_modules/@shopify/cli-hydrogen/dist/lib/transpile/file.js
|
|
135812
135808
|
init_cjs_shims();
|
|
135813
135809
|
async function transpileFile(code, filepath, keepTypes = !0) {
|
|
135814
|
-
let { transpileTs } = await import("./morph-
|
|
135810
|
+
let { transpileTs } = await import("./morph-MDY3DSJL.js");
|
|
135815
135811
|
return transpileTs(code, filepath, keepTypes);
|
|
135816
135812
|
}
|
|
135817
135813
|
|
|
135818
|
-
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@10.0.
|
|
135814
|
+
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@10.0.1_@graphql-codegen+cli@5.0.4_graphql@16.10.0_react-dom@17.0.2_react@17.0.2/node_modules/@shopify/cli-hydrogen/dist/lib/transpile/project.js
|
|
135819
135815
|
init_cjs_shims();
|
|
135820
135816
|
var DEFAULT_JS_CONFIG = {
|
|
135821
135817
|
checkJs: !1,
|
|
@@ -135926,7 +135922,7 @@ async function transpileProject(projectDir, keepTypes = !0) {
|
|
|
135926
135922
|
}
|
|
135927
135923
|
}
|
|
135928
135924
|
|
|
135929
|
-
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@10.0.
|
|
135925
|
+
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@10.0.1_@graphql-codegen+cli@5.0.4_graphql@16.10.0_react-dom@17.0.2_react@17.0.2/node_modules/@shopify/cli-hydrogen/dist/lib/setups/i18n/replacers.js
|
|
135930
135926
|
async function replaceContextI18n({
|
|
135931
135927
|
rootDirectory,
|
|
135932
135928
|
contextCreate = joinPath("app", "lib", "context.ts")
|
|
@@ -136065,7 +136061,7 @@ async function findContextCreateFile({
|
|
|
136065
136061
|
return { filepath, astType };
|
|
136066
136062
|
}
|
|
136067
136063
|
|
|
136068
|
-
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@10.0.
|
|
136064
|
+
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@10.0.1_@graphql-codegen+cli@5.0.4_graphql@16.10.0_react-dom@17.0.2_react@17.0.2/node_modules/@shopify/cli-hydrogen/dist/lib/setups/i18n/index.js
|
|
136069
136065
|
var SETUP_I18N_STRATEGIES = [
|
|
136070
136066
|
"subfolders",
|
|
136071
136067
|
"domains",
|
|
@@ -136097,7 +136093,7 @@ async function renderI18nPrompt(options2) {
|
|
|
136097
136093
|
});
|
|
136098
136094
|
}
|
|
136099
136095
|
|
|
136100
|
-
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@10.0.
|
|
136096
|
+
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@10.0.1_@graphql-codegen+cli@5.0.4_graphql@16.10.0_react-dom@17.0.2_react@17.0.2/node_modules/@shopify/cli-hydrogen/dist/lib/flags.js
|
|
136101
136097
|
var DEFAULT_APP_PORT = 3e3, DEFAULT_INSPECTOR_PORT = 9229, commonFlags = {
|
|
136102
136098
|
path: {
|
|
136103
136099
|
path: import_core.Flags.string({
|
|
@@ -136285,7 +136281,7 @@ function overrideFlag(flags, extra) {
|
|
|
136285
136281
|
);
|
|
136286
136282
|
}
|
|
136287
136283
|
|
|
136288
|
-
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@10.0.
|
|
136284
|
+
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@10.0.1_@graphql-codegen+cli@5.0.4_graphql@16.10.0_react-dom@17.0.2_react@17.0.2/node_modules/@shopify/cli-hydrogen/dist/lib/import-utils.js
|
|
136289
136285
|
init_cjs_shims();
|
|
136290
136286
|
import { createRequire } from "node:module";
|
|
136291
136287
|
import { pathToFileURL } from "node:url";
|
|
@@ -136310,13 +136306,13 @@ function importLocal(packageName, path3) {
|
|
|
136310
136306
|
return import(pathToFileURL(realPath).href);
|
|
136311
136307
|
}
|
|
136312
136308
|
|
|
136313
|
-
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@10.0.
|
|
136309
|
+
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@10.0.1_@graphql-codegen+cli@5.0.4_graphql@16.10.0_react-dom@17.0.2_react@17.0.2/node_modules/@shopify/cli-hydrogen/dist/lib/request-events.js
|
|
136314
136310
|
init_cjs_shims();
|
|
136315
136311
|
import path from "node:path";
|
|
136316
136312
|
import { EventEmitter } from "node:events";
|
|
136317
136313
|
import { ReadableStream } from "node:stream/web";
|
|
136318
136314
|
|
|
136319
|
-
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@10.0.
|
|
136315
|
+
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@10.0.1_@graphql-codegen+cli@5.0.4_graphql@16.10.0_react-dom@17.0.2_react@17.0.2/node_modules/@shopify/cli-hydrogen/dist/lib/graphiql-url.js
|
|
136320
136316
|
init_cjs_shims();
|
|
136321
136317
|
function getGraphiQLUrl({
|
|
136322
136318
|
host = "",
|
|
@@ -136330,7 +136326,7 @@ function getGraphiQLUrl({
|
|
|
136330
136326
|
return url;
|
|
136331
136327
|
}
|
|
136332
136328
|
|
|
136333
|
-
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@10.0.
|
|
136329
|
+
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@10.0.1_@graphql-codegen+cli@5.0.4_graphql@16.10.0_react-dom@17.0.2_react@17.0.2/node_modules/@shopify/cli-hydrogen/dist/lib/request-events.js
|
|
136334
136330
|
var import_source_map_support = __toESM(require_source_map_support(), 1), H2O_BINDING_NAME = "H2O_LOG_EVENT", ResponseConstructor;
|
|
136335
136331
|
function setConstructors(constructors) {
|
|
136336
136332
|
ResponseConstructor = constructors.Response;
|
|
@@ -136431,7 +136427,7 @@ function handleDebugNetworkRequest(request) {
|
|
|
136431
136427
|
return request.method === "DELETE" ? clearHistory() : streamRequestEvents(request);
|
|
136432
136428
|
}
|
|
136433
136429
|
|
|
136434
|
-
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@10.0.
|
|
136430
|
+
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@10.0.1_@graphql-codegen+cli@5.0.4_graphql@16.10.0_react-dom@17.0.2_react@17.0.2/node_modules/@shopify/cli-hydrogen/dist/lib/mini-oxygen/common.js
|
|
136435
136431
|
init_cjs_shims();
|
|
136436
136432
|
var SUBREQUEST_PROFILER_ENDPOINT = "/debug-network-server";
|
|
136437
136433
|
function handleMiniOxygenImportFail() {
|
|
@@ -136465,21 +136461,21 @@ function logRequestLine({
|
|
|
136465
136461
|
}
|
|
136466
136462
|
}
|
|
136467
136463
|
|
|
136468
|
-
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@10.0.
|
|
136464
|
+
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@10.0.1_@graphql-codegen+cli@5.0.4_graphql@16.10.0_react-dom@17.0.2_react@17.0.2/node_modules/@shopify/cli-hydrogen/dist/lib/dev-shared.js
|
|
136469
136465
|
init_cjs_shims();
|
|
136470
136466
|
|
|
136471
|
-
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@10.0.
|
|
136467
|
+
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@10.0.1_@graphql-codegen+cli@5.0.4_graphql@16.10.0_react-dom@17.0.2_react@17.0.2/node_modules/@shopify/cli-hydrogen/dist/commands/hydrogen/customer-account/push.js
|
|
136472
136468
|
init_cjs_shims();
|
|
136473
136469
|
var import_core3 = __toESM(require_lib(), 1);
|
|
136474
136470
|
|
|
136475
|
-
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@10.0.
|
|
136471
|
+
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@10.0.1_@graphql-codegen+cli@5.0.4_graphql@16.10.0_react-dom@17.0.2_react@17.0.2/node_modules/@shopify/cli-hydrogen/dist/commands/hydrogen/link.js
|
|
136476
136472
|
init_cjs_shims();
|
|
136477
136473
|
var import_core2 = __toESM(require_lib(), 1);
|
|
136478
136474
|
|
|
136479
|
-
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@10.0.
|
|
136475
|
+
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@10.0.1_@graphql-codegen+cli@5.0.4_graphql@16.10.0_react-dom@17.0.2_react@17.0.2/node_modules/@shopify/cli-hydrogen/dist/lib/graphql/admin/link-storefront.js
|
|
136480
136476
|
init_cjs_shims();
|
|
136481
136477
|
|
|
136482
|
-
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@10.0.
|
|
136478
|
+
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@10.0.1_@graphql-codegen+cli@5.0.4_graphql@16.10.0_react-dom@17.0.2_react@17.0.2/node_modules/@shopify/cli-hydrogen/dist/lib/graphql/admin/client.js
|
|
136483
136479
|
init_cjs_shims();
|
|
136484
136480
|
|
|
136485
136481
|
// ../cli-kit/dist/public/node/api/graphql.js
|
|
@@ -136552,7 +136548,7 @@ async function performGraphQLRequest(options2) {
|
|
|
136552
136548
|
...buildHeaders(token)
|
|
136553
136549
|
};
|
|
136554
136550
|
debugLogRequestInfo(api, queryAsString, url, variables, headers);
|
|
136555
|
-
let requestBehaviour = requestMode("default"), clientOptions = { agent: await httpsAgent(), headers }, client = new GraphQLClient(url, clientOptions), performRequest = async () => {
|
|
136551
|
+
let requestBehaviour = requestMode(options2.preferredBehaviour ?? "default"), clientOptions = { agent: await httpsAgent(), headers }, client = new GraphQLClient(url, clientOptions), performRequest = async () => {
|
|
136556
136552
|
let fullResponse;
|
|
136557
136553
|
try {
|
|
136558
136554
|
return client.requestConfig.signal = abortSignalFromRequestBehaviour(requestBehaviour), fullResponse = await client.rawRequest(queryAsString, variables), await logLastRequestIdFromResponse(fullResponse), fullResponse;
|
|
@@ -136593,7 +136589,7 @@ async function graphqlRequestDoc(options2) {
|
|
|
136593
136589
|
});
|
|
136594
136590
|
}
|
|
136595
136591
|
|
|
136596
|
-
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@10.0.
|
|
136592
|
+
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@10.0.1_@graphql-codegen+cli@5.0.4_graphql@16.10.0_react-dom@17.0.2_react@17.0.2/node_modules/@shopify/cli-hydrogen/dist/lib/graphql/admin/client.js
|
|
136597
136593
|
async function adminRequest(query, session, variables) {
|
|
136598
136594
|
let api = "Admin", url = `https://${session.storeFqdn}/admin/api/unstable/graphql.json`;
|
|
136599
136595
|
try {
|
|
@@ -136628,7 +136624,7 @@ async function adminRequest(query, session, variables) {
|
|
|
136628
136624
|
}
|
|
136629
136625
|
}
|
|
136630
136626
|
|
|
136631
|
-
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@10.0.
|
|
136627
|
+
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@10.0.1_@graphql-codegen+cli@5.0.4_graphql@16.10.0_react-dom@17.0.2_react@17.0.2/node_modules/@shopify/cli-hydrogen/dist/lib/gid.js
|
|
136632
136628
|
init_cjs_shims();
|
|
136633
136629
|
var GID_REGEXP = /gid:\/\/shopify\/\w*\/(\d+)/;
|
|
136634
136630
|
function parseGid(gid) {
|
|
@@ -136638,7 +136634,7 @@ function parseGid(gid) {
|
|
|
136638
136634
|
throw new AbortError(`Invalid Global ID: ${gid}`);
|
|
136639
136635
|
}
|
|
136640
136636
|
|
|
136641
|
-
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@10.0.
|
|
136637
|
+
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@10.0.1_@graphql-codegen+cli@5.0.4_graphql@16.10.0_react-dom@17.0.2_react@17.0.2/node_modules/@shopify/cli-hydrogen/dist/lib/graphql/admin/link-storefront.js
|
|
136642
136638
|
var LinkStorefrontQuery = `#graphql
|
|
136643
136639
|
query LinkStorefront {
|
|
136644
136640
|
hydrogenStorefronts {
|
|
@@ -136659,7 +136655,7 @@ async function getStorefronts(adminSession) {
|
|
|
136659
136655
|
}));
|
|
136660
136656
|
}
|
|
136661
136657
|
|
|
136662
|
-
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@10.0.
|
|
136658
|
+
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@10.0.1_@graphql-codegen+cli@5.0.4_graphql@16.10.0_react-dom@17.0.2_react@17.0.2/node_modules/@shopify/cli-hydrogen/dist/lib/shopify-config.js
|
|
136663
136659
|
init_cjs_shims();
|
|
136664
136660
|
var SHOPIFY_DIR = ".shopify", SHOPIFY_DIR_PROJECT = "project.json";
|
|
136665
136661
|
async function resetConfig(root) {
|
|
@@ -136730,7 +136726,7 @@ async function setCustomerAccountConfig(root, customerAccountConfig) {
|
|
|
136730
136726
|
}
|
|
136731
136727
|
}
|
|
136732
136728
|
|
|
136733
|
-
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@10.0.
|
|
136729
|
+
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@10.0.1_@graphql-codegen+cli@5.0.4_graphql@16.10.0_react-dom@17.0.2_react@17.0.2/node_modules/@shopify/cli-hydrogen/dist/lib/graphql/admin/create-storefront.js
|
|
136734
136730
|
init_cjs_shims();
|
|
136735
136731
|
var CreateStorefrontMutation = `#graphql
|
|
136736
136732
|
mutation CreateStorefront($title: String!) {
|
|
@@ -136764,7 +136760,7 @@ async function createStorefront(adminSession, title) {
|
|
|
136764
136760
|
return { jobId, storefront: hydrogenStorefront };
|
|
136765
136761
|
}
|
|
136766
136762
|
|
|
136767
|
-
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@10.0.
|
|
136763
|
+
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@10.0.1_@graphql-codegen+cli@5.0.4_graphql@16.10.0_react-dom@17.0.2_react@17.0.2/node_modules/@shopify/cli-hydrogen/dist/lib/graphql/admin/fetch-job.js
|
|
136768
136764
|
init_cjs_shims();
|
|
136769
136765
|
var FetchJobQuery = `#graphql
|
|
136770
136766
|
query FetchJob($id: ID!) {
|
|
@@ -136798,7 +136794,7 @@ function waitForJob(adminSession, jobId) {
|
|
|
136798
136794
|
});
|
|
136799
136795
|
}
|
|
136800
136796
|
|
|
136801
|
-
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@10.0.
|
|
136797
|
+
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@10.0.1_@graphql-codegen+cli@5.0.4_graphql@16.10.0_react-dom@17.0.2_react@17.0.2/node_modules/@shopify/cli-hydrogen/dist/lib/string.js
|
|
136802
136798
|
init_cjs_shims();
|
|
136803
136799
|
function titleize(name = "") {
|
|
136804
136800
|
return name.replace(/[\W_]+/g, " ").split(" ").filter((word) => word.length > 0).map(
|
|
@@ -136806,7 +136802,7 @@ function titleize(name = "") {
|
|
|
136806
136802
|
).join(" ");
|
|
136807
136803
|
}
|
|
136808
136804
|
|
|
136809
|
-
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@10.0.
|
|
136805
|
+
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@10.0.1_@graphql-codegen+cli@5.0.4_graphql@16.10.0_react-dom@17.0.2_react@17.0.2/node_modules/@shopify/cli-hydrogen/dist/lib/shell.js
|
|
136810
136806
|
init_cjs_shims();
|
|
136811
136807
|
import os from "node:os";
|
|
136812
136808
|
var ALIAS_NAME = "h2", isWindows = () => os.platform() === "win32", isGitBash = () => !!process.env.MINGW_PREFIX;
|
|
@@ -136921,10 +136917,10 @@ async function getCliCommand(directory = process.cwd(), forcePkgManager) {
|
|
|
136921
136917
|
return (pkgManager === "bun" || pkgManager === "pnpm" || pkgManager === "yarn") && (cli = pkgManager), `${cli} shopify hydrogen`;
|
|
136922
136918
|
}
|
|
136923
136919
|
|
|
136924
|
-
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@10.0.
|
|
136920
|
+
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@10.0.1_@graphql-codegen+cli@5.0.4_graphql@16.10.0_react-dom@17.0.2_react@17.0.2/node_modules/@shopify/cli-hydrogen/dist/lib/auth.js
|
|
136925
136921
|
init_cjs_shims();
|
|
136926
136922
|
|
|
136927
|
-
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@10.0.
|
|
136923
|
+
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@10.0.1_@graphql-codegen+cli@5.0.4_graphql@16.10.0_react-dom@17.0.2_react@17.0.2/node_modules/@shopify/cli-hydrogen/dist/lib/graphql/business-platform/user-account.js
|
|
136928
136924
|
init_cjs_shims();
|
|
136929
136925
|
|
|
136930
136926
|
// ../cli-kit/dist/public/node/api/business-platform.js
|
|
@@ -136954,26 +136950,28 @@ async function setupRequest(token) {
|
|
|
136954
136950
|
responseOptions: { onResponse: handleDeprecations }
|
|
136955
136951
|
};
|
|
136956
136952
|
}
|
|
136957
|
-
async function partnersRequest(query, token, variables, cacheOptions) {
|
|
136953
|
+
async function partnersRequest(query, token, variables, cacheOptions, preferredBehaviour) {
|
|
136958
136954
|
let opts = await setupRequest(token);
|
|
136959
136955
|
return limiter.schedule(() => graphqlRequest({
|
|
136960
136956
|
...opts,
|
|
136961
136957
|
query,
|
|
136962
136958
|
variables,
|
|
136963
|
-
cacheOptions
|
|
136959
|
+
cacheOptions,
|
|
136960
|
+
preferredBehaviour
|
|
136964
136961
|
}));
|
|
136965
136962
|
}
|
|
136966
136963
|
var generateFetchAppLogUrl = async (cursor, filters) => {
|
|
136967
136964
|
let url = `https://${await partnersFqdn()}/app_logs/poll`;
|
|
136968
136965
|
return addCursorAndFiltersToAppLogsUrl(url, cursor, filters);
|
|
136969
136966
|
};
|
|
136970
|
-
async function partnersRequestDoc(query, token, variables) {
|
|
136967
|
+
async function partnersRequestDoc(query, token, variables, preferredBehaviour) {
|
|
136971
136968
|
try {
|
|
136972
136969
|
let opts = await setupRequest(token);
|
|
136973
136970
|
return limiter.schedule(() => graphqlRequestDoc({
|
|
136974
136971
|
...opts,
|
|
136975
136972
|
query,
|
|
136976
|
-
variables
|
|
136973
|
+
variables,
|
|
136974
|
+
preferredBehaviour
|
|
136977
136975
|
}));
|
|
136978
136976
|
} catch (error) {
|
|
136979
136977
|
if (error.errors?.[0]?.extensions?.type === "unsupported_client_version") {
|
|
@@ -137044,7 +137042,7 @@ async function businessPlatformOrganizationsRequestDoc(query, token, organizatio
|
|
|
137044
137042
|
});
|
|
137045
137043
|
}
|
|
137046
137044
|
|
|
137047
|
-
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@10.0.
|
|
137045
|
+
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@10.0.1_@graphql-codegen+cli@5.0.4_graphql@16.10.0_react-dom@17.0.2_react@17.0.2/node_modules/@shopify/cli-hydrogen/dist/lib/graphql/business-platform/user-account.js
|
|
137048
137046
|
var CurrentUserAccountQuery = `#graphql
|
|
137049
137047
|
query currentUserAccount {
|
|
137050
137048
|
currentUserAccount {
|
|
@@ -137123,7 +137121,7 @@ async function getUserAccount(token) {
|
|
|
137123
137121
|
};
|
|
137124
137122
|
}
|
|
137125
137123
|
|
|
137126
|
-
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@10.0.
|
|
137124
|
+
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@10.0.1_@graphql-codegen+cli@5.0.4_graphql@16.10.0_react-dom@17.0.2_react@17.0.2/node_modules/@shopify/cli-hydrogen/dist/lib/log.js
|
|
137127
137125
|
init_cjs_shims();
|
|
137128
137126
|
var originalConsole = { ...console }, methodsReplaced = /* @__PURE__ */ new Set(), addedReplacers = /* @__PURE__ */ new Set(), messageReplacers = [];
|
|
137129
137127
|
function addMessageReplacers(key, ...items) {
|
|
@@ -137396,7 +137394,7 @@ function isH2Verbose() {
|
|
|
137396
137394
|
return !!(process.env.DEBUG === "*" || process.env.DEBUG?.includes("h2:*"));
|
|
137397
137395
|
}
|
|
137398
137396
|
|
|
137399
|
-
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@10.0.
|
|
137397
|
+
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@10.0.1_@graphql-codegen+cli@5.0.4_graphql@16.10.0_react-dom@17.0.2_react@17.0.2/node_modules/@shopify/cli-hydrogen/dist/lib/auth.js
|
|
137400
137398
|
async function logout2(root) {
|
|
137401
137399
|
await logout(), await resetConfig(root);
|
|
137402
137400
|
}
|
|
@@ -137435,7 +137433,7 @@ function renderLoginSuccess(config) {
|
|
|
137435
137433
|
});
|
|
137436
137434
|
}
|
|
137437
137435
|
|
|
137438
|
-
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@10.0.
|
|
137436
|
+
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@10.0.1_@graphql-codegen+cli@5.0.4_graphql@16.10.0_react-dom@17.0.2_react@17.0.2/node_modules/@shopify/cli-hydrogen/dist/lib/onboarding/common.js
|
|
137439
137437
|
init_cjs_shims();
|
|
137440
137438
|
import { symlink, readdir as readdir4 } from "node:fs/promises";
|
|
137441
137439
|
|
|
@@ -140801,13 +140799,6 @@ async function initializeGitRepository(directory, initialBranch = "main") {
|
|
|
140801
140799
|
async function checkIfIgnoredInGitRepository(directory, files) {
|
|
140802
140800
|
return await esm_default(directory).checkIgnore(files);
|
|
140803
140801
|
}
|
|
140804
|
-
function addToGitIgnore(root, entry) {
|
|
140805
|
-
let gitIgnorePath = joinPath(root, ".gitignore");
|
|
140806
|
-
if (!fileExistsSync(gitIgnorePath))
|
|
140807
|
-
return;
|
|
140808
|
-
let gitIgnoreContent2 = readFileSync(gitIgnorePath).toString(), eol = detectEOL(gitIgnoreContent2), lines = gitIgnoreContent2.split(eol).map((line) => line.trim()), ignoreManager = import_ignore.default.default({ allowRelativePaths: !0 }).add(lines), isIgnoredEntry = ignoreManager.ignores(joinPath(entry)), isIgnoredEntryAsDir = ignoreManager.ignores(joinPath(entry, "ignored.txt"));
|
|
140809
|
-
isIgnoredEntry || isIgnoredEntryAsDir || (gitIgnoreContent2.endsWith(eol) ? writeFileSync(gitIgnorePath, `${gitIgnoreContent2}${entry}${eol}`) : writeFileSync(gitIgnorePath, `${gitIgnoreContent2}${eol}${entry}${eol}`));
|
|
140810
|
-
}
|
|
140811
140802
|
async function downloadGitRepository(cloneOptions) {
|
|
140812
140803
|
return runWithTimer("cmd_all_timing_network_ms")(async () => {
|
|
140813
140804
|
let { repoUrl, destination, progressUpdater, shallow, latestTag } = cloneOptions;
|
|
@@ -140883,11 +140874,11 @@ async function isClean(directory) {
|
|
|
140883
140874
|
return (await esm_default({ baseDir: directory }).status()).isClean();
|
|
140884
140875
|
}
|
|
140885
140876
|
|
|
140886
|
-
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@10.0.
|
|
140877
|
+
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@10.0.1_@graphql-codegen+cli@5.0.4_graphql@16.10.0_react-dom@17.0.2_react@17.0.2/node_modules/@shopify/cli-hydrogen/dist/lib/setups/routes/generate.js
|
|
140887
140878
|
init_cjs_shims();
|
|
140888
140879
|
import { readdir as readdir3 } from "node:fs/promises";
|
|
140889
140880
|
|
|
140890
|
-
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@10.0.
|
|
140881
|
+
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@10.0.1_@graphql-codegen+cli@5.0.4_graphql@16.10.0_react-dom@17.0.2_react@17.0.2/node_modules/@shopify/cli-hydrogen/dist/lib/remix-version-interop.js
|
|
140891
140882
|
init_cjs_shims();
|
|
140892
140883
|
import { createRequire as createRequire2 } from "module";
|
|
140893
140884
|
function convertRouteToV1(route) {
|
|
@@ -140901,13 +140892,13 @@ function isV1RouteConventionInstalled() {
|
|
|
140901
140892
|
}
|
|
140902
140893
|
}
|
|
140903
140894
|
|
|
140904
|
-
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@10.0.
|
|
140895
|
+
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@10.0.1_@graphql-codegen+cli@5.0.4_graphql@16.10.0_react-dom@17.0.2_react@17.0.2/node_modules/@shopify/cli-hydrogen/dist/lib/remix-config.js
|
|
140905
140896
|
init_cjs_shims();
|
|
140906
140897
|
import { createRequire as createRequire4 } from "node:module";
|
|
140907
140898
|
import path2 from "node:path";
|
|
140908
140899
|
import { readdir as readdir2 } from "node:fs/promises";
|
|
140909
140900
|
|
|
140910
|
-
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@10.0.
|
|
140901
|
+
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@10.0.1_@graphql-codegen+cli@5.0.4_graphql@16.10.0_react-dom@17.0.2_react@17.0.2/node_modules/@shopify/cli-hydrogen/dist/lib/remix-version-check.js
|
|
140911
140902
|
init_cjs_shims();
|
|
140912
140903
|
import { createRequire as createRequire3 } from "node:module";
|
|
140913
140904
|
var REQUIRED_REMIX_VERSION = "^2.16.1";
|
|
@@ -140946,7 +140937,7 @@ function getRemixPackageVersion(require22, name, root) {
|
|
|
140946
140937
|
return result;
|
|
140947
140938
|
}
|
|
140948
140939
|
|
|
140949
|
-
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@10.0.
|
|
140940
|
+
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@10.0.1_@graphql-codegen+cli@5.0.4_graphql@16.10.0_react-dom@17.0.2_react@17.0.2/node_modules/@shopify/cli-hydrogen/dist/lib/vite-config.js
|
|
140950
140941
|
init_cjs_shims();
|
|
140951
140942
|
async function hasViteConfig(root) {
|
|
140952
140943
|
return !!(await findFileWithExtension(root, "vite.config")).filepath;
|
|
@@ -141013,7 +141004,7 @@ function findOxygenPlugin(config) {
|
|
|
141013
141004
|
return findPlugin(config, "oxygen:main");
|
|
141014
141005
|
}
|
|
141015
141006
|
|
|
141016
|
-
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@10.0.
|
|
141007
|
+
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@10.0.1_@graphql-codegen+cli@5.0.4_graphql@16.10.0_react-dom@17.0.2_react@17.0.2/node_modules/@shopify/cli-hydrogen/dist/lib/remix-config.js
|
|
141017
141008
|
async function hasRemixConfigFile(root) {
|
|
141018
141009
|
return !!(await findFileWithExtension(root, "remix.config")).filepath;
|
|
141019
141010
|
}
|
|
@@ -141146,7 +141137,7 @@ async function assertEntryFileExists(root, fileRelative) {
|
|
|
141146
141137
|
}
|
|
141147
141138
|
}
|
|
141148
141139
|
|
|
141149
|
-
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@10.0.
|
|
141140
|
+
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@10.0.1_@graphql-codegen+cli@5.0.4_graphql@16.10.0_react-dom@17.0.2_react@17.0.2/node_modules/@shopify/cli-hydrogen/dist/lib/setups/routes/generate.js
|
|
141150
141141
|
var NO_LOCALE_PATTERNS = [/robots\.txt/], ROUTE_MAP = {
|
|
141151
141142
|
home: ["_index", "$"],
|
|
141152
141143
|
page: "pages*",
|
|
@@ -141354,7 +141345,7 @@ async function copyRouteTemplate({
|
|
|
141354
141345
|
adapter && (templateContent = replaceAdapters(templateContent, adapter)), typescript || (templateContent = await transpileFile(templateContent, templatePath)), templateContent = await formatCode(templateContent, formatOptions, routePath), await writeFile(routePath, templateContent);
|
|
141355
141346
|
}
|
|
141356
141347
|
|
|
141357
|
-
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@10.0.
|
|
141348
|
+
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@10.0.1_@graphql-codegen+cli@5.0.4_graphql@16.10.0_react-dom@17.0.2_react@17.0.2/node_modules/@shopify/cli-hydrogen/dist/lib/onboarding/common.js
|
|
141358
141349
|
var LANGUAGES = {
|
|
141359
141350
|
js: "JavaScript",
|
|
141360
141351
|
ts: "TypeScript"
|
|
@@ -141801,7 +141792,7 @@ function generateRandomName() {
|
|
|
141801
141792
|
])} ${geographicalFeature}`;
|
|
141802
141793
|
}
|
|
141803
141794
|
|
|
141804
|
-
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@10.0.
|
|
141795
|
+
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@10.0.1_@graphql-codegen+cli@5.0.4_graphql@16.10.0_react-dom@17.0.2_react@17.0.2/node_modules/@shopify/cli-hydrogen/dist/commands/hydrogen/link.js
|
|
141805
141796
|
var Link = class _Link extends base_command_default {
|
|
141806
141797
|
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.
|
|
141807
141798
|
|
|
@@ -141922,7 +141913,7 @@ async function createNewStorefront(root, session, storefronts) {
|
|
|
141922
141913
|
return storefront;
|
|
141923
141914
|
}
|
|
141924
141915
|
|
|
141925
|
-
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@10.0.
|
|
141916
|
+
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@10.0.1_@graphql-codegen+cli@5.0.4_graphql@16.10.0_react-dom@17.0.2_react@17.0.2/node_modules/@shopify/cli-hydrogen/dist/lib/graphql/admin/customer-application-update.js
|
|
141926
141917
|
init_cjs_shims();
|
|
141927
141918
|
var CUSTOMER_APPLICATION_URLS_REPLACE = `#graphql
|
|
141928
141919
|
mutation CustomerApplicationUrlsReplace($storefrontId: ID!, $urlsReplaceInput: HydrogenStorefrontCustomerApplicationUrlsReplaceInput!) {
|
|
@@ -141950,7 +141941,7 @@ async function replaceCustomerApplicationUrls(adminSession, storefrontId, urlsRe
|
|
|
141950
141941
|
return { success, userErrors };
|
|
141951
141942
|
}
|
|
141952
141943
|
|
|
141953
|
-
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@10.0.
|
|
141944
|
+
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@10.0.1_@graphql-codegen+cli@5.0.4_graphql@16.10.0_react-dom@17.0.2_react@17.0.2/node_modules/@shopify/cli-hydrogen/dist/commands/hydrogen/customer-account/push.js
|
|
141954
141945
|
var CustomerAccountPush = class _CustomerAccountPush extends base_command_default {
|
|
141955
141946
|
static description = "Push project configuration to admin";
|
|
141956
141947
|
static flags = {
|
|
@@ -142083,7 +142074,7 @@ async function getStorefrontId(root, storefrontIdFromFlag) {
|
|
|
142083
142074
|
}) ? (await getConfig(root)).storefront?.id : void 0;
|
|
142084
142075
|
}
|
|
142085
142076
|
|
|
142086
|
-
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@10.0.
|
|
142077
|
+
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@10.0.1_@graphql-codegen+cli@5.0.4_graphql@16.10.0_react-dom@17.0.2_react@17.0.2/node_modules/@shopify/cli-hydrogen/dist/lib/environment-variables.js
|
|
142087
142078
|
init_cjs_shims();
|
|
142088
142079
|
|
|
142089
142080
|
// ../cli-kit/dist/public/node/dot-env.js
|
|
@@ -142148,7 +142139,7 @@ function createDotEnvFileLine(key, value, quote2) {
|
|
|
142148
142139
|
return `${key}=${value}`;
|
|
142149
142140
|
}
|
|
142150
142141
|
|
|
142151
|
-
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@10.0.
|
|
142142
|
+
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@10.0.1_@graphql-codegen+cli@5.0.4_graphql@16.10.0_react-dom@17.0.2_react@17.0.2/node_modules/@shopify/cli-hydrogen/dist/lib/graphql/admin/pull-variables.js
|
|
142152
142143
|
init_cjs_shims();
|
|
142153
142144
|
var PullVariablesQuery = `#graphql
|
|
142154
142145
|
query PullVariables($id: ID!, $handle: String) {
|
|
@@ -142176,7 +142167,7 @@ async function getStorefrontEnvVariables(adminSession, storefrontId, envHandle)
|
|
|
142176
142167
|
return hydrogenStorefront;
|
|
142177
142168
|
}
|
|
142178
142169
|
|
|
142179
|
-
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@10.0.
|
|
142170
|
+
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@10.0.1_@graphql-codegen+cli@5.0.4_graphql@16.10.0_react-dom@17.0.2_react@17.0.2/node_modules/@shopify/cli-hydrogen/dist/lib/graphql/admin/list-environments.js
|
|
142180
142171
|
init_cjs_shims();
|
|
142181
142172
|
var ListEnvironmentsQuery = `#graphql
|
|
142182
142173
|
query ListStorefronts($id: ID!) {
|
|
@@ -142204,7 +142195,7 @@ async function getStorefrontEnvironments(adminSession, storefrontId) {
|
|
|
142204
142195
|
return hydrogenStorefront;
|
|
142205
142196
|
}
|
|
142206
142197
|
|
|
142207
|
-
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@10.0.
|
|
142198
|
+
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@10.0.1_@graphql-codegen+cli@5.0.4_graphql@16.10.0_react-dom@17.0.2_react@17.0.2/node_modules/@shopify/cli-hydrogen/dist/lib/common.js
|
|
142208
142199
|
init_cjs_shims();
|
|
142209
142200
|
function orderEnvironmentsBySafety(environments) {
|
|
142210
142201
|
return [
|
|
@@ -142245,7 +142236,7 @@ function environmentNotFound(criterion, value) {
|
|
|
142245
142236
|
);
|
|
142246
142237
|
}
|
|
142247
142238
|
|
|
142248
|
-
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@10.0.
|
|
142239
|
+
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@10.0.1_@graphql-codegen+cli@5.0.4_graphql@16.10.0_react-dom@17.0.2_react@17.0.2/node_modules/@shopify/cli-hydrogen/dist/lib/environment-variables.js
|
|
142249
142240
|
var createEmptyRemoteVars = () => ({
|
|
142250
142241
|
remoteVariables: {},
|
|
142251
142242
|
remoteSecrets: {}
|
|
@@ -142316,7 +142307,7 @@ async function getLocalVariables(root, envFile) {
|
|
|
142316
142307
|
);
|
|
142317
142308
|
}
|
|
142318
142309
|
|
|
142319
|
-
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@10.0.
|
|
142310
|
+
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@10.0.1_@graphql-codegen+cli@5.0.4_graphql@16.10.0_react-dom@17.0.2_react@17.0.2/node_modules/@shopify/cli-hydrogen/dist/lib/tunneling.js
|
|
142320
142311
|
init_cjs_shims();
|
|
142321
142312
|
async function startTunnelPlugin(config, port, provider) {
|
|
142322
142313
|
let hooks = await fanoutHooks(config, "tunnel_start", { port, provider }), first2 = Object.values(hooks).filter(
|
|
@@ -142347,7 +142338,7 @@ async function pollTunnelURL(tunnelClient) {
|
|
|
142347
142338
|
});
|
|
142348
142339
|
}
|
|
142349
142340
|
|
|
142350
|
-
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@10.0.
|
|
142341
|
+
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@10.0.1_@graphql-codegen+cli@5.0.4_graphql@16.10.0_react-dom@17.0.2_react@17.0.2/node_modules/@shopify/cli-hydrogen/dist/lib/dev-shared.js
|
|
142351
142342
|
function isMockShop(envVariables) {
|
|
142352
142343
|
return envVariables.PUBLIC_STORE_DOMAIN === "mock.shop" || // We fallback to mock.shop if the env var is falsy.
|
|
142353
142344
|
// When it's undefined, it might be overwritten by remote variables.
|
|
@@ -142439,7 +142430,6 @@ export {
|
|
|
142439
142430
|
require_ignore,
|
|
142440
142431
|
initializeGitRepository,
|
|
142441
142432
|
checkIfIgnoredInGitRepository,
|
|
142442
|
-
addToGitIgnore,
|
|
142443
142433
|
downloadGitRepository,
|
|
142444
142434
|
getLatestGitCommit,
|
|
142445
142435
|
ensureInsideGitDirectory,
|
|
@@ -142568,4 +142558,4 @@ export {
|
|
|
142568
142558
|
getDebugBannerLine,
|
|
142569
142559
|
getUtilityBannerlines
|
|
142570
142560
|
};
|
|
142571
|
-
//# sourceMappingURL=chunk-
|
|
142561
|
+
//# sourceMappingURL=chunk-MLGPNWXX.js.map
|