@shopify/cli 3.64.0 → 3.64.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/assets/hydrogen/starter/.graphqlrc.ts +27 -0
- package/dist/assets/hydrogen/starter/CHANGELOG.md +16 -7
- package/dist/assets/hydrogen/starter/app/components/CartMain.tsx +2 -2
- package/dist/assets/hydrogen/starter/app/components/CartSummary.tsx +3 -3
- package/dist/assets/hydrogen/starter/app/components/PageLayout.tsx +1 -1
- package/dist/assets/hydrogen/starter/app/components/Search.tsx +0 -1
- package/dist/assets/hydrogen/starter/app/routes/cart.tsx +1 -1
- package/dist/assets/hydrogen/starter/package.json +6 -6
- package/dist/{chunk-W26344X5.js → chunk-2DXCIFDK.js} +2 -2
- package/dist/{chunk-BKBHZTOE.js → chunk-63D4EGTO.js} +3 -3
- package/dist/{chunk-L5WUZYLP.js → chunk-6PJAGL2L.js} +4 -4
- package/dist/{chunk-PWYMBX34.js → chunk-7PVTYKQI.js} +5 -5
- package/dist/{chunk-JSLLI5MY.js → chunk-7TIDA343.js} +3 -3
- package/dist/{chunk-G4TC4KHZ.js → chunk-7W6SRTYP.js} +3 -3
- package/dist/{chunk-QI5O2CU6.js → chunk-ARCFCLME.js} +5 -5
- package/dist/{chunk-RX7VCI62.js → chunk-ATGUMSCJ.js} +4 -4
- package/dist/{chunk-YLPSXWEZ.js → chunk-B3D5VLUA.js} +2 -2
- package/dist/{chunk-UTXBNNRZ.js → chunk-DX43V2L4.js} +3 -3
- package/dist/{chunk-I6HNYSMO.js → chunk-FDLU3RD4.js} +4 -4
- package/dist/{chunk-GEAZ65AU.js → chunk-H6AQTECB.js} +132 -206
- package/dist/{chunk-LQX3GDBO.js → chunk-JNUJZFQL.js} +2 -2
- package/dist/{chunk-VPPZXHAK.js → chunk-KUVX423E.js} +2 -2
- package/dist/{chunk-CLBFKLWA.js → chunk-KZTALMEV.js} +4 -4
- package/dist/{chunk-TSZPIP7J.js → chunk-M6KGRVDD.js} +3 -3
- package/dist/{chunk-6TPBPH6V.js → chunk-NLE3ZLU6.js} +2 -2
- package/dist/{chunk-LVLKZYIC.js → chunk-OVWFZSJT.js} +2 -2
- package/dist/{chunk-PIJQNKK6.js → chunk-OXMHVKM3.js} +4 -4
- package/dist/{chunk-7GYETEC3.js → chunk-QNI6VLVR.js} +3 -3
- package/dist/{chunk-LHP5F5LY.js → chunk-QYT42J3T.js} +3 -3
- package/dist/{chunk-H66NIXGL.js → chunk-S3HWVIGJ.js} +4 -4
- package/dist/{chunk-GUB3OCYR.js → chunk-S7A7BHNA.js} +4 -4
- package/dist/{chunk-6LPAIJ4Y.js → chunk-SSAUIEBT.js} +2 -2
- package/dist/{chunk-TCQUNDAY.js → chunk-UQQI7TQG.js} +3 -3
- package/dist/{chunk-X34BQYQP.js → chunk-UXA5YROL.js} +2 -2
- package/dist/{chunk-2TZRSXDZ.js → chunk-V7NH4SZB.js} +2 -2
- package/dist/{chunk-KDK32T2A.js → chunk-WVY52EEZ.js} +4 -4
- package/dist/{chunk-QCK4QLB3.js → chunk-X3OUSYUQ.js} +2 -2
- package/dist/{chunk-5A6QTLMF.js → chunk-XNCQBHNR.js} +4 -4
- package/dist/{chunk-WIG6CPGR.js → chunk-ZIGJPI5N.js} +5 -5
- package/dist/{chunk-C2AKAEMR.js → chunk-ZKWHKX2C.js} +5 -5
- package/dist/{chunk-LP2H26NY.js → chunk-ZRGD2HUL.js} +3 -3
- package/dist/{chunk-T7DHXEC7.js → chunk-ZVT2WZZF.js} +2 -2
- package/dist/cli/commands/auth/logout.js +10 -10
- package/dist/cli/commands/auth/logout.test.js +11 -11
- package/dist/cli/commands/debug/command-flags.js +9 -9
- package/dist/cli/commands/demo/catalog.js +10 -10
- package/dist/cli/commands/demo/generate-file.js +10 -10
- package/dist/cli/commands/demo/index.js +10 -10
- package/dist/cli/commands/demo/print-ai-prompt.js +10 -10
- package/dist/cli/commands/docs/generate.js +9 -9
- package/dist/cli/commands/docs/generate.test.js +9 -9
- package/dist/cli/commands/help.js +9 -9
- package/dist/cli/commands/kitchen-sink/async.js +10 -10
- package/dist/cli/commands/kitchen-sink/async.test.js +10 -10
- package/dist/cli/commands/kitchen-sink/index.js +12 -12
- package/dist/cli/commands/kitchen-sink/index.test.js +12 -12
- package/dist/cli/commands/kitchen-sink/prompts.js +10 -10
- package/dist/cli/commands/kitchen-sink/prompts.test.js +10 -10
- package/dist/cli/commands/kitchen-sink/static.js +10 -10
- package/dist/cli/commands/kitchen-sink/static.test.js +10 -10
- package/dist/cli/commands/search.js +10 -10
- package/dist/cli/commands/upgrade.js +9 -9
- package/dist/cli/commands/version.js +10 -10
- package/dist/cli/commands/version.test.js +10 -10
- package/dist/cli/services/commands/search.js +2 -2
- package/dist/cli/services/commands/search.test.js +2 -2
- package/dist/cli/services/commands/version.js +4 -4
- package/dist/cli/services/commands/version.test.js +5 -5
- package/dist/cli/services/demo.js +2 -2
- package/dist/cli/services/demo.test.js +2 -2
- package/dist/cli/services/kitchen-sink/async.js +2 -2
- package/dist/cli/services/kitchen-sink/prompts.js +2 -2
- package/dist/cli/services/kitchen-sink/static.js +2 -2
- package/dist/cli/services/upgrade.js +3 -3
- package/dist/cli/services/upgrade.test.js +5 -5
- package/dist/{custom-oclif-loader-F5UKFNJS.js → custom-oclif-loader-BQAFOUNG.js} +2 -2
- package/dist/{error-handler-GCSQB44R.js → error-handler-S56KHSGD.js} +8 -8
- package/dist/hooks/postrun.js +6 -6
- package/dist/hooks/prerun.js +4 -4
- package/dist/index.js +225 -159
- package/dist/{local-VDSO2Y52.js → local-UQAQKOVL.js} +2 -2
- package/dist/{morph-DQWX4LPS.js → morph-DN4AZJZW.js} +9 -9
- package/dist/{node-3B62KLPY.js → node-GZYZUMBW.js} +13 -13
- package/dist/{node-package-manager-QLAS6UPG.js → node-package-manager-AOVZD6TP.js} +3 -3
- package/dist/{system-CPU6ZDBW.js → system-G7DVECOP.js} +2 -2
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/dist/{ui-Y4GW3DUK.js → ui-2AOZFYFM.js} +2 -2
- package/dist/{workerd-LSXMDY5M.js → workerd-2MO23YDQ.js} +12 -12
- package/oclif.manifest.json +1 -1
- package/package.json +7 -7
- package/dist/assets/hydrogen/starter/.graphqlrc.yml +0 -12
package/dist/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
findPort
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-M6KGRVDD.js";
|
|
4
4
|
import {
|
|
5
5
|
ALIAS_NAME,
|
|
6
6
|
ALL_ROUTE_CHOICES,
|
|
@@ -33,9 +33,9 @@ import {
|
|
|
33
33
|
createPlatformShortcut,
|
|
34
34
|
createRemixLogger,
|
|
35
35
|
createStorefront,
|
|
36
|
-
deferPromise,
|
|
37
36
|
deprecated,
|
|
38
37
|
downloadGitRepository,
|
|
38
|
+
enhanceAuthLogs,
|
|
39
39
|
enhanceH2Logs,
|
|
40
40
|
ensureInsideGitDirectory,
|
|
41
41
|
ensureIsClean,
|
|
@@ -120,7 +120,7 @@ import {
|
|
|
120
120
|
unsetStorefront,
|
|
121
121
|
waitForJob,
|
|
122
122
|
writeDotEnv
|
|
123
|
-
} from "./chunk-
|
|
123
|
+
} from "./chunk-H6AQTECB.js";
|
|
124
124
|
import {
|
|
125
125
|
require_lib as require_lib4
|
|
126
126
|
} from "./chunk-UJ3QKFA5.js";
|
|
@@ -138,36 +138,36 @@ import {
|
|
|
138
138
|
} from "./chunk-MQGV3PCJ.js";
|
|
139
139
|
import {
|
|
140
140
|
KitchenSinkStatic
|
|
141
|
-
} from "./chunk-
|
|
141
|
+
} from "./chunk-UQQI7TQG.js";
|
|
142
142
|
import {
|
|
143
143
|
Search
|
|
144
|
-
} from "./chunk-
|
|
144
|
+
} from "./chunk-ZRGD2HUL.js";
|
|
145
145
|
import {
|
|
146
146
|
Upgrade
|
|
147
|
-
} from "./chunk-
|
|
147
|
+
} from "./chunk-KZTALMEV.js";
|
|
148
148
|
import {
|
|
149
149
|
Version
|
|
150
|
-
} from "./chunk-
|
|
151
|
-
import "./chunk-
|
|
152
|
-
import "./chunk-
|
|
150
|
+
} from "./chunk-7TIDA343.js";
|
|
151
|
+
import "./chunk-ATGUMSCJ.js";
|
|
152
|
+
import "./chunk-SSAUIEBT.js";
|
|
153
153
|
import {
|
|
154
154
|
HelpCommand
|
|
155
|
-
} from "./chunk-
|
|
155
|
+
} from "./chunk-UXA5YROL.js";
|
|
156
156
|
import {
|
|
157
157
|
KitchenSinkAsync
|
|
158
|
-
} from "./chunk-
|
|
158
|
+
} from "./chunk-63D4EGTO.js";
|
|
159
159
|
import {
|
|
160
160
|
KitchenSinkAll
|
|
161
|
-
} from "./chunk-
|
|
162
|
-
import "./chunk-
|
|
163
|
-
import "./chunk-
|
|
161
|
+
} from "./chunk-ARCFCLME.js";
|
|
162
|
+
import "./chunk-KUVX423E.js";
|
|
163
|
+
import "./chunk-JNUJZFQL.js";
|
|
164
164
|
import {
|
|
165
165
|
KitchenSinkPrompts
|
|
166
|
-
} from "./chunk-
|
|
167
|
-
import "./chunk-
|
|
166
|
+
} from "./chunk-QNI6VLVR.js";
|
|
167
|
+
import "./chunk-V7NH4SZB.js";
|
|
168
168
|
import {
|
|
169
169
|
Logout
|
|
170
|
-
} from "./chunk-
|
|
170
|
+
} from "./chunk-FDLU3RD4.js";
|
|
171
171
|
import {
|
|
172
172
|
FunctionUploadUrlGenerateMutation,
|
|
173
173
|
appManagementFqdn,
|
|
@@ -187,27 +187,27 @@ import {
|
|
|
187
187
|
partnersRequest,
|
|
188
188
|
partnersRequestDoc,
|
|
189
189
|
require_lib as require_lib3
|
|
190
|
-
} from "./chunk-
|
|
190
|
+
} from "./chunk-ZIGJPI5N.js";
|
|
191
191
|
import {
|
|
192
192
|
setNextDeprecationDate
|
|
193
193
|
} from "./chunk-NPH2SXRO.js";
|
|
194
194
|
import {
|
|
195
195
|
CommandFlags
|
|
196
|
-
} from "./chunk-
|
|
196
|
+
} from "./chunk-7W6SRTYP.js";
|
|
197
197
|
import {
|
|
198
198
|
Catalog
|
|
199
|
-
} from "./chunk-
|
|
199
|
+
} from "./chunk-OXMHVKM3.js";
|
|
200
200
|
import {
|
|
201
201
|
GenerateFile
|
|
202
|
-
} from "./chunk-
|
|
202
|
+
} from "./chunk-WVY52EEZ.js";
|
|
203
203
|
import {
|
|
204
204
|
Demo
|
|
205
|
-
} from "./chunk-
|
|
205
|
+
} from "./chunk-6PJAGL2L.js";
|
|
206
206
|
import {
|
|
207
207
|
PrintAIPrompt
|
|
208
|
-
} from "./chunk-
|
|
208
|
+
} from "./chunk-S7A7BHNA.js";
|
|
209
209
|
import "./chunk-DLK3F3DC.js";
|
|
210
|
-
import "./chunk-
|
|
210
|
+
import "./chunk-OVWFZSJT.js";
|
|
211
211
|
import {
|
|
212
212
|
deepStrict,
|
|
213
213
|
errorsToString,
|
|
@@ -215,12 +215,12 @@ import {
|
|
|
215
215
|
} from "./chunk-EJITPGUJ.js";
|
|
216
216
|
import {
|
|
217
217
|
DocsGenerate
|
|
218
|
-
} from "./chunk-
|
|
218
|
+
} from "./chunk-QYT42J3T.js";
|
|
219
219
|
import {
|
|
220
220
|
base_command_default,
|
|
221
221
|
decodeToml,
|
|
222
222
|
encodeToml
|
|
223
|
-
} from "./chunk-
|
|
223
|
+
} from "./chunk-XNCQBHNR.js";
|
|
224
224
|
import {
|
|
225
225
|
require_byline,
|
|
226
226
|
require_end_of_stream,
|
|
@@ -228,7 +228,7 @@ import {
|
|
|
228
228
|
require_iserror,
|
|
229
229
|
require_pump,
|
|
230
230
|
require_stack_generator
|
|
231
|
-
} from "./chunk-
|
|
231
|
+
} from "./chunk-7PVTYKQI.js";
|
|
232
232
|
import {
|
|
233
233
|
ClientError,
|
|
234
234
|
FetchError,
|
|
@@ -247,23 +247,23 @@ import {
|
|
|
247
247
|
require_lib as require_lib2,
|
|
248
248
|
require_mime_types,
|
|
249
249
|
version
|
|
250
|
-
} from "./chunk-
|
|
250
|
+
} from "./chunk-ZKWHKX2C.js";
|
|
251
251
|
import "./chunk-DL3MKXVR.js";
|
|
252
252
|
import {
|
|
253
253
|
fileHash,
|
|
254
254
|
hashString,
|
|
255
255
|
randomUUID
|
|
256
|
-
} from "./chunk-
|
|
256
|
+
} from "./chunk-S3HWVIGJ.js";
|
|
257
257
|
import {
|
|
258
258
|
platformAndArch,
|
|
259
259
|
username
|
|
260
|
-
} from "./chunk-
|
|
260
|
+
} from "./chunk-2DXCIFDK.js";
|
|
261
261
|
import {
|
|
262
262
|
require_once
|
|
263
263
|
} from "./chunk-FMKVOTQK.js";
|
|
264
264
|
import {
|
|
265
265
|
CLI_KIT_VERSION
|
|
266
|
-
} from "./chunk-
|
|
266
|
+
} from "./chunk-B3D5VLUA.js";
|
|
267
267
|
import {
|
|
268
268
|
LocalStorage,
|
|
269
269
|
UnknownPackageManagerError,
|
|
@@ -285,7 +285,7 @@ import {
|
|
|
285
285
|
usesWorkspaces,
|
|
286
286
|
versionSatisfies,
|
|
287
287
|
writePackageJSON
|
|
288
|
-
} from "./chunk-
|
|
288
|
+
} from "./chunk-X3OUSYUQ.js";
|
|
289
289
|
import {
|
|
290
290
|
require_semver
|
|
291
291
|
} from "./chunk-PRJ3U7MR.js";
|
|
@@ -461,7 +461,7 @@ import {
|
|
|
461
461
|
use_stdin_default,
|
|
462
462
|
writeFile,
|
|
463
463
|
writeFileSync
|
|
464
|
-
} from "./chunk-
|
|
464
|
+
} from "./chunk-NLE3ZLU6.js";
|
|
465
465
|
import {
|
|
466
466
|
require_signal_exit
|
|
467
467
|
} from "./chunk-JIJ65JT6.js";
|
|
@@ -192709,7 +192709,7 @@ async function warnIfOldNodeVersion() {
|
|
|
192709
192709
|
const nodeMajorVersion = Number(nodeVersion.split(".")[0]);
|
|
192710
192710
|
const currentSupportedNodeVersion = 18;
|
|
192711
192711
|
if (nodeMajorVersion < currentSupportedNodeVersion) {
|
|
192712
|
-
const { renderWarning: renderWarning2 } = await import("./ui-
|
|
192712
|
+
const { renderWarning: renderWarning2 } = await import("./ui-2AOZFYFM.js");
|
|
192713
192713
|
renderWarning2({
|
|
192714
192714
|
headline: "Upgrade to a supported Node version now.",
|
|
192715
192715
|
body: [
|
|
@@ -192743,10 +192743,10 @@ async function runCLI(options) {
|
|
|
192743
192743
|
setupEnvironmentVariables(options);
|
|
192744
192744
|
forceNoColor();
|
|
192745
192745
|
await warnIfOldNodeVersion();
|
|
192746
|
-
const { errorHandler: errorHandler2 } = await import("./error-handler-
|
|
192747
|
-
const { isDevelopment } = await import("./local-
|
|
192746
|
+
const { errorHandler: errorHandler2 } = await import("./error-handler-S56KHSGD.js");
|
|
192747
|
+
const { isDevelopment } = await import("./local-UQAQKOVL.js");
|
|
192748
192748
|
const oclif = await import("./lib-E7NFRKVR.js");
|
|
192749
|
-
const { ShopifyConfig } = await import("./custom-oclif-loader-
|
|
192749
|
+
const { ShopifyConfig } = await import("./custom-oclif-loader-BQAFOUNG.js");
|
|
192750
192750
|
if (isDevelopment()) {
|
|
192751
192751
|
oclif.default.settings.debug = true;
|
|
192752
192752
|
}
|
|
@@ -192764,7 +192764,7 @@ async function runCLI(options) {
|
|
|
192764
192764
|
async function useLocalCLIIfDetected(filepath) {
|
|
192765
192765
|
const { environmentVariables: environmentVariables2 } = await import("./constants-EVER32LA.js");
|
|
192766
192766
|
const { joinPath: join6 } = await import("./path-KUSF6CYC.js");
|
|
192767
|
-
const { exec: exec2 } = await import("./system-
|
|
192767
|
+
const { exec: exec2 } = await import("./system-G7DVECOP.js");
|
|
192768
192768
|
if (!isTruthy(process.env[environmentVariables2.enableCliRedirect]))
|
|
192769
192769
|
return false;
|
|
192770
192770
|
if (isTruthy(process.env[environmentVariables2.skipCliRedirect]))
|
|
@@ -192788,7 +192788,7 @@ async function useLocalCLIIfDetected(filepath) {
|
|
|
192788
192788
|
return true;
|
|
192789
192789
|
}
|
|
192790
192790
|
async function localCliPackage() {
|
|
192791
|
-
const { captureOutput } = await import("./system-
|
|
192791
|
+
const { captureOutput } = await import("./system-G7DVECOP.js");
|
|
192792
192792
|
let npmListOutput = "";
|
|
192793
192793
|
let localShopifyCLI = {};
|
|
192794
192794
|
try {
|
|
@@ -196530,14 +196530,14 @@ var COMMANDS = {
|
|
|
196530
196530
|
};
|
|
196531
196531
|
var dist_default = COMMANDS;
|
|
196532
196532
|
|
|
196533
|
-
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@
|
|
196533
|
+
// ../../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/index.js
|
|
196534
196534
|
init_cjs_shims();
|
|
196535
196535
|
|
|
196536
|
-
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@
|
|
196536
|
+
// ../../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/build.js
|
|
196537
196537
|
init_cjs_shims();
|
|
196538
196538
|
var import_core16 = __toESM(require_lib(), 1);
|
|
196539
196539
|
|
|
196540
|
-
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@
|
|
196540
|
+
// ../../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/template-diff.js
|
|
196541
196541
|
init_cjs_shims();
|
|
196542
196542
|
import { symlink, cp } from "node:fs/promises";
|
|
196543
196543
|
async function prepareDiffDirectory(diffDirectory, watch) {
|
|
@@ -196727,10 +196727,10 @@ async function applyTemplateDiff(targetDirectory, diffDirectory, templateDir) {
|
|
|
196727
196727
|
await mergeTsConfig(diffDirectory, targetDirectory);
|
|
196728
196728
|
}
|
|
196729
196729
|
|
|
196730
|
-
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@
|
|
196730
|
+
// ../../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/check-lockfile.js
|
|
196731
196731
|
init_cjs_shims();
|
|
196732
196732
|
|
|
196733
|
-
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@
|
|
196733
|
+
// ../../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/package-managers.js
|
|
196734
196734
|
init_cjs_shims();
|
|
196735
196735
|
var packageManagers = [
|
|
196736
196736
|
{
|
|
@@ -196755,7 +196755,7 @@ var packageManagers = [
|
|
|
196755
196755
|
}
|
|
196756
196756
|
];
|
|
196757
196757
|
|
|
196758
|
-
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@
|
|
196758
|
+
// ../../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/check-lockfile.js
|
|
196759
196759
|
function missingLockfileWarning(shouldExit) {
|
|
196760
196760
|
const headline = "No lockfile found";
|
|
196761
196761
|
const body = `If you don\u2019t commit a lockfile, then your app might install the wrong package versions when deploying. To avoid versioning issues, generate a new lockfile and commit it to your repository.`;
|
|
@@ -196829,7 +196829,7 @@ async function checkLockfileStatus(directory, shouldExit = false) {
|
|
|
196829
196829
|
}
|
|
196830
196830
|
}
|
|
196831
196831
|
|
|
196832
|
-
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@
|
|
196832
|
+
// ../../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/missing-routes.js
|
|
196833
196833
|
init_cjs_shims();
|
|
196834
196834
|
var REQUIRED_ROUTES = [
|
|
196835
196835
|
"",
|
|
@@ -196917,10 +196917,10 @@ Including these routes improves compatibility with Shopify\u2019s platform:
|
|
|
196917
196917
|
}
|
|
196918
196918
|
}
|
|
196919
196919
|
|
|
196920
|
-
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@
|
|
196920
|
+
// ../../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/classic-compiler/build.js
|
|
196921
196921
|
init_cjs_shims();
|
|
196922
196922
|
|
|
196923
|
-
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@
|
|
196923
|
+
// ../../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/codegen.js
|
|
196924
196924
|
init_cjs_shims();
|
|
196925
196925
|
import { spawn } from "node:child_process";
|
|
196926
196926
|
import { fileURLToPath as fileURLToPath2 } from "node:url";
|
|
@@ -197092,53 +197092,84 @@ async function generateDefaultConfig({
|
|
|
197092
197092
|
}).catch(() => void 0);
|
|
197093
197093
|
const sfapiSchema = getSchema("storefront");
|
|
197094
197094
|
const sfapiProject = findGqlProject(sfapiSchema, gqlConfig);
|
|
197095
|
-
const defaultGlob = "*!(*.d).{ts,tsx,js,jsx}";
|
|
197096
|
-
const appDirRelative = relativePath(rootDirectory, appDirectory);
|
|
197097
197095
|
const caapiSchema = getSchema("customer-account", { throwIfMissing: false });
|
|
197098
197096
|
const caapiProject = caapiSchema ? findGqlProject(caapiSchema, gqlConfig) : void 0;
|
|
197099
|
-
const
|
|
197100
|
-
|
|
197101
|
-
|
|
197102
|
-
|
|
197103
|
-
|
|
197104
|
-
|
|
197105
|
-
|
|
197097
|
+
const defaultGlob = "*!(*.d).{ts,tsx,js,jsx}";
|
|
197098
|
+
const appDirRelative = relativePath(rootDirectory, appDirectory);
|
|
197099
|
+
const isKnownSchema = (schema) => {
|
|
197100
|
+
const baseSfapiSchema = basename(sfapiSchema);
|
|
197101
|
+
const baseCaapiSchema = caapiSchema && basename(caapiSchema);
|
|
197102
|
+
return Boolean(
|
|
197103
|
+
schema.endsWith(baseSfapiSchema) || baseCaapiSchema && schema.endsWith(baseCaapiSchema)
|
|
197104
|
+
);
|
|
197105
|
+
};
|
|
197106
|
+
const otherCodegenProjects = Object.values(gqlConfig?.projects ?? {}).filter(
|
|
197107
|
+
(project) => project.hasExtension("codegen") && (typeof project.schema !== "string" || !isKnownSchema(project.schema))
|
|
197108
|
+
);
|
|
197106
197109
|
return {
|
|
197107
197110
|
filepath: "virtual:codegen",
|
|
197108
197111
|
config: {
|
|
197109
197112
|
overwrite: true,
|
|
197110
197113
|
pluckConfig,
|
|
197111
197114
|
generates: {
|
|
197112
|
-
|
|
197113
|
-
|
|
197114
|
-
|
|
197115
|
-
|
|
197116
|
-
|
|
197117
|
-
|
|
197118
|
-
|
|
197119
|
-
|
|
197120
|
-
|
|
197121
|
-
|
|
197122
|
-
|
|
197123
|
-
|
|
197124
|
-
|
|
197125
|
-
|
|
197126
|
-
|
|
197127
|
-
|
|
197115
|
+
// If the SFAPI project in GraphQL config has a codegen extension, use it.
|
|
197116
|
+
// Otherwise, always fallback to our default config for SFAPI.
|
|
197117
|
+
...getCodegenFromGraphQLConfig(sfapiProject) ?? {
|
|
197118
|
+
["storefrontapi.generated.d.ts"]: {
|
|
197119
|
+
preset,
|
|
197120
|
+
schema: sfapiSchema,
|
|
197121
|
+
documents: sfapiProject?.documents ?? [
|
|
197122
|
+
defaultGlob,
|
|
197123
|
+
// E.g. ./server.(t|j)s
|
|
197124
|
+
joinPath(appDirRelative, "**", defaultGlob)
|
|
197125
|
+
// E.g. app/routes/_index.(t|j)sx
|
|
197126
|
+
],
|
|
197127
|
+
...!!forceSfapiVersion && {
|
|
197128
|
+
presetConfig: { importTypes: false },
|
|
197129
|
+
schema: {
|
|
197130
|
+
[`https://hydrogen-preview.myshopify.com/api/${forceSfapiVersion.split(":")[0]}/graphql.json`]: {
|
|
197131
|
+
headers: {
|
|
197132
|
+
"content-type": "application/json",
|
|
197133
|
+
"X-Shopify-Storefront-Access-Token": forceSfapiVersion.split(":")[1] ?? "3b580e70970c4528da70c98e097c2fa0"
|
|
197134
|
+
}
|
|
197128
197135
|
}
|
|
197136
|
+
},
|
|
197137
|
+
config: {
|
|
197138
|
+
defaultScalarType: "string",
|
|
197139
|
+
scalars: { JSON: "unknown" }
|
|
197129
197140
|
}
|
|
197130
|
-
},
|
|
197131
|
-
config: {
|
|
197132
|
-
defaultScalarType: "string",
|
|
197133
|
-
scalars: { JSON: "unknown" }
|
|
197134
197141
|
}
|
|
197135
197142
|
}
|
|
197136
197143
|
},
|
|
197137
|
-
|
|
197144
|
+
// If the CAAPI project in GraphQL config has a codegen extension, use it.
|
|
197145
|
+
// Otherwise, check if the user provided a list of documents to scan for queries
|
|
197146
|
+
// before falling back to our default config for CAAPI.
|
|
197147
|
+
...getCodegenFromGraphQLConfig(caapiProject) ?? (caapiProject?.documents ? {
|
|
197148
|
+
["customer-accountapi.generated.d.ts"]: {
|
|
197149
|
+
preset,
|
|
197150
|
+
schema: caapiSchema,
|
|
197151
|
+
documents: caapiProject.documents
|
|
197152
|
+
}
|
|
197153
|
+
} : {}),
|
|
197154
|
+
// Use other unknown codegen projects from the GraphQL config as they are.
|
|
197155
|
+
...otherCodegenProjects.reduce(
|
|
197156
|
+
(acc, project) => ({ ...acc, ...getCodegenFromGraphQLConfig(project) }),
|
|
197157
|
+
{}
|
|
197158
|
+
)
|
|
197138
197159
|
}
|
|
197139
197160
|
}
|
|
197140
197161
|
};
|
|
197141
197162
|
}
|
|
197163
|
+
function getCodegenFromGraphQLConfig(project) {
|
|
197164
|
+
if (!project?.extensions?.codegen?.generates)
|
|
197165
|
+
return;
|
|
197166
|
+
return Object.entries(
|
|
197167
|
+
project.extensions.codegen.generates
|
|
197168
|
+
).reduce((acc, [key, value]) => {
|
|
197169
|
+
acc[key] = { ...project, ...Array.isArray(value) ? value[0] : value };
|
|
197170
|
+
return acc;
|
|
197171
|
+
}, {});
|
|
197172
|
+
}
|
|
197142
197173
|
function findGqlProject(schemaFilepath, gqlConfig) {
|
|
197143
197174
|
if (!gqlConfig)
|
|
197144
197175
|
return;
|
|
@@ -197148,13 +197179,17 @@ function findGqlProject(schemaFilepath, gqlConfig) {
|
|
|
197148
197179
|
);
|
|
197149
197180
|
}
|
|
197150
197181
|
async function addHooksToHydrogenOptions(codegenConfig, { rootDirectory }) {
|
|
197182
|
+
const name = Symbol.for("name");
|
|
197151
197183
|
const hydrogenProjectsOptions = Object.values(codegenConfig.generates).filter(
|
|
197152
197184
|
(value) => {
|
|
197153
197185
|
const foundPreset = (Array.isArray(value) ? value[0] : value)?.preset;
|
|
197154
197186
|
if (typeof foundPreset === "object") {
|
|
197155
|
-
const name = Symbol.for("name");
|
|
197156
197187
|
if (name in foundPreset) {
|
|
197157
|
-
return
|
|
197188
|
+
return (
|
|
197189
|
+
// Preset from @shopify/hydrogen-codegen (e.g. SFAPI, CAAPI)
|
|
197190
|
+
foundPreset[name] === "hydrogen" || // Preset from @shopify/graphql-codegen (e.g. Admin API)
|
|
197191
|
+
foundPreset[name] === "@shopify/graphql-codegen"
|
|
197192
|
+
);
|
|
197158
197193
|
}
|
|
197159
197194
|
}
|
|
197160
197195
|
}
|
|
@@ -197171,7 +197206,7 @@ async function addHooksToHydrogenOptions(codegenConfig, { rootDirectory }) {
|
|
|
197171
197206
|
}
|
|
197172
197207
|
}
|
|
197173
197208
|
|
|
197174
|
-
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@
|
|
197209
|
+
// ../../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/bundle/analyzer.js
|
|
197175
197210
|
init_cjs_shims();
|
|
197176
197211
|
var BUNDLE_ANALYZER_JSON_FILE = "metafile.server.json";
|
|
197177
197212
|
var BUNDLE_ANALYZER_HTML_FILE = "server-bundle-analyzer.html";
|
|
@@ -197252,14 +197287,14 @@ function classicGetBundleAnalysisSummary(bundlePath) {
|
|
|
197252
197287
|
return getBundleAnalysisSummary(dirname(bundlePath));
|
|
197253
197288
|
}
|
|
197254
197289
|
|
|
197255
|
-
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@
|
|
197290
|
+
// ../../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/is-ci.js
|
|
197256
197291
|
init_cjs_shims();
|
|
197257
197292
|
function isCI() {
|
|
197258
197293
|
const { env } = process;
|
|
197259
197294
|
return env.CI === "false" ? false : !!(env.CI || env.CI_NAME || env.BUILD_NUMBER || env.TF_BUILD);
|
|
197260
197295
|
}
|
|
197261
197296
|
|
|
197262
|
-
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@
|
|
197297
|
+
// ../../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/classic-compiler/build.js
|
|
197263
197298
|
var LOG_WORKER_BUILT = "\u{1F4E6} Worker built";
|
|
197264
197299
|
var WORKER_BUILD_SIZE_LIMIT = 5;
|
|
197265
197300
|
async function runClassicCompilerBuild({
|
|
@@ -197384,7 +197419,7 @@ async function copyPublicFiles(publicPath, buildPathClient) {
|
|
|
197384
197419
|
return copyFile(publicPath, buildPathClient);
|
|
197385
197420
|
}
|
|
197386
197421
|
|
|
197387
|
-
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@
|
|
197422
|
+
// ../../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/bundle/vite-plugin.js
|
|
197388
197423
|
init_cjs_shims();
|
|
197389
197424
|
function hydrogenBundleAnalyzer(pluginOptions) {
|
|
197390
197425
|
let config2;
|
|
@@ -197547,7 +197582,26 @@ function createImportsMeta(ids, kind, root, resolveImportString, code) {
|
|
|
197547
197582
|
});
|
|
197548
197583
|
}
|
|
197549
197584
|
|
|
197550
|
-
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@
|
|
197585
|
+
// ../../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/defer.js
|
|
197586
|
+
init_cjs_shims();
|
|
197587
|
+
function deferPromise() {
|
|
197588
|
+
const deferred = { state: "pending" };
|
|
197589
|
+
deferred.promise = new Promise((resolve2, reject) => {
|
|
197590
|
+
deferred.resolve = (value) => {
|
|
197591
|
+
if (deferred.state === "pending")
|
|
197592
|
+
deferred.state = "resolved";
|
|
197593
|
+
return resolve2(value);
|
|
197594
|
+
};
|
|
197595
|
+
deferred.reject = (reason) => {
|
|
197596
|
+
if (deferred.state === "pending")
|
|
197597
|
+
deferred.state = "rejected";
|
|
197598
|
+
return reject(reason);
|
|
197599
|
+
};
|
|
197600
|
+
});
|
|
197601
|
+
return deferred;
|
|
197602
|
+
}
|
|
197603
|
+
|
|
197604
|
+
// ../../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/resource-cleanup.js
|
|
197551
197605
|
init_cjs_shims();
|
|
197552
197606
|
function setupResourceCleanup(cleanup2) {
|
|
197553
197607
|
let closingPromise;
|
|
@@ -197561,7 +197615,7 @@ function setupResourceCleanup(cleanup2) {
|
|
|
197561
197615
|
};
|
|
197562
197616
|
}
|
|
197563
197617
|
|
|
197564
|
-
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@
|
|
197618
|
+
// ../../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/build.js
|
|
197565
197619
|
var Build = class _Build extends base_command_default {
|
|
197566
197620
|
static descriptionWithMarkdown = `Builds a Hydrogen storefront for production. The client and app worker files are compiled to a \`/dist\` folder in your Hydrogen project directory.`;
|
|
197567
197621
|
static description = "Builds a Hydrogen storefront for production.";
|
|
@@ -197580,7 +197634,6 @@ var Build = class _Build extends base_command_default {
|
|
|
197580
197634
|
// For the classic compiler:
|
|
197581
197635
|
"bundle-stats": import_core16.Flags.boolean({
|
|
197582
197636
|
description: "Show a bundle size summary after building. Defaults to true, use `--no-bundle-stats` to disable.",
|
|
197583
|
-
default: true,
|
|
197584
197637
|
allowNo: true
|
|
197585
197638
|
})
|
|
197586
197639
|
};
|
|
@@ -197624,7 +197677,7 @@ async function runBuild({
|
|
|
197624
197677
|
disableRouteWarning = false,
|
|
197625
197678
|
lockfileCheck = true,
|
|
197626
197679
|
assetPath = "/",
|
|
197627
|
-
bundleStats =
|
|
197680
|
+
bundleStats = !isCI(),
|
|
197628
197681
|
watch = false,
|
|
197629
197682
|
onServerBuildStart,
|
|
197630
197683
|
onServerBuildFinish
|
|
@@ -197805,7 +197858,7 @@ This build is missing ${missingRoutes.length} route${missingRoutes.length > 1 ?
|
|
|
197805
197858
|
};
|
|
197806
197859
|
}
|
|
197807
197860
|
|
|
197808
|
-
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@
|
|
197861
|
+
// ../../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/check.js
|
|
197809
197862
|
init_cjs_shims();
|
|
197810
197863
|
var import_core17 = __toESM(require_lib(), 1);
|
|
197811
197864
|
var GenerateRoute = class _GenerateRoute extends base_command_default {
|
|
@@ -197837,7 +197890,7 @@ async function runCheckRoutes({ directory }) {
|
|
|
197837
197890
|
logMissingRoutes(findMissingRoutes(remixConfig));
|
|
197838
197891
|
}
|
|
197839
197892
|
|
|
197840
|
-
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@
|
|
197893
|
+
// ../../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/codegen.js
|
|
197841
197894
|
init_cjs_shims();
|
|
197842
197895
|
import path from "path";
|
|
197843
197896
|
var import_core18 = __toESM(require_lib(), 1);
|
|
@@ -197898,11 +197951,11 @@ async function runCodegen({
|
|
|
197898
197951
|
}
|
|
197899
197952
|
}
|
|
197900
197953
|
|
|
197901
|
-
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@
|
|
197954
|
+
// ../../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/debug/cpu.js
|
|
197902
197955
|
init_cjs_shims();
|
|
197903
197956
|
var import_core19 = __toESM(require_lib(), 1);
|
|
197904
197957
|
|
|
197905
|
-
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@
|
|
197958
|
+
// ../../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/classic-compiler/debug-cpu.js
|
|
197906
197959
|
init_cjs_shims();
|
|
197907
197960
|
async function runClassicCompilerDebugCpu({
|
|
197908
197961
|
directory,
|
|
@@ -197950,7 +198003,7 @@ async function runClassicCompilerDebugCpu({
|
|
|
197950
198003
|
};
|
|
197951
198004
|
}
|
|
197952
198005
|
|
|
197953
|
-
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@
|
|
198006
|
+
// ../../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/cpu-profiler.js
|
|
197954
198007
|
init_cjs_shims();
|
|
197955
198008
|
import { Session } from "node:inspector";
|
|
197956
198009
|
async function createCpuStartupProfiler(root) {
|
|
@@ -198059,7 +198112,7 @@ function silenceNode(node) {
|
|
|
198059
198112
|
});
|
|
198060
198113
|
}
|
|
198061
198114
|
|
|
198062
|
-
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@
|
|
198115
|
+
// ../../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/debug/cpu.js
|
|
198063
198116
|
var DEFAULT_OUTPUT_PATH = "startup.cpuprofile";
|
|
198064
198117
|
var DebugCpu = class _DebugCpu extends base_command_default {
|
|
198065
198118
|
static descriptionWithMarkdown = `Builds the app and runs the resulting code to profile the server startup time, watching for changes. This command can be used to [debug slow app startup times](https://shopify.dev/docs/custom-storefronts/hydrogen/debugging/cpu-startup) that cause failed deployments in Oxygen.
|
|
@@ -198160,7 +198213,7 @@ Waiting for changes...`);
|
|
|
198160
198213
|
};
|
|
198161
198214
|
}
|
|
198162
198215
|
|
|
198163
|
-
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@
|
|
198216
|
+
// ../../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/deploy.js
|
|
198164
198217
|
init_cjs_shims();
|
|
198165
198218
|
var import_core20 = __toESM(require_lib(), 1);
|
|
198166
198219
|
|
|
@@ -199423,13 +199476,13 @@ The deployment can be reached at the ${completedDeployment.url} preview URL`;
|
|
|
199423
199476
|
}
|
|
199424
199477
|
}
|
|
199425
199478
|
|
|
199426
|
-
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@
|
|
199479
|
+
// ../../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/get-oxygen-deployment-data.js
|
|
199427
199480
|
init_cjs_shims();
|
|
199428
199481
|
|
|
199429
|
-
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@
|
|
199482
|
+
// ../../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/render-errors.js
|
|
199430
199483
|
init_cjs_shims();
|
|
199431
199484
|
|
|
199432
|
-
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@
|
|
199485
|
+
// ../../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/admin-urls.js
|
|
199433
199486
|
init_cjs_shims();
|
|
199434
199487
|
function newHydrogenStorefrontUrl(session) {
|
|
199435
199488
|
const { storeFqdn } = session;
|
|
@@ -199440,7 +199493,7 @@ function hydrogenStorefrontsUrl(session) {
|
|
|
199440
199493
|
return `https://${storeFqdn}/admin/custom_storefronts`;
|
|
199441
199494
|
}
|
|
199442
199495
|
|
|
199443
|
-
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@
|
|
199496
|
+
// ../../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/render-errors.js
|
|
199444
199497
|
function renderMissingStorefront({
|
|
199445
199498
|
session,
|
|
199446
199499
|
storefront,
|
|
@@ -199483,7 +199536,7 @@ function renderMissingLink({ noStorefronts = false }) {
|
|
|
199483
199536
|
});
|
|
199484
199537
|
}
|
|
199485
199538
|
|
|
199486
|
-
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@
|
|
199539
|
+
// ../../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/get-oxygen-data.js
|
|
199487
199540
|
init_cjs_shims();
|
|
199488
199541
|
var GetDeploymentDataQuery = `#graphql
|
|
199489
199542
|
query GetDeploymentToken($id: ID!) {
|
|
@@ -199509,7 +199562,7 @@ async function getOxygenData(adminSession, storefrontId) {
|
|
|
199509
199562
|
return { storefront: hydrogenStorefront };
|
|
199510
199563
|
}
|
|
199511
199564
|
|
|
199512
|
-
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@
|
|
199565
|
+
// ../../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/verify-linked-storefront.js
|
|
199513
199566
|
init_cjs_shims();
|
|
199514
199567
|
async function verifyLinkedStorefront({
|
|
199515
199568
|
root,
|
|
@@ -199530,7 +199583,7 @@ async function verifyLinkedStorefront({
|
|
|
199530
199583
|
});
|
|
199531
199584
|
}
|
|
199532
199585
|
|
|
199533
|
-
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@
|
|
199586
|
+
// ../../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/get-oxygen-deployment-data.js
|
|
199534
199587
|
async function getOxygenDeploymentData({
|
|
199535
199588
|
root
|
|
199536
199589
|
}) {
|
|
@@ -199563,7 +199616,7 @@ async function getOxygenDeploymentData({
|
|
|
199563
199616
|
return storefront;
|
|
199564
199617
|
}
|
|
199565
199618
|
|
|
199566
|
-
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@
|
|
199619
|
+
// ../../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/deploy.js
|
|
199567
199620
|
var DEPLOY_OUTPUT_FILE_HANDLE = "h2_deploy_log.json";
|
|
199568
199621
|
var deploymentLogger = (message, level = "info") => {
|
|
199569
199622
|
if (level === "error" || level === "warn") {
|
|
@@ -200054,11 +200107,11 @@ Continue?`.value
|
|
|
200054
200107
|
return deployPromise;
|
|
200055
200108
|
}
|
|
200056
200109
|
|
|
200057
|
-
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@
|
|
200110
|
+
// ../../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/dev.js
|
|
200058
200111
|
init_cjs_shims();
|
|
200059
200112
|
var import_core22 = __toESM(require_lib(), 1);
|
|
200060
200113
|
|
|
200061
|
-
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@
|
|
200114
|
+
// ../../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/upgrade.js
|
|
200062
200115
|
init_cjs_shims();
|
|
200063
200116
|
var import_semver = __toESM(require_semver(), 1);
|
|
200064
200117
|
import { createRequire } from "node:module";
|
|
@@ -200206,7 +200259,7 @@ function cliTruncate(text, columns3, options = {}) {
|
|
|
200206
200259
|
throw new Error(`Expected \`options.position\` to be either \`start\`, \`middle\` or \`end\`, got ${position}`);
|
|
200207
200260
|
}
|
|
200208
200261
|
|
|
200209
|
-
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@
|
|
200262
|
+
// ../../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/upgrade.js
|
|
200210
200263
|
var import_core21 = __toESM(require_lib(), 1);
|
|
200211
200264
|
var INSTRUCTIONS_FOLDER = ".hydrogen";
|
|
200212
200265
|
var Upgrade2 = class _Upgrade extends base_command_default {
|
|
@@ -200930,11 +200983,11 @@ async function displayDevUpgradeNotice({
|
|
|
200930
200983
|
}
|
|
200931
200984
|
}
|
|
200932
200985
|
|
|
200933
|
-
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@
|
|
200986
|
+
// ../../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/classic-compiler/dev.js
|
|
200934
200987
|
init_cjs_shims();
|
|
200935
200988
|
import fs2 from "node:fs/promises";
|
|
200936
200989
|
|
|
200937
|
-
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@
|
|
200990
|
+
// ../../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/index.js
|
|
200938
200991
|
init_cjs_shims();
|
|
200939
200992
|
async function buildAssetsUrl(port, root) {
|
|
200940
200993
|
const { buildAssetsUrl: _buildAssetsUrl } = await importLocal(
|
|
@@ -200946,14 +200999,14 @@ async function buildAssetsUrl(port, root) {
|
|
|
200946
200999
|
async function startMiniOxygen(options, useNodeRuntime = false) {
|
|
200947
201000
|
if (useNodeRuntime) {
|
|
200948
201001
|
process.env.MINIFLARE_SUBREQUEST_LIMIT = 100;
|
|
200949
|
-
const { startNodeServer } = await import("./node-
|
|
201002
|
+
const { startNodeServer } = await import("./node-GZYZUMBW.js");
|
|
200950
201003
|
return startNodeServer(options);
|
|
200951
201004
|
}
|
|
200952
|
-
const { startWorkerdServer } = await import("./workerd-
|
|
201005
|
+
const { startWorkerdServer } = await import("./workerd-2MO23YDQ.js");
|
|
200953
201006
|
return startWorkerdServer(options);
|
|
200954
201007
|
}
|
|
200955
201008
|
|
|
200956
|
-
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@
|
|
201009
|
+
// ../../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/virtual-routes.js
|
|
200957
201010
|
init_cjs_shims();
|
|
200958
201011
|
var VIRTUAL_ROUTES_DIR = "virtual-routes/routes";
|
|
200959
201012
|
var VIRTUAL_ROOT = "virtual-routes/virtual-root";
|
|
@@ -200999,7 +201052,7 @@ async function addVirtualRoutes(config2) {
|
|
|
200999
201052
|
return config2;
|
|
201000
201053
|
}
|
|
201001
201054
|
|
|
201002
|
-
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@
|
|
201055
|
+
// ../../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/live-reload.js
|
|
201003
201056
|
init_cjs_shims();
|
|
201004
201057
|
import http from "node:http";
|
|
201005
201058
|
async function setupLiveReload(devServerPort, root) {
|
|
@@ -201070,7 +201123,7 @@ async function setupLiveReload(devServerPort, root) {
|
|
|
201070
201123
|
}
|
|
201071
201124
|
}
|
|
201072
201125
|
|
|
201073
|
-
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@
|
|
201126
|
+
// ../../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/classic-compiler/dev.js
|
|
201074
201127
|
var LOG_REBUILDING = "\u{1F9F1} Rebuilding...";
|
|
201075
201128
|
var LOG_REBUILT = "\u{1F680} Rebuilt";
|
|
201076
201129
|
async function runClassicCompilerDev({
|
|
@@ -201318,7 +201371,7 @@ async function runClassicCompilerDev({
|
|
|
201318
201371
|
};
|
|
201319
201372
|
}
|
|
201320
201373
|
|
|
201321
|
-
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@
|
|
201374
|
+
// ../../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/deps-optimizer.js
|
|
201322
201375
|
init_cjs_shims();
|
|
201323
201376
|
var throttledOptimizableDeps = /* @__PURE__ */ new Set();
|
|
201324
201377
|
var debouncedBannerTimeout;
|
|
@@ -201457,7 +201510,7 @@ ${source_default.dim(
|
|
|
201457
201510
|
});
|
|
201458
201511
|
}
|
|
201459
201512
|
|
|
201460
|
-
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@
|
|
201513
|
+
// ../../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/dev.js
|
|
201461
201514
|
var Dev2 = class _Dev extends base_command_default {
|
|
201462
201515
|
static descriptionWithMarkdown = `Runs a Hydrogen storefront in a local runtime that emulates an Oxygen worker for development.
|
|
201463
201516
|
|
|
@@ -201768,7 +201821,7 @@ function setupMonorepoReload(viteServer, monorepoPackagesPath, setupCodegen) {
|
|
|
201768
201821
|
});
|
|
201769
201822
|
}
|
|
201770
201823
|
|
|
201771
|
-
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@
|
|
201824
|
+
// ../../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/env/list.js
|
|
201772
201825
|
init_cjs_shims();
|
|
201773
201826
|
var EnvList = class _EnvList extends base_command_default {
|
|
201774
201827
|
static descriptionWithMarkdown = "Lists all environments available on the linked Hydrogen storefront.";
|
|
@@ -201845,7 +201898,7 @@ var pluralizedEnvironments = ({
|
|
|
201845
201898
|
);
|
|
201846
201899
|
};
|
|
201847
201900
|
|
|
201848
|
-
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@
|
|
201901
|
+
// ../../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/env/pull.js
|
|
201849
201902
|
init_cjs_shims();
|
|
201850
201903
|
|
|
201851
201904
|
// ../../node_modules/.pnpm/diff@5.1.0/node_modules/diff/lib/index.mjs
|
|
@@ -202176,7 +202229,7 @@ arrayDiff.join = arrayDiff.removeEmpty = function(value) {
|
|
|
202176
202229
|
return value;
|
|
202177
202230
|
};
|
|
202178
202231
|
|
|
202179
|
-
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@
|
|
202232
|
+
// ../../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/env/pull.js
|
|
202180
202233
|
var EnvPull = class _EnvPull extends base_command_default {
|
|
202181
202234
|
static descriptionWithMarkdown = "Pulls environment variables from the linked Hydrogen storefront and writes them to an `.env` file.";
|
|
202182
202235
|
static description = "Populate your .env with variables from your Hydrogen storefront.";
|
|
@@ -202284,11 +202337,11 @@ Continue?`.value
|
|
|
202284
202337
|
});
|
|
202285
202338
|
}
|
|
202286
202339
|
|
|
202287
|
-
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@
|
|
202340
|
+
// ../../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/env/push.js
|
|
202288
202341
|
init_cjs_shims();
|
|
202289
202342
|
var import_core23 = __toESM(require_lib(), 1);
|
|
202290
202343
|
|
|
202291
|
-
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@
|
|
202344
|
+
// ../../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/push-variables.js
|
|
202292
202345
|
init_cjs_shims();
|
|
202293
202346
|
var PushVariablesMutation = `#graphql
|
|
202294
202347
|
mutation PushVariables(
|
|
@@ -202322,7 +202375,7 @@ async function pushStorefrontEnvVariables(adminSession, storefrontId, environmen
|
|
|
202322
202375
|
return { userErrors };
|
|
202323
202376
|
}
|
|
202324
202377
|
|
|
202325
|
-
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@
|
|
202378
|
+
// ../../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/env/push.js
|
|
202326
202379
|
var EnvPush = class _EnvPush extends base_command_default {
|
|
202327
202380
|
static description = "Push environment variables from the local .env file to your linked Hydrogen storefront.";
|
|
202328
202381
|
static flags = {
|
|
@@ -202461,10 +202514,10 @@ Continue?`.value
|
|
|
202461
202514
|
});
|
|
202462
202515
|
}
|
|
202463
202516
|
|
|
202464
|
-
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@
|
|
202517
|
+
// ../../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/g.js
|
|
202465
202518
|
init_cjs_shims();
|
|
202466
202519
|
|
|
202467
|
-
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@
|
|
202520
|
+
// ../../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/generate/route.js
|
|
202468
202521
|
init_cjs_shims();
|
|
202469
202522
|
var import_core24 = __toESM(require_lib(), 1);
|
|
202470
202523
|
var GenerateRoute2 = class _GenerateRoute extends base_command_default {
|
|
@@ -202534,7 +202587,7 @@ async function runGenerate(options) {
|
|
|
202534
202587
|
});
|
|
202535
202588
|
}
|
|
202536
202589
|
|
|
202537
|
-
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@
|
|
202590
|
+
// ../../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/g.js
|
|
202538
202591
|
var GenerateRouteShortcut = class extends base_command_default {
|
|
202539
202592
|
static description = "Shortcut for `hydrogen generate`. See `hydrogen generate --help` for more information.";
|
|
202540
202593
|
static strict = false;
|
|
@@ -202548,7 +202601,7 @@ var GenerateRouteShortcut = class extends base_command_default {
|
|
|
202548
202601
|
}
|
|
202549
202602
|
};
|
|
202550
202603
|
|
|
202551
|
-
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@
|
|
202604
|
+
// ../../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/generate/routes.js
|
|
202552
202605
|
init_cjs_shims();
|
|
202553
202606
|
var GenerateRoutes = class _GenerateRoutes extends base_command_default {
|
|
202554
202607
|
static description = "Generates all supported standard shopify routes.";
|
|
@@ -202568,11 +202621,11 @@ var GenerateRoutes = class _GenerateRoutes extends base_command_default {
|
|
|
202568
202621
|
}
|
|
202569
202622
|
};
|
|
202570
202623
|
|
|
202571
|
-
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@
|
|
202624
|
+
// ../../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/init.js
|
|
202572
202625
|
init_cjs_shims();
|
|
202573
202626
|
var import_core25 = __toESM(require_lib(), 1);
|
|
202574
202627
|
|
|
202575
|
-
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@
|
|
202628
|
+
// ../../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/check-cli-version.js
|
|
202576
202629
|
init_cjs_shims();
|
|
202577
202630
|
import { fileURLToPath as fileURLToPath4 } from "node:url";
|
|
202578
202631
|
var UPGRADABLE_CLI_NAMES = {
|
|
@@ -202631,10 +202684,10 @@ You are currently running v${currentVersion}.
|
|
|
202631
202684
|
};
|
|
202632
202685
|
}
|
|
202633
202686
|
|
|
202634
|
-
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@
|
|
202687
|
+
// ../../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/index.js
|
|
202635
202688
|
init_cjs_shims();
|
|
202636
202689
|
|
|
202637
|
-
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@
|
|
202690
|
+
// ../../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/local.js
|
|
202638
202691
|
init_cjs_shims();
|
|
202639
202692
|
import { cp as cp2 } from "node:fs/promises";
|
|
202640
202693
|
async function setupLocalStarterTemplate(options, controller) {
|
|
@@ -202859,7 +202912,12 @@ async function setupLocalStarterTemplate(options, controller) {
|
|
|
202859
202912
|
).catch((error) => {
|
|
202860
202913
|
setupSummary.i18nError = error;
|
|
202861
202914
|
});
|
|
202862
|
-
await setupRoutes(project.directory, language,
|
|
202915
|
+
await setupRoutes(project.directory, language, {
|
|
202916
|
+
i18nStrategy,
|
|
202917
|
+
// The init process might have added and modified files. Do not overwrite them.
|
|
202918
|
+
// E.g. CSS imports might have been added to the root.
|
|
202919
|
+
overwriteFileDeps: false
|
|
202920
|
+
}).then((routes) => {
|
|
202863
202921
|
setupSummary.routes = routes;
|
|
202864
202922
|
if (options.git && routes) {
|
|
202865
202923
|
return commitAll(
|
|
@@ -202883,11 +202941,11 @@ async function setupLocalStarterTemplate(options, controller) {
|
|
|
202883
202941
|
};
|
|
202884
202942
|
}
|
|
202885
202943
|
|
|
202886
|
-
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@
|
|
202944
|
+
// ../../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/remote.js
|
|
202887
202945
|
init_cjs_shims();
|
|
202888
202946
|
import { readdir } from "node:fs/promises";
|
|
202889
202947
|
|
|
202890
|
-
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@
|
|
202948
|
+
// ../../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/template-downloader.js
|
|
202891
202949
|
init_cjs_shims();
|
|
202892
202950
|
var import_gunzip_maybe = __toESM(require_gunzip_maybe(), 1);
|
|
202893
202951
|
var import_tar_fs = __toESM(require_tar_fs(), 1);
|
|
@@ -202932,7 +202990,7 @@ function parseGitHubRepositoryReference(reference) {
|
|
|
202932
202990
|
};
|
|
202933
202991
|
}
|
|
202934
202992
|
|
|
202935
|
-
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@
|
|
202993
|
+
// ../../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/template-downloader.js
|
|
202936
202994
|
var REPO_RELEASES_URL = `https://api.github.com/repos/shopify/hydrogen/releases/latest`;
|
|
202937
202995
|
var getTryMessage = (status) => status === 403 ? `If you are using a VPN, WARP, or similar service, consider disabling it momentarily.` : void 0;
|
|
202938
202996
|
async function getLatestReleaseDownloadUrl(signal) {
|
|
@@ -203036,7 +203094,7 @@ async function downloadExternalRepo(appTemplate, signal) {
|
|
|
203036
203094
|
return { templateDir };
|
|
203037
203095
|
}
|
|
203038
203096
|
|
|
203039
|
-
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@
|
|
203097
|
+
// ../../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/remote.js
|
|
203040
203098
|
var DEMO_STORE_REPO = "shopify/hydrogen-demo-store";
|
|
203041
203099
|
async function setupRemoteTemplate(options, controller) {
|
|
203042
203100
|
const appTemplate = options.template === "demo-store" ? DEMO_STORE_REPO : options.template;
|
|
@@ -203160,7 +203218,7 @@ Skip the flag or provide the name of a template or example in the Hydrogen repos
|
|
|
203160
203218
|
);
|
|
203161
203219
|
}
|
|
203162
203220
|
|
|
203163
|
-
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@
|
|
203221
|
+
// ../../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/index.js
|
|
203164
203222
|
async function setupTemplate(options) {
|
|
203165
203223
|
const controller = new AbortController2();
|
|
203166
203224
|
try {
|
|
@@ -203172,7 +203230,7 @@ async function setupTemplate(options) {
|
|
|
203172
203230
|
}
|
|
203173
203231
|
}
|
|
203174
203232
|
|
|
203175
|
-
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@
|
|
203233
|
+
// ../../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/init.js
|
|
203176
203234
|
var FLAG_MAP = { f: "force" };
|
|
203177
203235
|
var Init2 = class _Init extends base_command_default {
|
|
203178
203236
|
static descriptionWithMarkdown = "Creates a new Hydrogen storefront.";
|
|
@@ -203257,7 +203315,7 @@ async function runInit({
|
|
|
203257
203315
|
options.path ??= "./hydrogen-quickstart";
|
|
203258
203316
|
options.routes ??= true;
|
|
203259
203317
|
options.shortcut ??= true;
|
|
203260
|
-
options.styling ??= "
|
|
203318
|
+
options.styling ??= "none";
|
|
203261
203319
|
}
|
|
203262
203320
|
const showUpgrade = await checkCurrentCLIVersion();
|
|
203263
203321
|
if (showUpgrade) {
|
|
@@ -203266,10 +203324,10 @@ async function runInit({
|
|
|
203266
203324
|
return setupTemplate(options);
|
|
203267
203325
|
}
|
|
203268
203326
|
|
|
203269
|
-
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@
|
|
203327
|
+
// ../../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/list.js
|
|
203270
203328
|
init_cjs_shims();
|
|
203271
203329
|
|
|
203272
|
-
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@
|
|
203330
|
+
// ../../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-storefronts.js
|
|
203273
203331
|
init_cjs_shims();
|
|
203274
203332
|
var ListStorefrontsQuery = `#graphql
|
|
203275
203333
|
query ListStorefronts {
|
|
@@ -203296,7 +203354,7 @@ async function getStorefrontsWithDeployment(adminSession) {
|
|
|
203296
203354
|
}));
|
|
203297
203355
|
}
|
|
203298
203356
|
|
|
203299
|
-
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@
|
|
203357
|
+
// ../../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/list.js
|
|
203300
203358
|
var List2 = class _List extends base_command_default {
|
|
203301
203359
|
static descriptionWithMarkdown = "Lists all remote Hydrogen storefronts available to link to your local development environment.";
|
|
203302
203360
|
static description = "Returns a list of Hydrogen storefronts available on a given shop.";
|
|
@@ -203382,7 +203440,7 @@ var pluralizedStorefronts = ({
|
|
|
203382
203440
|
);
|
|
203383
203441
|
};
|
|
203384
203442
|
|
|
203385
|
-
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@
|
|
203443
|
+
// ../../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/login.js
|
|
203386
203444
|
init_cjs_shims();
|
|
203387
203445
|
var Login = class _Login extends base_command_default {
|
|
203388
203446
|
static descriptionWithMarkdown = "Logs in to the specified shop and saves the shop domain to the project.";
|
|
@@ -203400,11 +203458,13 @@ async function runLogin({
|
|
|
203400
203458
|
path: root = process.cwd(),
|
|
203401
203459
|
shop: shopFlag
|
|
203402
203460
|
}) {
|
|
203461
|
+
outputNewline();
|
|
203462
|
+
enhanceAuthLogs(true);
|
|
203403
203463
|
const { config: config2 } = await login(root, shopFlag ?? true);
|
|
203404
203464
|
renderLoginSuccess(config2);
|
|
203405
203465
|
}
|
|
203406
203466
|
|
|
203407
|
-
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@
|
|
203467
|
+
// ../../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/logout.js
|
|
203408
203468
|
init_cjs_shims();
|
|
203409
203469
|
var Logout2 = class _Logout extends base_command_default {
|
|
203410
203470
|
static descriptionWithMarkdown = "Log out from the current shop.";
|
|
@@ -203418,11 +203478,12 @@ var Logout2 = class _Logout extends base_command_default {
|
|
|
203418
203478
|
}
|
|
203419
203479
|
};
|
|
203420
203480
|
async function runLogout({ path: root = process.cwd() }) {
|
|
203481
|
+
outputNewline();
|
|
203421
203482
|
await logout(root);
|
|
203422
203483
|
renderSuccess({ body: "You are logged out from Shopify." });
|
|
203423
203484
|
}
|
|
203424
203485
|
|
|
203425
|
-
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@
|
|
203486
|
+
// ../../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/preview.js
|
|
203426
203487
|
init_cjs_shims();
|
|
203427
203488
|
var import_core26 = __toESM(require_lib(), 1);
|
|
203428
203489
|
var Preview = class _Preview extends base_command_default {
|
|
@@ -203578,7 +203639,7 @@ async function runPreview({
|
|
|
203578
203639
|
};
|
|
203579
203640
|
}
|
|
203580
203641
|
|
|
203581
|
-
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@
|
|
203642
|
+
// ../../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/setup.js
|
|
203582
203643
|
init_cjs_shims();
|
|
203583
203644
|
var Setup = class _Setup extends base_command_default {
|
|
203584
203645
|
static description = "Scaffold routes and core functionality.";
|
|
@@ -203647,11 +203708,13 @@ async function runSetup(options) {
|
|
|
203647
203708
|
})
|
|
203648
203709
|
])
|
|
203649
203710
|
).then(async () => {
|
|
203650
|
-
routes = await setupRoutes(
|
|
203651
|
-
|
|
203652
|
-
|
|
203653
|
-
|
|
203654
|
-
|
|
203711
|
+
routes = await setupRoutes(rootDirectory, typescript ? "ts" : "js", {
|
|
203712
|
+
i18nStrategy: i18n,
|
|
203713
|
+
// User might have added files before running this command.
|
|
203714
|
+
// We should overwrite them to ensure the routes are set up correctly.
|
|
203715
|
+
// Relies on Git to restore the files if needed.
|
|
203716
|
+
overwriteFileDeps: true
|
|
203717
|
+
});
|
|
203655
203718
|
});
|
|
203656
203719
|
}
|
|
203657
203720
|
if (i18n) {
|
|
@@ -203692,7 +203755,7 @@ async function runSetup(options) {
|
|
|
203692
203755
|
);
|
|
203693
203756
|
}
|
|
203694
203757
|
|
|
203695
|
-
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@
|
|
203758
|
+
// ../../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/setup/css.js
|
|
203696
203759
|
init_cjs_shims();
|
|
203697
203760
|
var import_core27 = __toESM(require_lib(), 1);
|
|
203698
203761
|
var SetupCSS = class _SetupCSS extends base_command_default {
|
|
@@ -203788,7 +203851,7 @@ For more information, visit ${CSS_STRATEGY_HELP_URL_MAP[strategy]}`
|
|
|
203788
203851
|
}
|
|
203789
203852
|
}
|
|
203790
203853
|
|
|
203791
|
-
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@
|
|
203854
|
+
// ../../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/setup/markets.js
|
|
203792
203855
|
init_cjs_shims();
|
|
203793
203856
|
var import_core28 = __toESM(require_lib(), 1);
|
|
203794
203857
|
var SetupMarkets = class _SetupMarkets extends base_command_default {
|
|
@@ -203836,7 +203899,7 @@ async function runSetupMarkets({
|
|
|
203836
203899
|
});
|
|
203837
203900
|
}
|
|
203838
203901
|
|
|
203839
|
-
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@
|
|
203902
|
+
// ../../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/setup/vite.js
|
|
203840
203903
|
init_cjs_shims();
|
|
203841
203904
|
var SetupVite = class _SetupVite extends base_command_default {
|
|
203842
203905
|
static description = "EXPERIMENTAL: Upgrades the project to use Vite.";
|
|
@@ -204137,7 +204200,7 @@ Please use Git to review the changes.`,
|
|
|
204137
204200
|
});
|
|
204138
204201
|
}
|
|
204139
204202
|
|
|
204140
|
-
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@
|
|
204203
|
+
// ../../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/shortcut.js
|
|
204141
204204
|
init_cjs_shims();
|
|
204142
204205
|
var Shortcut = class extends base_command_default {
|
|
204143
204206
|
static descriptionWithMarkdown = `Creates a global h2 shortcut for Shopify CLI using shell aliases.
|
|
@@ -204175,7 +204238,7 @@ Restart your terminal session and run \`${ALIAS_NAME}\` from your local project.
|
|
|
204175
204238
|
}
|
|
204176
204239
|
}
|
|
204177
204240
|
|
|
204178
|
-
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@
|
|
204241
|
+
// ../../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/unlink.js
|
|
204179
204242
|
init_cjs_shims();
|
|
204180
204243
|
var Unlink = class _Unlink extends base_command_default {
|
|
204181
204244
|
static descriptionWithMarkdown = "Unlinks your local development environment from a remote Hydrogen storefront.";
|
|
@@ -204202,7 +204265,7 @@ async function unlinkStorefront({ path: path4 }) {
|
|
|
204202
204265
|
});
|
|
204203
204266
|
}
|
|
204204
204267
|
|
|
204205
|
-
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@
|
|
204268
|
+
// ../../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/hooks/init.js
|
|
204206
204269
|
init_cjs_shims();
|
|
204207
204270
|
import { createRequire as createRequire2 } from "node:module";
|
|
204208
204271
|
import { spawnSync } from "node:child_process";
|
|
@@ -204255,16 +204318,19 @@ function commandNeedsVM(id = "", argv = []) {
|
|
|
204255
204318
|
function isHydrogenProject(projectPath) {
|
|
204256
204319
|
try {
|
|
204257
204320
|
const require22 = createRequire2(import.meta.url);
|
|
204258
|
-
const { dependencies } = require22(joinPath(
|
|
204259
|
-
|
|
204260
|
-
|
|
204321
|
+
const { dependencies, scripts } = require22(joinPath(
|
|
204322
|
+
projectPath,
|
|
204323
|
+
"package.json"
|
|
204324
|
+
));
|
|
204325
|
+
return !!dependencies?.["@shopify/hydrogen"] || // Diff examples don't have dependencies:
|
|
204326
|
+
!!scripts?.dev?.includes("--diff");
|
|
204261
204327
|
} catch {
|
|
204262
204328
|
return false;
|
|
204263
204329
|
}
|
|
204264
204330
|
}
|
|
204265
204331
|
var init_default2 = hook;
|
|
204266
204332
|
|
|
204267
|
-
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@
|
|
204333
|
+
// ../../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/index.js
|
|
204268
204334
|
var COMMANDS2 = {
|
|
204269
204335
|
"hydrogen:dev": Dev2,
|
|
204270
204336
|
"hydrogen:build": Build,
|