@shopify/cli 3.65.1 → 3.65.3

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.
Files changed (122) hide show
  1. package/dist/assets/hydrogen/i18n/domains.ts +4 -11
  2. package/dist/assets/hydrogen/i18n/mock-i18n-types.ts +4 -2
  3. package/dist/assets/hydrogen/i18n/subdomains.ts +4 -11
  4. package/dist/assets/hydrogen/i18n/subfolders.ts +4 -11
  5. package/dist/assets/hydrogen/starter/CHANGELOG.md +165 -0
  6. package/dist/assets/hydrogen/starter/app/components/CartLineItem.tsx +5 -2
  7. package/dist/assets/hydrogen/starter/app/components/CartMain.tsx +2 -2
  8. package/dist/assets/hydrogen/starter/app/components/PageLayout.tsx +65 -19
  9. package/dist/assets/hydrogen/starter/app/components/PaginatedResourceSection.tsx +42 -0
  10. package/dist/assets/hydrogen/starter/app/components/SearchForm.tsx +68 -0
  11. package/dist/assets/hydrogen/starter/app/components/SearchFormPredictive.tsx +76 -0
  12. package/dist/assets/hydrogen/starter/app/components/SearchResults.tsx +164 -0
  13. package/dist/assets/hydrogen/starter/app/components/SearchResultsPredictive.tsx +322 -0
  14. package/dist/assets/hydrogen/starter/app/entry.client.tsx +10 -8
  15. package/dist/assets/hydrogen/starter/app/entry.server.tsx +1 -1
  16. package/dist/assets/hydrogen/starter/app/lib/context.ts +43 -0
  17. package/dist/assets/hydrogen/starter/app/lib/fragments.ts +53 -0
  18. package/dist/assets/hydrogen/starter/app/lib/search.ts +74 -24
  19. package/dist/assets/hydrogen/starter/app/root.tsx +4 -7
  20. package/dist/assets/hydrogen/starter/app/routes/account.addresses.tsx +2 -3
  21. package/dist/assets/hydrogen/starter/app/routes/account.orders._index.tsx +5 -19
  22. package/dist/assets/hydrogen/starter/app/routes/blogs.$blogHandle._index.tsx +11 -24
  23. package/dist/assets/hydrogen/starter/app/routes/blogs._index.tsx +14 -27
  24. package/dist/assets/hydrogen/starter/app/routes/collections.$handle.tsx +12 -30
  25. package/dist/assets/hydrogen/starter/app/routes/collections._index.tsx +13 -27
  26. package/dist/assets/hydrogen/starter/app/routes/collections.all.tsx +9 -31
  27. package/dist/assets/hydrogen/starter/app/routes/search.tsx +312 -73
  28. package/dist/assets/hydrogen/starter/app/styles/reset.css +12 -2
  29. package/dist/assets/hydrogen/starter/env.d.ts +11 -30
  30. package/dist/assets/hydrogen/starter/guides/predictiveSearch/predictiveSearch.jpg +0 -0
  31. package/dist/assets/hydrogen/starter/guides/predictiveSearch/predictiveSearch.md +391 -0
  32. package/dist/assets/hydrogen/starter/guides/search/search.jpg +0 -0
  33. package/dist/assets/hydrogen/starter/guides/search/search.md +333 -0
  34. package/dist/assets/hydrogen/starter/package.json +4 -4
  35. package/dist/assets/hydrogen/starter/server.ts +18 -74
  36. package/dist/assets/hydrogen/starter/storefrontapi.generated.d.ts +242 -172
  37. package/dist/assets/hydrogen/virtual-routes/components/{PageLayout.jsx → Layout.jsx} +2 -2
  38. package/dist/assets/hydrogen/virtual-routes/virtual-root.jsx +7 -6
  39. package/dist/{chunk-H42RFZDD.js → chunk-3ABSSTBQ.js} +4 -4
  40. package/dist/{chunk-M7WMYV4S.js → chunk-3D4VZQOH.js} +2 -2
  41. package/dist/{chunk-J7BYFGNJ.js → chunk-3GSKXZGY.js} +2 -2
  42. package/dist/{chunk-TDWX3KIR.js → chunk-3LDWVYMD.js} +2 -2
  43. package/dist/{chunk-N2BXKOJG.js → chunk-646BIVHE.js} +4 -4
  44. package/dist/{chunk-CZ3SHYYH.js → chunk-7WAEFADN.js} +4 -4
  45. package/dist/{chunk-EKT2GUGH.js → chunk-7WGBIPDW.js} +2 -2
  46. package/dist/{chunk-M6KGRVDD.js → chunk-AX77SAMU.js} +3 -3
  47. package/dist/{chunk-4HAEQQTQ.js → chunk-BQBBVYYU.js} +4 -4
  48. package/dist/{chunk-5YD4FDOS.js → chunk-BZLNTDGG.js} +3 -3
  49. package/dist/{chunk-VWALMO2Z.js → chunk-CSCEGIBZ.js} +3 -3
  50. package/dist/{chunk-F2Y7KYHZ.js → chunk-EIUQV76I.js} +5 -5
  51. package/dist/{chunk-MODBIZ4R.js → chunk-GN74L7IW.js} +2 -2
  52. package/dist/{chunk-5EAVIJTQ.js → chunk-HYCRESCR.js} +2 -2
  53. package/dist/{chunk-GDARYUPU.js → chunk-K7KD247K.js} +188 -243
  54. package/dist/{chunk-PZM45AUI.js → chunk-KIUXMPTX.js} +3 -3
  55. package/dist/{chunk-PYMSCBPA.js → chunk-LAJ4OEME.js} +2 -2
  56. package/dist/{chunk-YVHV3H5H.js → chunk-MIQBXNSN.js} +4 -4
  57. package/dist/{chunk-BLKDGMHM.js → chunk-MV6A3QHA.js} +4 -4
  58. package/dist/{chunk-CFFAWVDL.js → chunk-N3YORLAS.js} +2 -2
  59. package/dist/{chunk-EU5ZOEUT.js → chunk-NBTEOGQW.js} +2 -2
  60. package/dist/{chunk-ZXJU6UP4.js → chunk-O3JOUAA5.js} +4 -4
  61. package/dist/{chunk-EZ5DG73H.js → chunk-PEAIOYXD.js} +4 -4
  62. package/dist/{chunk-YDS7NZBQ.js → chunk-R5GT4GBL.js} +4 -4
  63. package/dist/{chunk-6M65VRAT.js → chunk-S7FJTFYR.js} +5 -5
  64. package/dist/{chunk-DX2RXOQ5.js → chunk-S7RH664J.js} +3 -3
  65. package/dist/{chunk-WMECC32P.js → chunk-SKF2SKWO.js} +3 -3
  66. package/dist/{chunk-27HGZPUX.js → chunk-SMKCVFDT.js} +3 -3
  67. package/dist/{chunk-EID6L4PR.js → chunk-T4Y7NDNJ.js} +2 -2
  68. package/dist/{chunk-PY33KMCK.js → chunk-TWWJNMTO.js} +2 -2
  69. package/dist/{chunk-YXPGPWR2.js → chunk-U2PN6QZ2.js} +5 -5
  70. package/dist/{chunk-3REVOIEW.js → chunk-UBCH575K.js} +5 -5
  71. package/dist/{chunk-A4NQWDPT.js → chunk-XLURAR5E.js} +3 -3
  72. package/dist/{chunk-ZZKUI3DP.js → chunk-YPG7LXPN.js} +3 -3
  73. package/dist/cli/commands/auth/logout.js +10 -10
  74. package/dist/cli/commands/auth/logout.test.js +11 -11
  75. package/dist/cli/commands/debug/command-flags.js +9 -9
  76. package/dist/cli/commands/demo/catalog.js +10 -10
  77. package/dist/cli/commands/demo/generate-file.js +10 -10
  78. package/dist/cli/commands/demo/index.js +10 -10
  79. package/dist/cli/commands/demo/print-ai-prompt.js +10 -10
  80. package/dist/cli/commands/docs/generate.js +9 -9
  81. package/dist/cli/commands/docs/generate.test.js +9 -9
  82. package/dist/cli/commands/help.js +9 -9
  83. package/dist/cli/commands/kitchen-sink/async.js +10 -10
  84. package/dist/cli/commands/kitchen-sink/async.test.js +10 -10
  85. package/dist/cli/commands/kitchen-sink/index.js +12 -12
  86. package/dist/cli/commands/kitchen-sink/index.test.js +12 -12
  87. package/dist/cli/commands/kitchen-sink/prompts.js +10 -10
  88. package/dist/cli/commands/kitchen-sink/prompts.test.js +10 -10
  89. package/dist/cli/commands/kitchen-sink/static.js +10 -10
  90. package/dist/cli/commands/kitchen-sink/static.test.js +10 -10
  91. package/dist/cli/commands/search.js +10 -10
  92. package/dist/cli/commands/upgrade.js +9 -9
  93. package/dist/cli/commands/version.js +10 -10
  94. package/dist/cli/commands/version.test.js +10 -10
  95. package/dist/cli/services/commands/search.js +2 -2
  96. package/dist/cli/services/commands/search.test.js +2 -2
  97. package/dist/cli/services/commands/version.js +4 -4
  98. package/dist/cli/services/commands/version.test.js +5 -5
  99. package/dist/cli/services/demo.js +2 -2
  100. package/dist/cli/services/demo.test.js +2 -2
  101. package/dist/cli/services/kitchen-sink/async.js +2 -2
  102. package/dist/cli/services/kitchen-sink/prompts.js +2 -2
  103. package/dist/cli/services/kitchen-sink/static.js +2 -2
  104. package/dist/cli/services/upgrade.js +3 -3
  105. package/dist/cli/services/upgrade.test.js +5 -5
  106. package/dist/{custom-oclif-loader-JHNX2EGV.js → custom-oclif-loader-BT7EH2NN.js} +3 -3
  107. package/dist/{error-handler-4UJ6363X.js → error-handler-OSEY6KVA.js} +8 -8
  108. package/dist/hooks/postrun.js +6 -6
  109. package/dist/hooks/prerun.js +4 -4
  110. package/dist/index.js +1333 -1279
  111. package/dist/{local-V7RONWNU.js → local-OQXN5NM2.js} +2 -2
  112. package/dist/{morph-DN4AZJZW.js → morph-IQTWRBBT.js} +16 -12
  113. package/dist/{node-3H4OKRLA.js → node-YQVH3Y7J.js} +13 -13
  114. package/dist/{node-package-manager-XM7EXHQA.js → node-package-manager-VW2DN7R4.js} +3 -3
  115. package/dist/{system-F63VIZ5U.js → system-347PZWVP.js} +2 -2
  116. package/dist/tsconfig.tsbuildinfo +1 -1
  117. package/dist/{ui-BXWWRIFS.js → ui-S7L55PBH.js} +2 -2
  118. package/dist/{workerd-A5NCF6UA.js → workerd-OLKE7G4X.js} +12 -12
  119. package/oclif.manifest.json +39 -2
  120. package/package.json +7 -7
  121. package/dist/assets/hydrogen/starter/app/components/Search.tsx +0 -514
  122. package/dist/assets/hydrogen/starter/app/routes/api.predictive-search.tsx +0 -318
@@ -7,13 +7,13 @@ import {
7
7
  handleDeprecations,
8
8
  logout,
9
9
  normalizeStoreFqdn
10
- } from "./chunk-YXPGPWR2.js";
10
+ } from "./chunk-U2PN6QZ2.js";
11
11
  import {
12
12
  base_command_default
13
- } from "./chunk-EZ5DG73H.js";
13
+ } from "./chunk-PEAIOYXD.js";
14
14
  import {
15
15
  fanoutHooks
16
- } from "./chunk-3REVOIEW.js";
16
+ } from "./chunk-UBCH575K.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-J7BYFGNJ.js";
24
+ } from "./chunk-3GSKXZGY.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-EID6L4PR.js";
62
+ } from "./chunk-T4Y7NDNJ.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@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
155557
+ // ../../node_modules/.pnpm/@shopify+cli-hydrogen@8.4.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@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
155561
+ // ../../node_modules/.pnpm/@shopify+cli-hydrogen@8.4.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@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
155564
+ // ../../node_modules/.pnpm/@shopify+cli-hydrogen@8.4.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@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
155567
+ // ../../node_modules/.pnpm/@shopify+cli-hydrogen@8.4.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@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
155571
+ // ../../node_modules/.pnpm/@shopify+cli-hydrogen@8.4.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@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
155588
+ // ../../node_modules/.pnpm/@shopify+cli-hydrogen@8.4.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@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
155650
+ // ../../node_modules/.pnpm/@shopify+cli-hydrogen@8.4.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@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
155694
+ // ../../node_modules/.pnpm/@shopify+cli-hydrogen@8.4.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@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
155697
+ // ../../node_modules/.pnpm/@shopify+cli-hydrogen@8.4.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@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
155701
+ // ../../node_modules/.pnpm/@shopify+cli-hydrogen@8.4.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@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
155728
+ // ../../node_modules/.pnpm/@shopify+cli-hydrogen@8.4.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@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
155833
+ // ../../node_modules/.pnpm/@shopify+cli-hydrogen@8.4.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@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
155836
+ // ../../node_modules/.pnpm/@shopify+cli-hydrogen@8.4.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@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
155846
+ // ../../node_modules/.pnpm/@shopify+cli-hydrogen@8.4.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) {
@@ -155856,8 +155856,8 @@ async function replaceRootLinks(appDirectory, formatConfig, importer) {
155856
155856
  }
155857
155857
  const astGrep = await importLangAstGrep(astType);
155858
155858
  const root = astGrep.parse(content).root();
155859
- const importNodes = root.findAll({ rule: { kind: "import_statement" } });
155860
- const lastImportNode = importNodes.findLast((node) => node.text().includes(".css")) || importNodes.pop();
155859
+ const importNodes = root.findAll({ rule: { kind: "import_statement" } }).reverse();
155860
+ const lastImportNode = importNodes.find((node) => node.text().includes(".css")) || importNodes.shift();
155861
155861
  const linksReturnNode = root.find({
155862
155862
  utils: {
155863
155863
  "has-links-id": {
@@ -155977,7 +155977,7 @@ var vitePluginListRule = {
155977
155977
  }
155978
155978
  };
155979
155979
 
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
155980
+ // ../../node_modules/.pnpm/@shopify+cli-hydrogen@8.4.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@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
156018
+ // ../../node_modules/.pnpm/@shopify+cli-hydrogen@8.4.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@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
156040
+ // ../../node_modules/.pnpm/@shopify+cli-hydrogen@8.4.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@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
156087
+ // ../../node_modules/.pnpm/@shopify+cli-hydrogen@8.4.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@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
156090
+ // ../../node_modules/.pnpm/@shopify+cli-hydrogen@8.4.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@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
156093
+ // ../../node_modules/.pnpm/@shopify+cli-hydrogen@8.4.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@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
156096
+ // ../../node_modules/.pnpm/@shopify+cli-hydrogen@8.4.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-DN4AZJZW.js");
156099
+ const { transpileTs } = await import("./morph-IQTWRBBT.js");
156100
156100
  return transpileTs(code, filepath, keepTypes);
156101
156101
  }
156102
156102
 
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
156103
+ // ../../node_modules/.pnpm/@shopify+cli-hydrogen@8.4.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,
@@ -156234,12 +156234,22 @@ async function transpileProject(projectDir, keepTypes = true) {
156234
156234
  }
156235
156235
  }
156236
156236
 
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
156238
- async function replaceServerI18n({ rootDirectory, serverEntryPoint = "server" }, formatConfig, localeExtractImpl, isJs) {
156239
- const { filepath, astType } = await findEntryFile({
156237
+ // ../../node_modules/.pnpm/@shopify+cli-hydrogen@8.4.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
156238
+ async function replaceContextI18n({
156239
+ rootDirectory,
156240
+ contextCreate = joinPath("app", "lib", "context.ts")
156241
+ }, formatConfig, i18nStrategyFilePath) {
156242
+ const createContextMethodName = "createAppLoadContext";
156243
+ const { filepath, astType } = await findContextCreateFile({
156240
156244
  rootDirectory,
156241
- serverEntryPoint
156245
+ contextCreate
156242
156246
  });
156247
+ const localeExtractImpl = await readFile(i18nStrategyFilePath);
156248
+ const i18nFileFinalPath = await replaceI18nStrategy(
156249
+ { rootDirectory, contextCreate },
156250
+ formatConfig,
156251
+ i18nStrategyFilePath
156252
+ );
156243
156253
  await replaceFileContent(filepath, formatConfig, async (content) => {
156244
156254
  const astGrep = await importLangAstGrep(astType);
156245
156255
  const root = astGrep.parse(content).root();
@@ -156250,15 +156260,11 @@ async function replaceServerI18n({ rootDirectory, serverEntryPoint = "server" },
156250
156260
  kind: "formal_parameters",
156251
156261
  stopBy: "end",
156252
156262
  inside: {
156253
- kind: "method_definition",
156263
+ kind: "function_declaration",
156254
156264
  stopBy: "end",
156255
156265
  has: {
156256
- kind: "property_identifier",
156257
- regex: "^fetch$"
156258
- },
156259
- inside: {
156260
- kind: "export_statement",
156261
- stopBy: "end"
156266
+ kind: "identifier",
156267
+ regex: `^${createContextMethodName}$`
156262
156268
  }
156263
156269
  }
156264
156270
  }
@@ -156273,7 +156279,7 @@ async function replaceServerI18n({ rootDirectory, serverEntryPoint = "server" },
156273
156279
  }
156274
156280
  const i18nFunctionCall = `${i18nFunctionName}(${requestIdentifierName})`;
156275
156281
  const hydrogenImportPath = "@shopify/hydrogen";
156276
- const hydrogenImportName = "createStorefrontClient";
156282
+ const hydrogenImportName = "createHydrogenContext";
156277
156283
  const importSpecifier = root.find({
156278
156284
  rule: {
156279
156285
  kind: "import_specifier",
@@ -156297,7 +156303,7 @@ async function replaceServerI18n({ rootDirectory, serverEntryPoint = "server" },
156297
156303
  importName = importAlias ?? importName;
156298
156304
  if (!importName) {
156299
156305
  throw new AbortError(
156300
- `Could not find a Hydrogen import in ${serverEntryPoint}`,
156306
+ `Could not find a Hydrogen import in ${contextCreate}`,
156301
156307
  `Please import "${hydrogenImportName}" from "${hydrogenImportPath}"`
156302
156308
  );
156303
156309
  }
@@ -156318,40 +156324,10 @@ async function replaceServerI18n({ rootDirectory, serverEntryPoint = "server" },
156318
156324
  });
156319
156325
  if (!argumentObject) {
156320
156326
  throw new AbortError(
156321
- `Could not find a Hydrogen client instantiation with an inline object as argument in ${serverEntryPoint}`,
156327
+ `Could not find a Hydrogen client instantiation with an inline object as argument in ${contextCreate}`,
156322
156328
  `Please add a call to ${importName}({...})`
156323
156329
  );
156324
156330
  }
156325
- const defaultExportObject = root.find({
156326
- rule: {
156327
- kind: "export_statement",
156328
- regex: "^export default \\{"
156329
- }
156330
- });
156331
- if (!defaultExportObject) {
156332
- throw new AbortError(
156333
- "Could not find a default export in the server entry point"
156334
- );
156335
- }
156336
- let localeExtractFn = localeExtractImpl.match(/^(\/\*\*.*?\*\/\n)?^function .+?^}/ms)?.[0] || "";
156337
- if (!localeExtractFn) {
156338
- throw new AbortError(
156339
- "Could not find the locale extract function. This is a bug in Hydrogen."
156340
- );
156341
- }
156342
- if (isJs) {
156343
- localeExtractFn = await transpileFile(
156344
- localeExtractFn,
156345
- "locale-extract-server.ts"
156346
- );
156347
- } else {
156348
- localeExtractFn = localeExtractFn.replace(/\/\*\*.*?\*\//gms, "");
156349
- }
156350
- const defaultExportEnd = defaultExportObject.range().end.index;
156351
- content = content.slice(0, defaultExportEnd) + `
156352
-
156353
- ${localeExtractFn}
156354
- ` + content.slice(defaultExportEnd);
156355
156331
  const i18nProperty = argumentObject.find({
156356
156332
  rule: {
156357
156333
  kind: "property_identifier",
@@ -156373,113 +156349,64 @@ ${localeExtractFn}
156373
156349
  const firstPart = content.slice(0, end.index - 1);
156374
156350
  content = firstPart + ((/,\s*$/.test(firstPart) ? "" : ",") + `i18n: ${i18nFunctionCall}`) + content.slice(end.index - 1);
156375
156351
  }
156352
+ const lastImport = root.findAll({ rule: { kind: "import_statement" } }).pop();
156353
+ const lastImportRange = lastImport?.range() ?? {
156354
+ end: { index: 0 }
156355
+ };
156356
+ const i18nFunctionImport = joinPath(
156357
+ "~",
156358
+ relativePath(
156359
+ joinPath(rootDirectory, "app"),
156360
+ i18nFileFinalPath.slice(0, -extname(i18nFileFinalPath).length)
156361
+ )
156362
+ );
156363
+ content = content.slice(0, lastImportRange.end.index) + `import {getLocaleFromRequest} from "${i18nFunctionImport}";` + content.slice(lastImportRange.end.index);
156376
156364
  return content;
156377
156365
  });
156378
156366
  }
156379
- async function replaceRemixEnv({ rootDirectory }, formatConfig, localeExtractImpl) {
156380
- let envPath = joinPath(rootDirectory, "env.d.ts");
156381
- if (!await fileExists(envPath)) {
156382
- envPath = "remix.env.d.ts";
156383
- if (!await fileExists(envPath)) {
156384
- return;
156385
- }
156386
- }
156387
- const i18nType = localeExtractImpl.match(
156388
- /^(export )?(type \w+ =\s+\{.*?\};)\n/ms
156389
- )?.[2];
156390
- const i18nTypeName = i18nType?.match(/^type (\w+)/)?.[1];
156391
- if (!i18nTypeName) {
156392
- return;
156367
+ async function replaceI18nStrategy({
156368
+ rootDirectory,
156369
+ contextCreate = joinPath("app", "lib", "context.ts")
156370
+ }, formatConfig, i18nStrategyFilePath) {
156371
+ const isJs = contextCreate?.endsWith(".js") || false;
156372
+ const i18nPath = joinPath(
156373
+ rootDirectory,
156374
+ dirname(contextCreate),
156375
+ isJs ? "i18n.js" : "i18n.ts"
156376
+ );
156377
+ if (await fileExists(i18nPath)) {
156378
+ throw new AbortError(
156379
+ `${i18nPath} already exist. Renamed or remove the existing file before continue.`
156380
+ );
156393
156381
  }
156394
- await replaceFileContent(envPath, formatConfig, async (content) => {
156395
- if (content.includes(`Storefront<`))
156396
- return;
156397
- const astGrep = await importLangAstGrep("ts");
156398
- const root = astGrep.parse(content).root();
156399
- const storefrontTypeNode = root.find({
156400
- rule: {
156401
- kind: "property_signature",
156402
- has: {
156403
- kind: "type_annotation",
156404
- has: {
156405
- regex: "^Storefront$"
156406
- }
156407
- },
156408
- inside: {
156409
- kind: "interface_declaration",
156410
- stopBy: "end",
156411
- regex: "AppLoadContext"
156412
- }
156413
- }
156414
- });
156415
- if (storefrontTypeNode) {
156416
- const storefrontTypeNodeRange = storefrontTypeNode.range();
156417
- content = content.slice(0, storefrontTypeNodeRange.end.index) + `<${i18nTypeName}>` + content.slice(storefrontTypeNodeRange.end.index);
156418
- }
156419
- const ambientDeclarationContentNode = root.find({
156420
- rule: {
156421
- kind: "statement_block",
156422
- inside: {
156423
- kind: "ambient_declaration"
156424
- }
156425
- }
156426
- });
156427
- const i18nTypeDeclaration = `
156428
- /**
156429
- * The I18nLocale used for Storefront API query context.
156430
- */
156431
- ${i18nType}`;
156432
- if (ambientDeclarationContentNode) {
156433
- const { end } = ambientDeclarationContentNode.range();
156434
- content = content.slice(0, end.index - 1) + `
156435
-
156436
- ${i18nTypeDeclaration}
156437
- ` + content.slice(end.index - 1);
156438
- } else {
156439
- content = content + `
156440
-
156441
- declare global {
156442
- ${i18nTypeDeclaration}
156443
- }`;
156444
- }
156445
- const importImplTypes = localeExtractImpl.match(
156446
- /import\s+type\s+[^;]+?;/
156447
- )?.[0];
156448
- if (importImplTypes) {
156449
- const importPlace = root.findAll({
156450
- rule: {
156451
- kind: "import_statement",
156452
- has: {
156453
- kind: "string_fragment",
156454
- stopBy: "end",
156455
- regex: `^@shopify/hydrogen$`
156456
- }
156457
- }
156458
- }).pop() ?? root.findAll({ rule: { kind: "import_statement" } }).pop() ?? root.findAll({ rule: { kind: "comment", regex: "^/// <reference" } }).pop();
156459
- const importPlaceRange = importPlace?.range() ?? { end: { index: 0 } };
156460
- content = content.slice(0, importPlaceRange.end.index) + importImplTypes.replace(
156461
- /'[^']+'/,
156462
- `'@shopify/hydrogen/storefront-api-types'`
156463
- ) + content.slice(importPlaceRange.end.index);
156382
+ await copyFile(i18nStrategyFilePath, i18nPath);
156383
+ await replaceFileContent(i18nPath, formatConfig, async (content) => {
156384
+ content = content.replace(/\.\/mock-i18n-types\.js/, "@shopify/hydrogen");
156385
+ if (isJs) {
156386
+ content = await transpileFile(content, i18nStrategyFilePath);
156464
156387
  }
156465
156388
  return content;
156466
156389
  });
156390
+ return i18nPath;
156467
156391
  }
156468
- async function findEntryFile({
156392
+ async function findContextCreateFile({
156469
156393
  rootDirectory,
156470
- serverEntryPoint = "server"
156394
+ contextCreate = joinPath("app", "lib", "context.ts")
156471
156395
  }) {
156472
- const match = serverEntryPoint.match(/\.([jt]sx?)$/)?.[1];
156473
- const { filepath, astType } = match ? { filepath: resolvePath(rootDirectory, serverEntryPoint), astType: match } : await findFileWithExtension(rootDirectory, serverEntryPoint);
156396
+ const match = contextCreate.match(/\.([jt]sx?)$/)?.[1];
156397
+ const { filepath, astType } = match ? { filepath: resolvePath(rootDirectory, contextCreate), astType: match } : await findFileWithExtension(rootDirectory, joinPath(contextCreate));
156474
156398
  if (!filepath || !astType) {
156475
156399
  throw new AbortError(
156476
- `Could not find a server entry point at ${serverEntryPoint}`
156400
+ `Could not find a context create file at ${resolvePath(
156401
+ rootDirectory,
156402
+ contextCreate
156403
+ )}`
156477
156404
  );
156478
156405
  }
156479
156406
  return { filepath, astType };
156480
156407
  }
156481
156408
 
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
156409
+ // ../../node_modules/.pnpm/@shopify+cli-hydrogen@8.4.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
156483
156410
  var SETUP_I18N_STRATEGIES = [
156484
156411
  "subfolders",
156485
156412
  "domains",
@@ -156496,11 +156423,8 @@ async function setupI18nStrategy(strategy, options) {
156496
156423
  if (!await fileExists(templatePath)) {
156497
156424
  throw new Error("Unknown strategy");
156498
156425
  }
156499
- const template = await readFile(templatePath);
156500
156426
  const formatConfig = await getCodeFormatOptions(options.rootDirectory);
156501
- const isJs = options.serverEntryPoint?.endsWith(".js") ?? false;
156502
- await replaceServerI18n(options, formatConfig, template, isJs);
156503
- await replaceRemixEnv(options, formatConfig, template);
156427
+ await replaceContextI18n(options, formatConfig, templatePath);
156504
156428
  }
156505
156429
  async function renderI18nPrompt(options) {
156506
156430
  const i18nStrategies = Object.entries({
@@ -156517,7 +156441,7 @@ async function renderI18nPrompt(options) {
156517
156441
  });
156518
156442
  }
156519
156443
 
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
156444
+ // ../../node_modules/.pnpm/@shopify+cli-hydrogen@8.4.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
156521
156445
  var DEFAULT_APP_PORT = 3e3;
156522
156446
  var DEFAULT_INSPECTOR_PORT = 9229;
156523
156447
  var commonFlags = {
@@ -156580,6 +156504,13 @@ var commonFlags = {
156580
156504
  }
156581
156505
  })
156582
156506
  },
156507
+ envFile: {
156508
+ "env-file": import_core.Flags.string({
156509
+ description: "Path to an environment file to override existing environment variables. Defaults to the '.env' located in your project path `--path`.",
156510
+ required: false,
156511
+ default: ".env"
156512
+ })
156513
+ },
156583
156514
  sourcemap: {
156584
156515
  sourcemap: import_core.Flags.boolean({
156585
156516
  description: "Controls whether sourcemaps are generated. Default to `true`. Deactivate `--no-sourcemaps`.",
@@ -156730,7 +156661,7 @@ function overrideFlag(flags, extra) {
156730
156661
  );
156731
156662
  }
156732
156663
 
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
156664
+ // ../../node_modules/.pnpm/@shopify+cli-hydrogen@8.4.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
156734
156665
  init_cjs_shims();
156735
156666
  import { createRequire } from "node:module";
156736
156667
  import { pathToFileURL } from "node:url";
@@ -156756,13 +156687,13 @@ function importLocal(packageName, path3) {
156756
156687
  return import(pathToFileURL(realPath).href);
156757
156688
  }
156758
156689
 
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
156690
+ // ../../node_modules/.pnpm/@shopify+cli-hydrogen@8.4.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
156760
156691
  init_cjs_shims();
156761
156692
  import path from "node:path";
156762
156693
  import { EventEmitter } from "node:events";
156763
156694
  import { ReadableStream } from "node:stream/web";
156764
156695
 
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
156696
+ // ../../node_modules/.pnpm/@shopify+cli-hydrogen@8.4.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
156766
156697
  init_cjs_shims();
156767
156698
  function getGraphiQLUrl({
156768
156699
  host = "",
@@ -156781,7 +156712,7 @@ function getGraphiQLUrl({
156781
156712
  return url;
156782
156713
  }
156783
156714
 
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
156715
+ // ../../node_modules/.pnpm/@shopify+cli-hydrogen@8.4.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
156785
156716
  var import_source_map_support = __toESM(require_source_map_support(), 1);
156786
156717
  var H2O_BINDING_NAME = "H2O_LOG_EVENT";
156787
156718
  var ResponseConstructor;
@@ -156919,7 +156850,7 @@ function handleDebugNetworkRequest(request) {
156919
156850
  return request.method === "DELETE" ? clearHistory() : streamRequestEvents(request);
156920
156851
  }
156921
156852
 
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
156853
+ // ../../node_modules/.pnpm/@shopify+cli-hydrogen@8.4.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
156923
156854
  init_cjs_shims();
156924
156855
  var SUBREQUEST_PROFILER_ENDPOINT = "/debug-network-server";
156925
156856
  function handleMiniOxygenImportFail() {
@@ -156960,21 +156891,21 @@ function logRequestLine({
156960
156891
  }
156961
156892
  }
156962
156893
 
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
156894
+ // ../../node_modules/.pnpm/@shopify+cli-hydrogen@8.4.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
156964
156895
  init_cjs_shims();
156965
156896
 
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
156897
+ // ../../node_modules/.pnpm/@shopify+cli-hydrogen@8.4.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
156967
156898
  init_cjs_shims();
156968
156899
  var import_core3 = __toESM(require_lib(), 1);
156969
156900
 
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
156901
+ // ../../node_modules/.pnpm/@shopify+cli-hydrogen@8.4.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
156971
156902
  init_cjs_shims();
156972
156903
  var import_core2 = __toESM(require_lib(), 1);
156973
156904
 
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
156905
+ // ../../node_modules/.pnpm/@shopify+cli-hydrogen@8.4.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
156975
156906
  init_cjs_shims();
156976
156907
 
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
156908
+ // ../../node_modules/.pnpm/@shopify+cli-hydrogen@8.4.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
156978
156909
  init_cjs_shims();
156979
156910
  async function adminRequest(query, session, variables) {
156980
156911
  const api = "Admin";
@@ -157017,7 +156948,7 @@ async function adminRequest(query, session, variables) {
157017
156948
  }
157018
156949
  }
157019
156950
 
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
156951
+ // ../../node_modules/.pnpm/@shopify+cli-hydrogen@8.4.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
157021
156952
  init_cjs_shims();
157022
156953
  var GID_REGEXP = /gid:\/\/shopify\/\w*\/(\d+)/;
157023
156954
  function parseGid(gid) {
@@ -157028,7 +156959,7 @@ function parseGid(gid) {
157028
156959
  throw new AbortError(`Invalid Global ID: ${gid}`);
157029
156960
  }
157030
156961
 
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
156962
+ // ../../node_modules/.pnpm/@shopify+cli-hydrogen@8.4.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
157032
156963
  var LinkStorefrontQuery = `#graphql
157033
156964
  query LinkStorefront {
157034
156965
  hydrogenStorefronts {
@@ -157049,7 +156980,7 @@ async function getStorefronts(adminSession) {
157049
156980
  }));
157050
156981
  }
157051
156982
 
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
156983
+ // ../../node_modules/.pnpm/@shopify+cli-hydrogen@8.4.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
157053
156984
  init_cjs_shims();
157054
156985
  var SHOPIFY_DIR = ".shopify";
157055
156986
  var SHOPIFY_DIR_PROJECT = "project.json";
@@ -157155,7 +157086,7 @@ async function setCustomerAccountConfig(root, customerAccountConfig) {
157155
157086
  }
157156
157087
  }
157157
157088
 
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
157089
+ // ../../node_modules/.pnpm/@shopify+cli-hydrogen@8.4.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
157159
157090
  init_cjs_shims();
157160
157091
  var CreateStorefrontMutation = `#graphql
157161
157092
  mutation CreateStorefront($title: String!) {
@@ -157189,7 +157120,7 @@ async function createStorefront(adminSession, title) {
157189
157120
  return { jobId, storefront: hydrogenStorefront };
157190
157121
  }
157191
157122
 
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
157123
+ // ../../node_modules/.pnpm/@shopify+cli-hydrogen@8.4.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
157193
157124
  init_cjs_shims();
157194
157125
  var FetchJobQuery = `#graphql
157195
157126
  query FetchJob($id: ID!) {
@@ -157227,7 +157158,7 @@ function waitForJob(adminSession, jobId) {
157227
157158
  });
157228
157159
  }
157229
157160
 
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
157161
+ // ../../node_modules/.pnpm/@shopify+cli-hydrogen@8.4.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
157231
157162
  init_cjs_shims();
157232
157163
  function titleize(name = "") {
157233
157164
  return name.replace(/[\W_]+/g, " ").split(" ").filter((word) => word.length > 0).map(
@@ -157235,7 +157166,7 @@ function titleize(name = "") {
157235
157166
  ).join(" ");
157236
157167
  }
157237
157168
 
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
157169
+ // ../../node_modules/.pnpm/@shopify+cli-hydrogen@8.4.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
157239
157170
  init_cjs_shims();
157240
157171
  import os from "node:os";
157241
157172
  var ALIAS_NAME = "h2";
@@ -157399,10 +157330,10 @@ async function getCliCommand(directory = process.cwd(), forcePkgManager) {
157399
157330
  return `${cli} shopify hydrogen`;
157400
157331
  }
157401
157332
 
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
157333
+ // ../../node_modules/.pnpm/@shopify+cli-hydrogen@8.4.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
157403
157334
  init_cjs_shims();
157404
157335
 
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
157336
+ // ../../node_modules/.pnpm/@shopify+cli-hydrogen@8.4.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
157406
157337
  init_cjs_shims();
157407
157338
 
157408
157339
  // ../cli-kit/dist/public/node/api/business-platform.js
@@ -157446,7 +157377,7 @@ async function businessPlatformOrganizationsRequest(query, token, organizationId
157446
157377
  });
157447
157378
  }
157448
157379
 
157449
- // ../../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
157380
+ // ../../node_modules/.pnpm/@shopify+cli-hydrogen@8.4.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
157450
157381
  var CurrentUserAccountQuery = `#graphql
157451
157382
  query currentUserAccount {
157452
157383
  currentUserAccount {
@@ -157526,7 +157457,7 @@ async function getUserAccount(token) {
157526
157457
  };
157527
157458
  }
157528
157459
 
157529
- // ../../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
157460
+ // ../../node_modules/.pnpm/@shopify+cli-hydrogen@8.4.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
157530
157461
  init_cjs_shims();
157531
157462
  var originalConsole = { ...console };
157532
157463
  var methodsReplaced = /* @__PURE__ */ new Set();
@@ -157721,16 +157652,10 @@ function enhanceAuthLogs(hideInitialLog = false) {
157721
157652
  return;
157722
157653
  }
157723
157654
  ],
157724
- [
157725
- ([first2]) => typeof first2 === "string" && first2.includes("Open this link to start the auth process"),
157726
- ([first2]) => {
157727
- return [first2.replace("\u{1F449} ", "").replace(": ", ":\n")];
157728
- }
157729
- ],
157730
157655
  [
157731
157656
  ([first2]) => typeof first2 === "string" && first2.includes("Logged in."),
157732
157657
  () => {
157733
- process.stdout.write(ansi_escapes_default.eraseLines(hideInitialLog ? 4 : 5));
157658
+ process.stdout.write(ansi_escapes_default.eraseLines(hideInitialLog ? 5 : 6));
157734
157659
  return;
157735
157660
  }
157736
157661
  ]
@@ -157875,7 +157800,7 @@ function isH2Verbose() {
157875
157800
  return !!(process.env.DEBUG === "*" || process.env.DEBUG?.includes("h2:*"));
157876
157801
  }
157877
157802
 
157878
- // ../../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
157803
+ // ../../node_modules/.pnpm/@shopify+cli-hydrogen@8.4.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
157879
157804
  async function logout2(root) {
157880
157805
  await logout();
157881
157806
  await resetConfig(root);
@@ -157928,7 +157853,7 @@ function renderLoginSuccess(config) {
157928
157853
  });
157929
157854
  }
157930
157855
 
157931
- // ../../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
157856
+ // ../../node_modules/.pnpm/@shopify+cli-hydrogen@8.4.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
157932
157857
  init_cjs_shims();
157933
157858
  import { symlink, readdir as readdir4 } from "node:fs/promises";
157934
157859
 
@@ -161945,11 +161870,11 @@ async function isClean(directory) {
161945
161870
  return (await esm_default({ baseDir: directory }).status()).isClean();
161946
161871
  }
161947
161872
 
161948
- // ../../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
161873
+ // ../../node_modules/.pnpm/@shopify+cli-hydrogen@8.4.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
161949
161874
  init_cjs_shims();
161950
161875
  import { readdir as readdir3 } from "node:fs/promises";
161951
161876
 
161952
- // ../../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
161877
+ // ../../node_modules/.pnpm/@shopify+cli-hydrogen@8.4.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
161953
161878
  init_cjs_shims();
161954
161879
  import { createRequire as createRequire2 } from "module";
161955
161880
  function convertRouteToV1(route) {
@@ -161965,13 +161890,13 @@ function isV1RouteConventionInstalled() {
161965
161890
  }
161966
161891
  }
161967
161892
 
161968
- // ../../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
161893
+ // ../../node_modules/.pnpm/@shopify+cli-hydrogen@8.4.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
161969
161894
  init_cjs_shims();
161970
161895
  import { createRequire as createRequire4 } from "node:module";
161971
161896
  import path2 from "node:path";
161972
161897
  import { readdir as readdir2 } from "node:fs/promises";
161973
161898
 
161974
- // ../../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
161899
+ // ../../node_modules/.pnpm/@shopify+cli-hydrogen@8.4.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
161975
161900
  init_cjs_shims();
161976
161901
  import { createRequire as createRequire3 } from "node:module";
161977
161902
  var REQUIRED_REMIX_VERSION = "^2.1.0";
@@ -162020,12 +161945,22 @@ function getRemixPackageVersion(require22, name, root) {
162020
161945
  return result;
162021
161946
  }
162022
161947
 
162023
- // ../../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
161948
+ // ../../node_modules/.pnpm/@shopify+cli-hydrogen@8.4.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
162024
161949
  init_cjs_shims();
162025
161950
  async function hasViteConfig(root) {
162026
161951
  const result = await findFileWithExtension(root, "vite.config");
162027
161952
  return !!result.filepath;
162028
161953
  }
161954
+ async function isViteProject(root) {
161955
+ const isVite = await hasViteConfig(root);
161956
+ if (isVite && await hasRemixConfigFile(root)) {
161957
+ renderWarning({
161958
+ headline: "Both Vite and Remix config files found.",
161959
+ body: "The remix.config.js file is not used in Vite projects. Please remove it to avoid conflicts."
161960
+ });
161961
+ }
161962
+ return isVite;
161963
+ }
162029
161964
  async function getViteConfig(root, ssrEntryFlag) {
162030
161965
  const vite = await importVite(root);
162031
161966
  const command = "build";
@@ -162093,11 +162028,17 @@ function findOxygenPlugin(config) {
162093
162028
  return findPlugin(config, "oxygen:main");
162094
162029
  }
162095
162030
 
162096
- // ../../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
162031
+ // ../../node_modules/.pnpm/@shopify+cli-hydrogen@8.4.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
162097
162032
  async function hasRemixConfigFile(root) {
162098
162033
  const result = await findFileWithExtension(root, "remix.config");
162099
162034
  return !!result.filepath;
162100
162035
  }
162036
+ async function isClassicProject(root) {
162037
+ const isVite = await isViteProject(root);
162038
+ if (isVite)
162039
+ return false;
162040
+ return hasRemixConfigFile(root);
162041
+ }
162101
162042
  var BUILD_DIR = "dist";
162102
162043
  var CLIENT_SUBDIR = "client";
162103
162044
  var WORKER_SUBDIR = "worker";
@@ -162131,7 +162072,7 @@ function getRawRemixConfig(root) {
162131
162072
  });
162132
162073
  }
162133
162074
  async function getRemixConfig(root, mode = process.env.NODE_ENV) {
162134
- if (!await hasRemixConfigFile(root)) {
162075
+ if (await isViteProject(root)) {
162135
162076
  return (await getViteConfig(root)).remixConfig;
162136
162077
  }
162137
162078
  await muteRemixLogs(root);
@@ -162245,7 +162186,7 @@ async function assertEntryFileExists(root, fileRelative) {
162245
162186
  }
162246
162187
  }
162247
162188
 
162248
- // ../../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
162189
+ // ../../node_modules/.pnpm/@shopify+cli-hydrogen@8.4.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
162249
162190
  var NO_LOCALE_PATTERNS = [/robots\.txt/];
162250
162191
  var ROUTE_MAP = {
162251
162192
  home: ["_index", "$"],
@@ -162510,7 +162451,7 @@ async function copyRouteTemplate({
162510
162451
  await writeFile(routePath, templateContent);
162511
162452
  }
162512
162453
 
162513
- // ../../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
162454
+ // ../../node_modules/.pnpm/@shopify+cli-hydrogen@8.4.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
162514
162455
  var LANGUAGES = {
162515
162456
  js: "JavaScript",
162516
162457
  ts: "TypeScript"
@@ -163040,7 +162981,7 @@ function generateRandomName() {
163040
162981
  return `${colorNames} ${geographicalFeature}`;
163041
162982
  }
163042
162983
 
163043
- // ../../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
162984
+ // ../../node_modules/.pnpm/@shopify+cli-hydrogen@8.4.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
163044
162985
  var Link = class _Link extends base_command_default {
163045
162986
  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.
163046
162987
 
@@ -163186,7 +163127,7 @@ async function createNewStorefront(root, session, storefronts) {
163186
163127
  return storefront;
163187
163128
  }
163188
163129
 
163189
- // ../../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
163130
+ // ../../node_modules/.pnpm/@shopify+cli-hydrogen@8.4.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
163190
163131
  init_cjs_shims();
163191
163132
  var CUSTOMER_APPLICATION_URLS_REPLACE = `#graphql
163192
163133
  mutation CustomerApplicationUrlsReplace($storefrontId: ID!, $urlsReplaceInput: HydrogenStorefrontCustomerApplicationUrlsReplaceInput!) {
@@ -163214,7 +163155,7 @@ async function replaceCustomerApplicationUrls(adminSession, storefrontId, urlsRe
163214
163155
  return { success, userErrors };
163215
163156
  }
163216
163157
 
163217
- // ../../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
163158
+ // ../../node_modules/.pnpm/@shopify+cli-hydrogen@8.4.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
163218
163159
  var CustomerAccountPush = class _CustomerAccountPush extends base_command_default {
163219
163160
  static description = "Push project configuration to admin";
163220
163161
  static flags = {
@@ -163373,7 +163314,7 @@ async function getStorefrontId(root, storefrontIdFromFlag) {
163373
163314
  return newConfig.storefront?.id;
163374
163315
  }
163375
163316
 
163376
- // ../../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
163317
+ // ../../node_modules/.pnpm/@shopify+cli-hydrogen@8.4.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
163377
163318
  init_cjs_shims();
163378
163319
 
163379
163320
  // ../cli-kit/dist/public/node/dot-env.js
@@ -163462,7 +163403,7 @@ function createDotEnvFileLine(key, value, quote2) {
163462
163403
  return `${key}=${value}`;
163463
163404
  }
163464
163405
 
163465
- // ../../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
163406
+ // ../../node_modules/.pnpm/@shopify+cli-hydrogen@8.4.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
163466
163407
  init_cjs_shims();
163467
163408
  var PullVariablesQuery = `#graphql
163468
163409
  query PullVariables($id: ID!, $handle: String) {
@@ -163490,7 +163431,7 @@ async function getStorefrontEnvVariables(adminSession, storefrontId, envHandle)
163490
163431
  return hydrogenStorefront;
163491
163432
  }
163492
163433
 
163493
- // ../../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
163434
+ // ../../node_modules/.pnpm/@shopify+cli-hydrogen@8.4.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
163494
163435
  init_cjs_shims();
163495
163436
  var ListEnvironmentsQuery = `#graphql
163496
163437
  query ListStorefronts($id: ID!) {
@@ -163518,7 +163459,7 @@ async function getStorefrontEnvironments(adminSession, storefrontId) {
163518
163459
  return hydrogenStorefront;
163519
163460
  }
163520
163461
 
163521
- // ../../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
163462
+ // ../../node_modules/.pnpm/@shopify+cli-hydrogen@8.4.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
163522
163463
  init_cjs_shims();
163523
163464
  function orderEnvironmentsBySafety(environments) {
163524
163465
  return [
@@ -163566,7 +163507,7 @@ function environmentNotFound(criterion, value) {
163566
163507
  );
163567
163508
  }
163568
163509
 
163569
- // ../../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
163510
+ // ../../node_modules/.pnpm/@shopify+cli-hydrogen@8.4.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
163570
163511
  var createEmptyRemoteVars = () => ({
163571
163512
  remoteVariables: {},
163572
163513
  remoteSecrets: {}
@@ -163575,6 +163516,7 @@ async function getAllEnvironmentVariables({
163575
163516
  root,
163576
163517
  envHandle,
163577
163518
  envBranch,
163519
+ envFile,
163578
163520
  fetchRemote = true,
163579
163521
  localVariables: inlineLocalVariables
163580
163522
  }) {
@@ -163590,7 +163532,7 @@ async function getAllEnvironmentVariables({
163590
163532
  }
163591
163533
  ) : createEmptyRemoteVars(),
163592
163534
  // Get local vars
163593
- inlineLocalVariables ? { variables: inlineLocalVariables } : getLocalVariables(root)
163535
+ inlineLocalVariables ? { variables: inlineLocalVariables } : getLocalVariables(root, envFile)
163594
163536
  ]);
163595
163537
  const remoteSecretKeys = Object.keys(remoteSecrets);
163596
163538
  const remotePublicKeys = Object.keys(remoteVariables);
@@ -163601,7 +163543,7 @@ async function getAllEnvironmentVariables({
163601
163543
  outputInfo(
163602
163544
  linesToColumns([
163603
163545
  ...remotePublicKeys.filter((key) => !localKeys.includes(key)).map((key) => [key, "from Oxygen"]),
163604
- ...localKeys.map((key) => [key, "from local .env"]),
163546
+ ...localKeys.map((key) => [key, `from local ${envFile}`]),
163605
163547
  // Ensure secret variables always get added to the bottom of the list
163606
163548
  ...remoteSecretKeys.filter((key) => !localKeys.includes(key)).map((key) => [
163607
163549
  source_default.dim(key),
@@ -163640,14 +163582,14 @@ async function getRemoteVariables(root, envHandle, envBranch) {
163640
163582
  }
163641
163583
  return { remoteVariables, remoteSecrets };
163642
163584
  }
163643
- async function getLocalVariables(root) {
163644
- const dotEnvPath = resolvePath(root, ".env");
163585
+ async function getLocalVariables(root, envFile) {
163586
+ const dotEnvPath = resolvePath(root, envFile);
163645
163587
  return await fileExists(dotEnvPath).then(
163646
163588
  (exists2) => exists2 ? readAndParseDotEnv(dotEnvPath) : { variables: {} }
163647
163589
  );
163648
163590
  }
163649
163591
 
163650
- // ../../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
163592
+ // ../../node_modules/.pnpm/@shopify+cli-hydrogen@8.4.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
163651
163593
  init_cjs_shims();
163652
163594
  async function startTunnelPlugin(config, port, provider) {
163653
163595
  const hooks = await fanoutHooks(config, "tunnel_start", { port, provider });
@@ -163688,7 +163630,7 @@ async function pollTunnelURL(tunnelClient) {
163688
163630
  });
163689
163631
  }
163690
163632
 
163691
- // ../../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
163633
+ // ../../node_modules/.pnpm/@shopify+cli-hydrogen@8.4.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
163692
163634
  function isMockShop(envVariables) {
163693
163635
  return envVariables.PUBLIC_STORE_DOMAIN === "mock.shop" || // We fallback to mock.shop if the env var is falsy.
163694
163636
  // When it's undefined, it might be overwritten by remote variables.
@@ -163708,22 +163650,24 @@ function notifyIssueWithTunnelAndMockShop(cliCommand) {
163708
163650
  ]
163709
163651
  });
163710
163652
  }
163711
- function getDevConfigInBackground(root, customerAccountPushFlag) {
163712
- return getLocalVariables(root).then(async ({ variables: localVariables }) => {
163713
- const customerAccountPush = customerAccountPushFlag && !isMockShop(localVariables);
163714
- if (customerAccountPush) {
163715
- await getStorefrontId(root);
163653
+ function getDevConfigInBackground(root, customerAccountPushFlag, envFile) {
163654
+ return getLocalVariables(root, envFile).then(
163655
+ async ({ variables: localVariables }) => {
163656
+ const customerAccountPush = customerAccountPushFlag && !isMockShop(localVariables);
163657
+ if (customerAccountPush) {
163658
+ await getStorefrontId(root);
163659
+ }
163660
+ const { shop, storefront } = await getConfig(root);
163661
+ const storefrontId = storefront?.id;
163662
+ return {
163663
+ storefrontId,
163664
+ customerAccountPush,
163665
+ fetchRemote: !!shop && !!storefrontId,
163666
+ localVariables,
163667
+ storefrontTitle: storefront?.title
163668
+ };
163716
163669
  }
163717
- const { shop, storefront } = await getConfig(root);
163718
- const storefrontId = storefront?.id;
163719
- return {
163720
- storefrontId,
163721
- customerAccountPush,
163722
- fetchRemote: !!shop && !!storefrontId,
163723
- localVariables,
163724
- storefrontTitle: storefront?.title
163725
- };
163726
- });
163670
+ );
163727
163671
  }
163728
163672
  var TUNNEL_DOMAIN = Object.freeze({
163729
163673
  ORIGINAL: ".trycloudflare.com",
@@ -163821,10 +163765,6 @@ export {
163821
163765
  overrideFlag,
163822
163766
  importVite,
163823
163767
  importLocal,
163824
- hasViteConfig,
163825
- getViteConfig,
163826
- findHydrogenPlugin,
163827
- findOxygenPlugin,
163828
163768
  muteDevLogs,
163829
163769
  enhanceAuthLogs,
163830
163770
  enhanceH2Logs,
@@ -163833,12 +163773,17 @@ export {
163833
163773
  setH2OVerbose,
163834
163774
  isH2Verbose,
163835
163775
  checkRemixVersions,
163836
- hasRemixConfigFile,
163776
+ isClassicProject,
163837
163777
  getProjectPaths,
163838
163778
  handleRemixImportFail,
163839
163779
  getRawRemixConfig,
163840
163780
  getRemixConfig,
163841
163781
  assertOxygenChecks,
163782
+ hasViteConfig,
163783
+ isViteProject,
163784
+ getViteConfig,
163785
+ findHydrogenPlugin,
163786
+ findOxygenPlugin,
163842
163787
  adminRequest,
163843
163788
  parseGid,
163844
163789
  getStorefronts,
@@ -163903,4 +163848,4 @@ export {
163903
163848
  getDebugBannerLine,
163904
163849
  getUtilityBannerlines
163905
163850
  };
163906
- //# sourceMappingURL=chunk-GDARYUPU.js.map
163851
+ //# sourceMappingURL=chunk-K7KD247K.js.map