@shopify/cli 3.61.0 → 3.61.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/.eslintrc.cjs +1 -0
- package/dist/assets/hydrogen/starter/CHANGELOG.md +12 -74
- package/dist/assets/hydrogen/starter/app/components/Footer.tsx +3 -3
- package/dist/assets/hydrogen/starter/app/components/PageLayout.tsx +1 -1
- package/dist/assets/hydrogen/starter/app/root.tsx +77 -37
- package/dist/assets/hydrogen/starter/app/routes/_index.tsx +62 -25
- package/dist/assets/hydrogen/starter/app/routes/blogs.$blogHandle.$articleHandle.tsx +32 -6
- package/dist/assets/hydrogen/starter/app/routes/blogs.$blogHandle._index.tsx +36 -10
- package/dist/assets/hydrogen/starter/app/routes/blogs._index.tsx +35 -12
- package/dist/assets/hydrogen/starter/app/routes/collections.$handle.tsx +40 -7
- package/dist/assets/hydrogen/starter/app/routes/collections._index.tsx +32 -6
- package/dist/assets/hydrogen/starter/app/routes/collections.all.tsx +31 -6
- package/dist/assets/hydrogen/starter/app/routes/pages.$handle.tsx +36 -8
- package/dist/assets/hydrogen/starter/app/routes/products.$handle.tsx +50 -11
- package/dist/assets/hydrogen/starter/package.json +6 -7
- package/dist/assets/hydrogen/virtual-routes/components/RequestDetails.jsx +1 -2
- package/dist/assets/hydrogen/virtual-routes/components/RequestTable.jsx +1 -2
- package/dist/assets/hydrogen/virtual-routes/routes/index.jsx +1 -2
- package/dist/{chunk-LXXUWZRO.js → chunk-2OLSNRWX.js} +2 -2
- package/dist/{chunk-FFHJRSIP.js → chunk-4IJQUE7S.js} +1 -1
- package/dist/{chunk-2RKUO75O.js → chunk-4L5RRXWK.js} +129 -124
- package/dist/{chunk-75BJ33EP.js → chunk-5AOK2Y6Y.js} +2 -2
- package/dist/{chunk-4IXC46ZA.js → chunk-5CMD3IOB.js} +4 -4
- package/dist/{chunk-QX3YP6O5.js → chunk-5KRK4DLX.js} +2598 -795
- package/dist/{chunk-463OPQAS.js → chunk-72B3OWJW.js} +1 -1
- package/dist/{chunk-FWKRA64T.js → chunk-APKJSJ7J.js} +3 -3
- package/dist/{chunk-Q7PY7LVL.js → chunk-BV7GMWB6.js} +3 -3
- package/dist/{chunk-ABZKHSZ5.js → chunk-CJDUY6SJ.js} +1 -1
- package/dist/{chunk-7YJH7P7B.js → chunk-CWYZA7C7.js} +1 -1
- package/dist/{chunk-AL4KPZUN.js → chunk-CZ3HSQWY.js} +2 -2
- package/dist/{chunk-XRFOYWYI.js → chunk-D6WPLX6I.js} +2 -2
- package/dist/{chunk-EFL5CN6M.js → chunk-DDSNKVSE.js} +4 -4
- package/dist/{chunk-63QEL3SZ.js → chunk-EE47RXD7.js} +4 -4
- package/dist/{chunk-RW6YXHBL.js → chunk-FAJJWN6E.js} +12 -12
- package/dist/{chunk-OOAZSPYS.js → chunk-IH7T5JPW.js} +3 -3
- package/dist/{chunk-DWXXFI3U.js → chunk-IHBQYIUZ.js} +6 -6
- package/dist/{chunk-WNXHHHLZ.js → chunk-ITNVIYE3.js} +3 -3
- package/dist/{chunk-CMFKWJDJ.js → chunk-IWPRI3XU.js} +3 -3
- package/dist/{chunk-EDVQGTOL.js → chunk-K7AOF3FH.js} +4 -4
- package/dist/{chunk-2Q7SKRRM.js → chunk-K7RRB5XV.js} +162 -131
- package/dist/{chunk-3W2QB2OC.js → chunk-KKVOR377.js} +2 -2
- package/dist/{chunk-LY6UIYOG.js → chunk-KNQWUKO7.js} +2 -2
- package/dist/{chunk-ZOTASNQ2.js → chunk-MOWOUC6B.js} +1 -1
- package/dist/{chunk-ONJCU4C5.js → chunk-MUSUHPY2.js} +2 -2
- package/dist/{chunk-O53XNGJU.js → chunk-MVPEKELJ.js} +1 -1
- package/dist/{chunk-YZIPQNOG.js → chunk-MZ2TTN37.js} +2 -2
- package/dist/{chunk-2AH5EBXL.js → chunk-NNUPTNLQ.js} +4 -4
- package/dist/{chunk-UJQBYPRO.js → chunk-OC4AY5G7.js} +1 -1
- package/dist/{chunk-V67RXPI6.js → chunk-PMW2LD65.js} +3 -3
- package/dist/{chunk-5NBS5LAW.js → chunk-Q5FUGUDS.js} +1 -1
- package/dist/{chunk-TXDYKQZT.js → chunk-QMWGTSUE.js} +4 -4
- package/dist/{chunk-JZ5DN7RX.js → chunk-WLP3ZOM3.js} +2509 -728
- package/dist/{chunk-IIVL4DYB.js → chunk-WVPWWPI5.js} +2 -2
- package/dist/{chunk-XDCNK2SU.js → chunk-WZTRJKOI.js} +2 -2
- package/dist/{chunk-B4KDQK3X.js → chunk-XMZ6YUCX.js} +2 -2
- package/dist/{chunk-LUGC3D2G.js → chunk-YWPV7MV2.js} +6 -6
- package/dist/{chunk-HJ2JCW7E.js → chunk-Z5LDVTOK.js} +2 -2
- package/dist/cli/commands/auth/logout.js +18 -18
- package/dist/cli/commands/auth/logout.test.js +19 -19
- package/dist/cli/commands/debug/command-flags.js +17 -17
- package/dist/cli/commands/demo/catalog.js +18 -18
- package/dist/cli/commands/demo/generate-file.js +18 -18
- package/dist/cli/commands/demo/index.js +17 -17
- package/dist/cli/commands/demo/print-ai-prompt.js +18 -18
- package/dist/cli/commands/docs/generate.js +17 -17
- package/dist/cli/commands/docs/generate.test.js +17 -17
- package/dist/cli/commands/help.js +17 -17
- package/dist/cli/commands/kitchen-sink/async.js +18 -18
- package/dist/cli/commands/kitchen-sink/async.test.js +18 -18
- package/dist/cli/commands/kitchen-sink/index.js +20 -20
- package/dist/cli/commands/kitchen-sink/index.test.js +20 -20
- package/dist/cli/commands/kitchen-sink/prompts.js +18 -18
- package/dist/cli/commands/kitchen-sink/prompts.test.js +18 -18
- package/dist/cli/commands/kitchen-sink/static.js +18 -18
- package/dist/cli/commands/kitchen-sink/static.test.js +18 -18
- package/dist/cli/commands/search.js +18 -18
- package/dist/cli/commands/upgrade.js +17 -17
- package/dist/cli/commands/version.js +18 -18
- package/dist/cli/commands/version.test.js +18 -18
- package/dist/cli/services/commands/search.js +8 -8
- package/dist/cli/services/commands/search.test.js +8 -8
- package/dist/cli/services/commands/version.js +11 -11
- package/dist/cli/services/commands/version.test.js +12 -12
- package/dist/cli/services/demo.js +8 -8
- package/dist/cli/services/demo.test.js +8 -8
- package/dist/cli/services/kitchen-sink/async.js +8 -8
- package/dist/cli/services/kitchen-sink/prompts.js +8 -8
- package/dist/cli/services/kitchen-sink/static.js +8 -8
- package/dist/cli/services/upgrade.js +10 -10
- package/dist/cli/services/upgrade.test.js +11 -11
- package/dist/{chunk-5R5656YY.js → custom-oclif-loader-FPNRMQLJ.js} +18 -3
- package/dist/{custom-oclif-loader-KLTAWG4B-VOMMA3PO.js → custom-oclif-loader-RLNBRURI-YQ7IWI5Q.js} +4 -4
- package/dist/{error-handler-UJK7WNJE.js → error-handler-5ZOJ546L.js} +10 -10
- package/dist/{error-handler-ND7WBMC3-CRFJKAS4.js → error-handler-764JJPWK-SOMSJP6S.js} +6 -6
- package/dist/{error-handler-FUQWOW4J.js → error-handler-EOKEDDHC.js} +15 -15
- package/dist/hooks/postrun.js +13 -13
- package/dist/hooks/prerun.js +10 -10
- package/dist/index.js +309 -241
- package/dist/{lib-76RCE6WZ-AR3SQY6Y.js → lib-76RCE6WZ-5IYGTKKK.js} +2 -2
- package/dist/{lib-MWSNLG5P.js → lib-UYK3ZLZK.js} +3 -3
- package/dist/{local-3LWDOA7J-UFWE2V6L.js → local-GRWHBAAP-GLATK6HY.js} +4 -4
- package/dist/{local-5OND5PI5.js → local-S7EXCS5E.js} +7 -7
- package/dist/{morph-FQNWYET7.js → morph-XX23WEJZ.js} +25 -8
- package/dist/{node-WNJUHXTR.js → node-SSGKCHRY.js} +14 -14
- package/dist/{node-package-manager-ISP2P5R3.js → node-package-manager-V7QQWFES.js} +9 -9
- package/dist/{node-package-manager-TFY2ROCP-DDJAU44T.js → node-package-manager-VZCY35QS-AGCABGK7.js} +5 -5
- package/dist/{system-G445DF53.js → system-P6PSEW7S.js} +7 -7
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/dist/{ui-ITQVVPJU.js → ui-JSBDAFMV.js} +7 -7
- package/dist/{ui-MUGCNPLG-UG4N3GMV.js → ui-P6NP425V-CKQLZD3E.js} +4 -4
- package/dist/{workerd-EZVOCUQW.js → workerd-3U2NNCIK.js} +13 -13
- package/oclif.manifest.json +1 -1
- package/package.json +4 -5
- package/dist/custom-oclif-loader-PJJ3H2WB.js +0 -28
- package/dist/hooks/init.d.ts +0 -12
- package/dist/hooks/init.js +0 -66
- package/dist/hooks/init.js.map +0 -1
- package/dist/{chunk-67MDUPX5.js → chunk-I434ZJQI.js} +7 -7
- package/dist/{chunk-74JT4RJX.js → chunk-VF4VWJWS.js} +3 -3
package/dist/index.js
CHANGED
|
@@ -7,7 +7,8 @@ import {
|
|
|
7
7
|
hashString as hashString2,
|
|
8
8
|
registerCleanBugsnagErrorsFromWithinPlugins,
|
|
9
9
|
username
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-WLP3ZOM3.js";
|
|
11
|
+
import "./chunk-T77LT3XG.js";
|
|
11
12
|
import {
|
|
12
13
|
UnknownPackageManagerError,
|
|
13
14
|
findUpAndReadPackageJson,
|
|
@@ -16,8 +17,7 @@ import {
|
|
|
16
17
|
packageManager,
|
|
17
18
|
packageManagerFromUserAgent as packageManagerFromUserAgent2,
|
|
18
19
|
writePackageJSON
|
|
19
|
-
} from "./chunk-
|
|
20
|
-
import "./chunk-T77LT3XG.js";
|
|
20
|
+
} from "./chunk-D6WPLX6I.js";
|
|
21
21
|
import {
|
|
22
22
|
AbortError as AbortError3,
|
|
23
23
|
addPublicMetadata as addPublicMetadata2,
|
|
@@ -62,9 +62,9 @@ import {
|
|
|
62
62
|
terminalSupportsRawMode as terminalSupportsRawMode2,
|
|
63
63
|
underscore,
|
|
64
64
|
writeFile as writeFile3
|
|
65
|
-
} from "./chunk-
|
|
65
|
+
} from "./chunk-DDSNKVSE.js";
|
|
66
66
|
import {
|
|
67
|
-
cwd as
|
|
67
|
+
cwd as cwd3,
|
|
68
68
|
dirname2 as dirname22,
|
|
69
69
|
joinPath as joinPath3,
|
|
70
70
|
moduleDirectory as moduleDirectory2,
|
|
@@ -75,11 +75,10 @@ import {
|
|
|
75
75
|
import {
|
|
76
76
|
require_lib2 as require_lib22,
|
|
77
77
|
require_src as require_src2
|
|
78
|
-
} from "./chunk-
|
|
79
|
-
import "./chunk-3LWRRBH5.js";
|
|
78
|
+
} from "./chunk-VF4VWJWS.js";
|
|
80
79
|
import {
|
|
81
80
|
findPort
|
|
82
|
-
} from "./chunk-
|
|
81
|
+
} from "./chunk-WVPWWPI5.js";
|
|
83
82
|
import {
|
|
84
83
|
ALIAS_NAME,
|
|
85
84
|
ALL_ROUTE_CHOICES,
|
|
@@ -199,7 +198,7 @@ import {
|
|
|
199
198
|
supressNodeExperimentalWarnings,
|
|
200
199
|
unsetStorefront,
|
|
201
200
|
waitForJob
|
|
202
|
-
} from "./chunk-
|
|
201
|
+
} from "./chunk-K7RRB5XV.js";
|
|
203
202
|
import {
|
|
204
203
|
require_normalize_path
|
|
205
204
|
} from "./chunk-3MBQVTEX.js";
|
|
@@ -207,6 +206,7 @@ import "./chunk-MXHK26B3.js";
|
|
|
207
206
|
import "./chunk-ZZGXXS5X.js";
|
|
208
207
|
import "./chunk-J4I3URIN.js";
|
|
209
208
|
import "./chunk-RTZHOWFC.js";
|
|
209
|
+
import "./chunk-3LWRRBH5.js";
|
|
210
210
|
import {
|
|
211
211
|
__commonJS as __commonJS2,
|
|
212
212
|
__export as __export2,
|
|
@@ -226,6 +226,7 @@ import {
|
|
|
226
226
|
copyFile as copyFile2,
|
|
227
227
|
createFileReadStream as createFileReadStream2,
|
|
228
228
|
currentProcessIsGlobal as currentProcessIsGlobal2,
|
|
229
|
+
cwd as cwd2,
|
|
229
230
|
dirname as dirname2,
|
|
230
231
|
extname as extname2,
|
|
231
232
|
fetch as fetch3,
|
|
@@ -270,42 +271,42 @@ import {
|
|
|
270
271
|
rmdir,
|
|
271
272
|
touchFile as touchFile2,
|
|
272
273
|
writeFile as writeFile2
|
|
273
|
-
} from "./chunk-
|
|
274
|
+
} from "./chunk-4L5RRXWK.js";
|
|
275
|
+
import {
|
|
276
|
+
import_websocket_server
|
|
277
|
+
} from "./chunk-4VEOJ5JD.js";
|
|
274
278
|
import {
|
|
275
279
|
require_fs,
|
|
276
280
|
require_glob,
|
|
277
281
|
require_inflight,
|
|
278
282
|
require_inherits
|
|
279
283
|
} from "./chunk-QOHDW3X5.js";
|
|
280
|
-
import {
|
|
281
|
-
import_websocket_server
|
|
282
|
-
} from "./chunk-4VEOJ5JD.js";
|
|
283
284
|
import {
|
|
284
285
|
KitchenSinkStatic
|
|
285
|
-
} from "./chunk-
|
|
286
|
+
} from "./chunk-5AOK2Y6Y.js";
|
|
286
287
|
import {
|
|
287
288
|
Search
|
|
288
|
-
} from "./chunk-
|
|
289
|
+
} from "./chunk-IWPRI3XU.js";
|
|
289
290
|
import {
|
|
290
291
|
Upgrade
|
|
291
|
-
} from "./chunk-
|
|
292
|
+
} from "./chunk-APKJSJ7J.js";
|
|
292
293
|
import {
|
|
293
294
|
Version
|
|
294
|
-
} from "./chunk-
|
|
295
|
-
import "./chunk-
|
|
296
|
-
import "./chunk-
|
|
295
|
+
} from "./chunk-2OLSNRWX.js";
|
|
296
|
+
import "./chunk-IH7T5JPW.js";
|
|
297
|
+
import "./chunk-CJDUY6SJ.js";
|
|
297
298
|
import {
|
|
298
299
|
HelpCommand
|
|
299
|
-
} from "./chunk-
|
|
300
|
+
} from "./chunk-Z5LDVTOK.js";
|
|
300
301
|
import {
|
|
301
302
|
KitchenSinkAsync
|
|
302
|
-
} from "./chunk-
|
|
303
|
-
import "./chunk-
|
|
304
|
-
import "./chunk-
|
|
303
|
+
} from "./chunk-MUSUHPY2.js";
|
|
304
|
+
import "./chunk-MVPEKELJ.js";
|
|
305
|
+
import "./chunk-72B3OWJW.js";
|
|
305
306
|
import {
|
|
306
307
|
KitchenSinkPrompts
|
|
307
|
-
} from "./chunk-
|
|
308
|
-
import "./chunk-
|
|
308
|
+
} from "./chunk-WZTRJKOI.js";
|
|
309
|
+
import "./chunk-MZ2TTN37.js";
|
|
309
310
|
import {
|
|
310
311
|
FunctionUploadUrlGenerateMutation,
|
|
311
312
|
LocalStorage,
|
|
@@ -325,29 +326,29 @@ import {
|
|
|
325
326
|
ok,
|
|
326
327
|
partnersFqdn,
|
|
327
328
|
partnersRequest
|
|
328
|
-
} from "./chunk-
|
|
329
|
+
} from "./chunk-FAJJWN6E.js";
|
|
329
330
|
import {
|
|
330
331
|
checkPort,
|
|
331
332
|
getRandomPort,
|
|
332
333
|
require_lib as require_lib3
|
|
333
|
-
} from "./chunk-
|
|
334
|
+
} from "./chunk-OC4AY5G7.js";
|
|
334
335
|
import {
|
|
335
336
|
setNextDeprecationDate
|
|
336
337
|
} from "./chunk-KDOLMUJB.js";
|
|
337
338
|
import {
|
|
338
339
|
CommandFlags
|
|
339
|
-
} from "./chunk-
|
|
340
|
+
} from "./chunk-ITNVIYE3.js";
|
|
340
341
|
import {
|
|
341
342
|
Catalog
|
|
342
|
-
} from "./chunk-
|
|
343
|
+
} from "./chunk-PMW2LD65.js";
|
|
343
344
|
import {
|
|
344
345
|
GenerateFile
|
|
345
|
-
} from "./chunk-
|
|
346
|
+
} from "./chunk-NNUPTNLQ.js";
|
|
346
347
|
import {
|
|
347
348
|
PrintAIPrompt
|
|
348
|
-
} from "./chunk-
|
|
349
|
+
} from "./chunk-BV7GMWB6.js";
|
|
349
350
|
import "./chunk-IUHH3PST.js";
|
|
350
|
-
import "./chunk-
|
|
351
|
+
import "./chunk-MOWOUC6B.js";
|
|
351
352
|
import {
|
|
352
353
|
deepStrict,
|
|
353
354
|
errorsToString
|
|
@@ -357,14 +358,14 @@ import {
|
|
|
357
358
|
} from "./chunk-LAY4AEXX.js";
|
|
358
359
|
import {
|
|
359
360
|
DocsGenerate
|
|
360
|
-
} from "./chunk-
|
|
361
|
+
} from "./chunk-CZ3HSQWY.js";
|
|
361
362
|
import {
|
|
362
363
|
base_command_default,
|
|
363
364
|
decodeToml,
|
|
364
365
|
encodeToml
|
|
365
|
-
} from "./chunk-
|
|
366
|
+
} from "./chunk-K7AOF3FH.js";
|
|
366
367
|
import "./chunk-4XNS74OG.js";
|
|
367
|
-
import "./chunk-
|
|
368
|
+
import "./chunk-IHBQYIUZ.js";
|
|
368
369
|
import {
|
|
369
370
|
require_byline,
|
|
370
371
|
require_end_of_stream,
|
|
@@ -373,9 +374,6 @@ import {
|
|
|
373
374
|
require_pump,
|
|
374
375
|
require_stack_generator
|
|
375
376
|
} from "./chunk-CKKROMZF.js";
|
|
376
|
-
import {
|
|
377
|
-
require_once
|
|
378
|
-
} from "./chunk-LKGDG6WW.js";
|
|
379
377
|
import {
|
|
380
378
|
buildHeaders,
|
|
381
379
|
execCLI2,
|
|
@@ -388,7 +386,7 @@ import {
|
|
|
388
386
|
getOrganization,
|
|
389
387
|
reportAnalyticsEvent,
|
|
390
388
|
version
|
|
391
|
-
} from "./chunk-
|
|
389
|
+
} from "./chunk-EE47RXD7.js";
|
|
392
390
|
import {
|
|
393
391
|
ClientError,
|
|
394
392
|
FetchError,
|
|
@@ -396,19 +394,22 @@ import {
|
|
|
396
394
|
require_graphql,
|
|
397
395
|
require_lib as require_lib2,
|
|
398
396
|
require_mime_types
|
|
399
|
-
} from "./chunk-
|
|
397
|
+
} from "./chunk-5KRK4DLX.js";
|
|
400
398
|
import "./chunk-HTYJDJRZ.js";
|
|
401
399
|
import {
|
|
402
400
|
fileHash,
|
|
403
401
|
hashString,
|
|
404
402
|
randomUUID
|
|
405
|
-
} from "./chunk-
|
|
403
|
+
} from "./chunk-XMZ6YUCX.js";
|
|
406
404
|
import {
|
|
407
405
|
platformAndArch
|
|
408
406
|
} from "./chunk-OQBI57X3.js";
|
|
407
|
+
import {
|
|
408
|
+
require_once
|
|
409
|
+
} from "./chunk-LKGDG6WW.js";
|
|
409
410
|
import {
|
|
410
411
|
CLI_KIT_VERSION
|
|
411
|
-
} from "./chunk-
|
|
412
|
+
} from "./chunk-Q5FUGUDS.js";
|
|
412
413
|
import {
|
|
413
414
|
addNPMDependenciesIfNeeded,
|
|
414
415
|
addResolutionOrOverride,
|
|
@@ -421,8 +422,8 @@ import {
|
|
|
421
422
|
installNodeModules,
|
|
422
423
|
readAndParsePackageJson,
|
|
423
424
|
usesWorkspaces
|
|
424
|
-
} from "./chunk-
|
|
425
|
-
import "./chunk-
|
|
425
|
+
} from "./chunk-KNQWUKO7.js";
|
|
426
|
+
import "./chunk-CWYZA7C7.js";
|
|
426
427
|
import {
|
|
427
428
|
require_semver
|
|
428
429
|
} from "./chunk-FAFQQMD4.js";
|
|
@@ -545,7 +546,7 @@ import {
|
|
|
545
546
|
use_stdin_default,
|
|
546
547
|
writeFile,
|
|
547
548
|
writeFileSync
|
|
548
|
-
} from "./chunk-
|
|
549
|
+
} from "./chunk-5CMD3IOB.js";
|
|
549
550
|
import {
|
|
550
551
|
ansi_escapes_default,
|
|
551
552
|
copy,
|
|
@@ -592,11 +593,8 @@ import {
|
|
|
592
593
|
stripAnsi,
|
|
593
594
|
temporaryDirectory,
|
|
594
595
|
tslib_es6_exports
|
|
595
|
-
} from "./chunk-
|
|
596
|
+
} from "./chunk-YWPV7MV2.js";
|
|
596
597
|
import "./chunk-FQIRJADJ.js";
|
|
597
|
-
import {
|
|
598
|
-
require_graceful_fs
|
|
599
|
-
} from "./chunk-FBB6KUZG.js";
|
|
600
598
|
import {
|
|
601
599
|
defaultThemeKitAccessDomain,
|
|
602
600
|
environmentVariables,
|
|
@@ -605,17 +603,15 @@ import {
|
|
|
605
603
|
import "./chunk-SZQX5J7X.js";
|
|
606
604
|
import {
|
|
607
605
|
require_lib
|
|
608
|
-
} from "./chunk-
|
|
609
|
-
import {
|
|
610
|
-
require_brace_expansion,
|
|
611
|
-
require_buffer_from
|
|
612
|
-
} from "./chunk-PBFWVFAQ.js";
|
|
606
|
+
} from "./chunk-I434ZJQI.js";
|
|
613
607
|
import {
|
|
614
608
|
require_src
|
|
615
609
|
} from "./chunk-FWGRGI4R.js";
|
|
616
610
|
import "./chunk-BE73NZXB.js";
|
|
617
|
-
import
|
|
618
|
-
|
|
611
|
+
import {
|
|
612
|
+
require_brace_expansion,
|
|
613
|
+
require_buffer_from
|
|
614
|
+
} from "./chunk-PBFWVFAQ.js";
|
|
619
615
|
import "./chunk-WCNR75S2.js";
|
|
620
616
|
import {
|
|
621
617
|
basename,
|
|
@@ -630,6 +626,11 @@ import {
|
|
|
630
626
|
resolvePath
|
|
631
627
|
} from "./chunk-MHMFNQE3.js";
|
|
632
628
|
import "./chunk-3PIGYQSE.js";
|
|
629
|
+
import {
|
|
630
|
+
require_graceful_fs
|
|
631
|
+
} from "./chunk-FBB6KUZG.js";
|
|
632
|
+
import "./chunk-VQZ2SHRY.js";
|
|
633
|
+
import "./chunk-6SL33DOA.js";
|
|
633
634
|
import {
|
|
634
635
|
require_micromatch
|
|
635
636
|
} from "./chunk-BZJX2NV6.js";
|
|
@@ -25235,12 +25236,12 @@ var require_common2 = __commonJS({
|
|
|
25235
25236
|
self2.symlinks = options.symlinks || /* @__PURE__ */ Object.create(null);
|
|
25236
25237
|
setupIgnores(self2, options);
|
|
25237
25238
|
self2.changedCwd = false;
|
|
25238
|
-
var
|
|
25239
|
+
var cwd4 = process.cwd();
|
|
25239
25240
|
if (!ownProp(options, "cwd"))
|
|
25240
|
-
self2.cwd = path5.resolve(
|
|
25241
|
+
self2.cwd = path5.resolve(cwd4);
|
|
25241
25242
|
else {
|
|
25242
25243
|
self2.cwd = path5.resolve(options.cwd);
|
|
25243
|
-
self2.changedCwd = self2.cwd !==
|
|
25244
|
+
self2.changedCwd = self2.cwd !== cwd4;
|
|
25244
25245
|
}
|
|
25245
25246
|
self2.root = options.root || path5.resolve(self2.cwd, "/");
|
|
25246
25247
|
self2.root = path5.resolve(self2.root);
|
|
@@ -43210,7 +43211,7 @@ var require_files = __commonJS({
|
|
|
43210
43211
|
function isWindows() {
|
|
43211
43212
|
return process.platform === "win32";
|
|
43212
43213
|
}
|
|
43213
|
-
function resolve2(moduleName, nodePath2,
|
|
43214
|
+
function resolve2(moduleName, nodePath2, cwd4, tracer) {
|
|
43214
43215
|
const nodePathKey = "NODE_PATH";
|
|
43215
43216
|
const app = [
|
|
43216
43217
|
"var p = process;",
|
|
@@ -43246,7 +43247,7 @@ var require_files = __commonJS({
|
|
|
43246
43247
|
newEnv["ELECTRON_RUN_AS_NODE"] = "1";
|
|
43247
43248
|
try {
|
|
43248
43249
|
let cp = (0, child_process_1.fork)("", [], {
|
|
43249
|
-
cwd:
|
|
43250
|
+
cwd: cwd4,
|
|
43250
43251
|
env: newEnv,
|
|
43251
43252
|
execArgv: ["-e", app]
|
|
43252
43253
|
});
|
|
@@ -54770,7 +54771,7 @@ var require_readdir_glob = __commonJS({
|
|
|
54770
54771
|
};
|
|
54771
54772
|
}
|
|
54772
54773
|
var ReaddirGlob = class extends EventEmitter2 {
|
|
54773
|
-
constructor(
|
|
54774
|
+
constructor(cwd4, options, cb) {
|
|
54774
54775
|
super();
|
|
54775
54776
|
if (typeof options === "function") {
|
|
54776
54777
|
cb = options;
|
|
@@ -54803,7 +54804,7 @@ var require_readdir_glob = __commonJS({
|
|
|
54803
54804
|
(skip) => new Minimatch(skip, { dot: true })
|
|
54804
54805
|
);
|
|
54805
54806
|
}
|
|
54806
|
-
this.iterator = explore(resolve2(
|
|
54807
|
+
this.iterator = explore(resolve2(cwd4 || "."), this.options.follow, this.options.stat, this._shouldSkipDirectory.bind(this));
|
|
54807
54808
|
this.paused = false;
|
|
54808
54809
|
this.inactive = false;
|
|
54809
54810
|
this.aborted = false;
|
|
@@ -70084,13 +70085,13 @@ var require_tar_fs = __commonJS({
|
|
|
70084
70085
|
var normalize = !win32 ? echo : function(name) {
|
|
70085
70086
|
return name.replace(/\\/g, "/").replace(/[:?<>|]/g, "_");
|
|
70086
70087
|
};
|
|
70087
|
-
var statAll = function(fs7, stat,
|
|
70088
|
+
var statAll = function(fs7, stat, cwd4, ignore, entries, sort2) {
|
|
70088
70089
|
var queue = entries || ["."];
|
|
70089
70090
|
return function loop(callback) {
|
|
70090
70091
|
if (!queue.length)
|
|
70091
70092
|
return callback();
|
|
70092
70093
|
var next = queue.shift();
|
|
70093
|
-
var nextAbs = path5.join(
|
|
70094
|
+
var nextAbs = path5.join(cwd4, next);
|
|
70094
70095
|
stat.call(fs7, nextAbs, function(err3, stat2) {
|
|
70095
70096
|
if (err3)
|
|
70096
70097
|
return callback(err3);
|
|
@@ -70102,7 +70103,7 @@ var require_tar_fs = __commonJS({
|
|
|
70102
70103
|
if (sort2)
|
|
70103
70104
|
files.sort();
|
|
70104
70105
|
for (var i = 0; i < files.length; i++) {
|
|
70105
|
-
if (!ignore(path5.join(
|
|
70106
|
+
if (!ignore(path5.join(cwd4, next, files[i])))
|
|
70106
70107
|
queue.push(path5.join(next, files[i]));
|
|
70107
70108
|
}
|
|
70108
70109
|
callback(null, next, stat2);
|
|
@@ -70120,16 +70121,16 @@ var require_tar_fs = __commonJS({
|
|
|
70120
70121
|
return map(header2);
|
|
70121
70122
|
};
|
|
70122
70123
|
};
|
|
70123
|
-
exports2.pack = function(
|
|
70124
|
-
if (!
|
|
70125
|
-
|
|
70124
|
+
exports2.pack = function(cwd4, opts) {
|
|
70125
|
+
if (!cwd4)
|
|
70126
|
+
cwd4 = ".";
|
|
70126
70127
|
if (!opts)
|
|
70127
70128
|
opts = {};
|
|
70128
70129
|
var xfs = opts.fs || fs6;
|
|
70129
70130
|
var ignore = opts.ignore || opts.filter || noop;
|
|
70130
70131
|
var map = opts.map || noop;
|
|
70131
70132
|
var mapStream = opts.mapStream || echo;
|
|
70132
|
-
var statNext = statAll(xfs, opts.dereference ? xfs.stat : xfs.lstat,
|
|
70133
|
+
var statNext = statAll(xfs, opts.dereference ? xfs.stat : xfs.lstat, cwd4, ignore, opts.entries, opts.sort);
|
|
70133
70134
|
var strict = opts.strict !== false;
|
|
70134
70135
|
var umask = typeof opts.umask === "number" ? ~opts.umask : ~processUmask();
|
|
70135
70136
|
var dmode = typeof opts.dmode === "number" ? opts.dmode : 0;
|
|
@@ -70147,7 +70148,7 @@ var require_tar_fs = __commonJS({
|
|
|
70147
70148
|
fmode |= parseInt(222, 8);
|
|
70148
70149
|
}
|
|
70149
70150
|
var onsymlink = function(filename, header2) {
|
|
70150
|
-
xfs.readlink(path5.join(
|
|
70151
|
+
xfs.readlink(path5.join(cwd4, filename), function(err3, linkname) {
|
|
70151
70152
|
if (err3)
|
|
70152
70153
|
return pack.destroy(err3);
|
|
70153
70154
|
header2.linkname = normalize(linkname);
|
|
@@ -70194,7 +70195,7 @@ var require_tar_fs = __commonJS({
|
|
|
70194
70195
|
var entry = pack.entry(header2, onnextentry);
|
|
70195
70196
|
if (!entry)
|
|
70196
70197
|
return;
|
|
70197
|
-
var rs = mapStream(xfs.createReadStream(path5.join(
|
|
70198
|
+
var rs = mapStream(xfs.createReadStream(path5.join(cwd4, filename), { start: 0, end: header2.size > 0 ? header2.size - 1 : header2.size }), header2);
|
|
70198
70199
|
rs.on("error", function(err4) {
|
|
70199
70200
|
entry.destroy(err4);
|
|
70200
70201
|
});
|
|
@@ -70217,9 +70218,9 @@ var require_tar_fs = __commonJS({
|
|
|
70217
70218
|
var processUmask = function() {
|
|
70218
70219
|
return process.umask ? process.umask() : 0;
|
|
70219
70220
|
};
|
|
70220
|
-
exports2.extract = function(
|
|
70221
|
-
if (!
|
|
70222
|
-
|
|
70221
|
+
exports2.extract = function(cwd4, opts) {
|
|
70222
|
+
if (!cwd4)
|
|
70223
|
+
cwd4 = ".";
|
|
70223
70224
|
if (!opts)
|
|
70224
70225
|
opts = {};
|
|
70225
70226
|
var xfs = opts.fs || fs6;
|
|
@@ -70287,7 +70288,7 @@ var require_tar_fs = __commonJS({
|
|
|
70287
70288
|
extract2.on("entry", function(header2, stream, next) {
|
|
70288
70289
|
header2 = map(header2) || header2;
|
|
70289
70290
|
header2.name = normalize(header2.name);
|
|
70290
|
-
var name = path5.join(
|
|
70291
|
+
var name = path5.join(cwd4, path5.join("/", header2.name));
|
|
70291
70292
|
if (ignore(name, header2)) {
|
|
70292
70293
|
stream.resume();
|
|
70293
70294
|
return next();
|
|
@@ -70314,7 +70315,7 @@ var require_tar_fs = __commonJS({
|
|
|
70314
70315
|
if (win32)
|
|
70315
70316
|
return next();
|
|
70316
70317
|
xfs.unlink(name, function() {
|
|
70317
|
-
var srcpath = path5.join(
|
|
70318
|
+
var srcpath = path5.join(cwd4, path5.join("/", header2.linkname));
|
|
70318
70319
|
xfs.link(srcpath, name, function(err3) {
|
|
70319
70320
|
if (err3 && err3.code === "EPERM" && opts.hardlinkAsFilesFallback) {
|
|
70320
70321
|
stream = xfs.createReadStream(srcpath);
|
|
@@ -70346,7 +70347,7 @@ var require_tar_fs = __commonJS({
|
|
|
70346
70347
|
}, stat);
|
|
70347
70348
|
}
|
|
70348
70349
|
var dir = path5.dirname(name);
|
|
70349
|
-
validate5(xfs, dir, path5.join(
|
|
70350
|
+
validate5(xfs, dir, path5.join(cwd4, "."), function(err3, valid2) {
|
|
70350
70351
|
if (err3)
|
|
70351
70352
|
return next(err3);
|
|
70352
70353
|
if (!valid2)
|
|
@@ -185107,7 +185108,7 @@ async function warnIfOldNodeVersion() {
|
|
|
185107
185108
|
const nodeMajorVersion = Number(nodeVersion.split(".")[0]);
|
|
185108
185109
|
const currentSupportedNodeVersion = 18;
|
|
185109
185110
|
if (nodeMajorVersion < currentSupportedNodeVersion) {
|
|
185110
|
-
const { renderWarning: renderWarning4 } = await import("./ui-
|
|
185111
|
+
const { renderWarning: renderWarning4 } = await import("./ui-JSBDAFMV.js");
|
|
185111
185112
|
renderWarning4({
|
|
185112
185113
|
headline: "Upgrade to a supported Node version now.",
|
|
185113
185114
|
body: [
|
|
@@ -185141,10 +185142,10 @@ async function runCLI(options) {
|
|
|
185141
185142
|
setupEnvironmentVariables(options);
|
|
185142
185143
|
forceNoColor();
|
|
185143
185144
|
await warnIfOldNodeVersion();
|
|
185144
|
-
const { errorHandler: errorHandler3 } = await import("./error-handler-
|
|
185145
|
-
const { isDevelopment: isDevelopment2 } = await import("./local-
|
|
185146
|
-
const oclif = await import("./lib-
|
|
185147
|
-
const { ShopifyConfig } = await import("./custom-oclif-loader-
|
|
185145
|
+
const { errorHandler: errorHandler3 } = await import("./error-handler-EOKEDDHC.js");
|
|
185146
|
+
const { isDevelopment: isDevelopment2 } = await import("./local-S7EXCS5E.js");
|
|
185147
|
+
const oclif = await import("./lib-UYK3ZLZK.js");
|
|
185148
|
+
const { ShopifyConfig } = await import("./custom-oclif-loader-FPNRMQLJ.js");
|
|
185148
185149
|
if (isDevelopment2()) {
|
|
185149
185150
|
oclif.default.settings.debug = true;
|
|
185150
185151
|
}
|
|
@@ -185162,7 +185163,7 @@ async function runCLI(options) {
|
|
|
185162
185163
|
async function useLocalCLIIfDetected(filepath) {
|
|
185163
185164
|
const { environmentVariables: environmentVariables2 } = await import("./constants-XCWOF7M7.js");
|
|
185164
185165
|
const { joinPath: join6 } = await import("./path-2NNC3QGW.js");
|
|
185165
|
-
const { exec: exec2 } = await import("./system-
|
|
185166
|
+
const { exec: exec2 } = await import("./system-P6PSEW7S.js");
|
|
185166
185167
|
if (!isTruthy(process.env[environmentVariables2.enableCliRedirect]))
|
|
185167
185168
|
return false;
|
|
185168
185169
|
if (isTruthy(process.env[environmentVariables2.skipCliRedirect]))
|
|
@@ -185186,7 +185187,7 @@ async function useLocalCLIIfDetected(filepath) {
|
|
|
185186
185187
|
return true;
|
|
185187
185188
|
}
|
|
185188
185189
|
async function localCliPackage() {
|
|
185189
|
-
const { captureOutput } = await import("./system-
|
|
185190
|
+
const { captureOutput } = await import("./system-P6PSEW7S.js");
|
|
185190
185191
|
let npmListOutput = "";
|
|
185191
185192
|
let localShopifyCLI = {};
|
|
185192
185193
|
try {
|
|
@@ -188985,14 +188986,14 @@ var COMMANDS = {
|
|
|
188985
188986
|
};
|
|
188986
188987
|
var dist_default = COMMANDS;
|
|
188987
188988
|
|
|
188988
|
-
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@0.0.0-next-
|
|
188989
|
+
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@0.0.0-next-a8b9c6c-20240606114114_react-dom@17.0.2_react@18.3.1/node_modules/@shopify/cli-hydrogen/dist/index.js
|
|
188989
188990
|
init_cjs_shims();
|
|
188990
188991
|
|
|
188991
|
-
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@0.0.0-next-
|
|
188992
|
+
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@0.0.0-next-a8b9c6c-20240606114114_react-dom@17.0.2_react@18.3.1/node_modules/@shopify/cli-hydrogen/dist/commands/hydrogen/build.js
|
|
188992
188993
|
init_cjs_shims();
|
|
188993
188994
|
var import_core16 = __toESM(require_lib(), 1);
|
|
188994
188995
|
|
|
188995
|
-
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@0.0.0-next-
|
|
188996
|
+
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@0.0.0-next-a8b9c6c-20240606114114_react-dom@17.0.2_react@18.3.1/node_modules/@shopify/cli-hydrogen/dist/lib/template-diff.js
|
|
188996
188997
|
init_cjs_shims();
|
|
188997
188998
|
async function prepareDiffDirectory(diffDirectory, watch) {
|
|
188998
188999
|
const targetDirectory = temporaryDirectory({ prefix: "tmp-hydrogen-diff-" });
|
|
@@ -189152,10 +189153,9 @@ ${source_default.dim(
|
|
|
189152
189153
|
}
|
|
189153
189154
|
async function applyTemplateDiff(targetDirectory, diffDirectory, templateDir) {
|
|
189154
189155
|
templateDir ??= await getStarterDir();
|
|
189155
|
-
const
|
|
189156
|
-
|
|
189157
|
-
|
|
189158
|
-
]);
|
|
189156
|
+
const diffPkgJson = await readAndParsePackageJson2(
|
|
189157
|
+
joinPath2(diffDirectory, "package.json")
|
|
189158
|
+
);
|
|
189159
189159
|
const diffOptions = diffPkgJson["h2:diff"] ?? {};
|
|
189160
189160
|
const createFilter = (re, skipFiles) => (filepath) => {
|
|
189161
189161
|
const filename = relativePath2(templateDir, filepath);
|
|
@@ -189176,8 +189176,8 @@ async function applyTemplateDiff(targetDirectory, diffDirectory, templateDir) {
|
|
|
189176
189176
|
await mergePackageJson(diffDirectory, targetDirectory, {
|
|
189177
189177
|
ignoredKeys: ["h2:diff"],
|
|
189178
189178
|
onResult: (pkgJson) => {
|
|
189179
|
-
if (pkgJson.dependencies
|
|
189180
|
-
pkgJson.dependencies["@shopify/cli-hydrogen"]
|
|
189179
|
+
if (pkgJson.dependencies) {
|
|
189180
|
+
delete pkgJson.dependencies["@shopify/cli-hydrogen"];
|
|
189181
189181
|
}
|
|
189182
189182
|
for (const key of ["build", "dev", "preview"]) {
|
|
189183
189183
|
const scriptLine = pkgJson.scripts?.[key];
|
|
@@ -189200,10 +189200,10 @@ async function applyTemplateDiff(targetDirectory, diffDirectory, templateDir) {
|
|
|
189200
189200
|
});
|
|
189201
189201
|
}
|
|
189202
189202
|
|
|
189203
|
-
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@0.0.0-next-
|
|
189203
|
+
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@0.0.0-next-a8b9c6c-20240606114114_react-dom@17.0.2_react@18.3.1/node_modules/@shopify/cli-hydrogen/dist/lib/check-lockfile.js
|
|
189204
189204
|
init_cjs_shims();
|
|
189205
189205
|
|
|
189206
|
-
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@0.0.0-next-
|
|
189206
|
+
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@0.0.0-next-a8b9c6c-20240606114114_react-dom@17.0.2_react@18.3.1/node_modules/@shopify/cli-hydrogen/dist/lib/package-managers.js
|
|
189207
189207
|
init_cjs_shims();
|
|
189208
189208
|
var packageManagers = [
|
|
189209
189209
|
{
|
|
@@ -189228,7 +189228,7 @@ var packageManagers = [
|
|
|
189228
189228
|
}
|
|
189229
189229
|
];
|
|
189230
189230
|
|
|
189231
|
-
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@0.0.0-next-
|
|
189231
|
+
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@0.0.0-next-a8b9c6c-20240606114114_react-dom@17.0.2_react@18.3.1/node_modules/@shopify/cli-hydrogen/dist/lib/check-lockfile.js
|
|
189232
189232
|
function missingLockfileWarning(shouldExit) {
|
|
189233
189233
|
const headline = "No lockfile found";
|
|
189234
189234
|
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.`;
|
|
@@ -189302,7 +189302,7 @@ async function checkLockfileStatus(directory, shouldExit = false) {
|
|
|
189302
189302
|
}
|
|
189303
189303
|
}
|
|
189304
189304
|
|
|
189305
|
-
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@0.0.0-next-
|
|
189305
|
+
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@0.0.0-next-a8b9c6c-20240606114114_react-dom@17.0.2_react@18.3.1/node_modules/@shopify/cli-hydrogen/dist/lib/missing-routes.js
|
|
189306
189306
|
init_cjs_shims();
|
|
189307
189307
|
var REQUIRED_ROUTES = [
|
|
189308
189308
|
"",
|
|
@@ -189390,10 +189390,10 @@ Including these routes improves compatibility with Shopify\u2019s platform:
|
|
|
189390
189390
|
}
|
|
189391
189391
|
}
|
|
189392
189392
|
|
|
189393
|
-
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@0.0.0-next-
|
|
189393
|
+
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@0.0.0-next-a8b9c6c-20240606114114_react-dom@17.0.2_react@18.3.1/node_modules/@shopify/cli-hydrogen/dist/lib/classic-compiler/build.js
|
|
189394
189394
|
init_cjs_shims();
|
|
189395
189395
|
|
|
189396
|
-
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@0.0.0-next-
|
|
189396
|
+
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@0.0.0-next-a8b9c6c-20240606114114_react-dom@17.0.2_react@18.3.1/node_modules/@shopify/cli-hydrogen/dist/lib/codegen.js
|
|
189397
189397
|
init_cjs_shims();
|
|
189398
189398
|
import { spawn } from "node:child_process";
|
|
189399
189399
|
import { fileURLToPath as fileURLToPath2 } from "node:url";
|
|
@@ -189645,7 +189645,7 @@ async function addHooksToHydrogenOptions(codegenConfig, { rootDirectory }) {
|
|
|
189645
189645
|
}
|
|
189646
189646
|
}
|
|
189647
189647
|
|
|
189648
|
-
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@0.0.0-next-
|
|
189648
|
+
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@0.0.0-next-a8b9c6c-20240606114114_react-dom@17.0.2_react@18.3.1/node_modules/@shopify/cli-hydrogen/dist/lib/bundle/analyzer.js
|
|
189649
189649
|
init_cjs_shims();
|
|
189650
189650
|
async function buildBundleAnalysis(buildPath) {
|
|
189651
189651
|
const workerBuildPath = joinPath2(buildPath, "worker");
|
|
@@ -189710,14 +189710,14 @@ async function getBundleAnalysisSummary(bundlePath) {
|
|
|
189710
189710
|
}
|
|
189711
189711
|
}
|
|
189712
189712
|
|
|
189713
|
-
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@0.0.0-next-
|
|
189713
|
+
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@0.0.0-next-a8b9c6c-20240606114114_react-dom@17.0.2_react@18.3.1/node_modules/@shopify/cli-hydrogen/dist/lib/is-ci.js
|
|
189714
189714
|
init_cjs_shims();
|
|
189715
189715
|
function isCI() {
|
|
189716
189716
|
const { env } = process;
|
|
189717
189717
|
return env.CI === "false" ? false : !!(env.CI || env.CI_NAME || env.BUILD_NUMBER || env.TF_BUILD);
|
|
189718
189718
|
}
|
|
189719
189719
|
|
|
189720
|
-
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@0.0.0-next-
|
|
189720
|
+
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@0.0.0-next-a8b9c6c-20240606114114_react-dom@17.0.2_react@18.3.1/node_modules/@shopify/cli-hydrogen/dist/lib/classic-compiler/build.js
|
|
189721
189721
|
var LOG_WORKER_BUILT = "\u{1F4E6} Worker built";
|
|
189722
189722
|
var WORKER_BUILD_SIZE_LIMIT = 5;
|
|
189723
189723
|
async function runClassicCompilerBuild({
|
|
@@ -189842,7 +189842,7 @@ async function copyPublicFiles(publicPath, buildPathClient) {
|
|
|
189842
189842
|
return copyFile2(publicPath, buildPathClient);
|
|
189843
189843
|
}
|
|
189844
189844
|
|
|
189845
|
-
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@0.0.0-next-
|
|
189845
|
+
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@0.0.0-next-a8b9c6c-20240606114114_react-dom@17.0.2_react@18.3.1/node_modules/@shopify/cli-hydrogen/dist/lib/resource-cleanup.js
|
|
189846
189846
|
init_cjs_shims();
|
|
189847
189847
|
function setupResourceCleanup(cleanup2) {
|
|
189848
189848
|
let closingPromise;
|
|
@@ -189856,7 +189856,7 @@ function setupResourceCleanup(cleanup2) {
|
|
|
189856
189856
|
};
|
|
189857
189857
|
}
|
|
189858
189858
|
|
|
189859
|
-
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@0.0.0-next-
|
|
189859
|
+
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@0.0.0-next-a8b9c6c-20240606114114_react-dom@17.0.2_react@18.3.1/node_modules/@shopify/cli-hydrogen/dist/commands/hydrogen/build.js
|
|
189860
189860
|
var Build = class _Build extends base_command_default2 {
|
|
189861
189861
|
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.`;
|
|
189862
189862
|
static description = "Builds a Hydrogen storefront for production.";
|
|
@@ -190075,7 +190075,7 @@ This build is missing ${missingRoutes.length} route${missingRoutes.length > 1 ?
|
|
|
190075
190075
|
};
|
|
190076
190076
|
}
|
|
190077
190077
|
|
|
190078
|
-
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@0.0.0-next-
|
|
190078
|
+
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@0.0.0-next-a8b9c6c-20240606114114_react-dom@17.0.2_react@18.3.1/node_modules/@shopify/cli-hydrogen/dist/commands/hydrogen/check.js
|
|
190079
190079
|
init_cjs_shims();
|
|
190080
190080
|
var import_core17 = __toESM(require_lib(), 1);
|
|
190081
190081
|
var GenerateRoute = class _GenerateRoute extends base_command_default2 {
|
|
@@ -190107,7 +190107,7 @@ async function runCheckRoutes({ directory }) {
|
|
|
190107
190107
|
logMissingRoutes(findMissingRoutes(remixConfig));
|
|
190108
190108
|
}
|
|
190109
190109
|
|
|
190110
|
-
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@0.0.0-next-
|
|
190110
|
+
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@0.0.0-next-a8b9c6c-20240606114114_react-dom@17.0.2_react@18.3.1/node_modules/@shopify/cli-hydrogen/dist/commands/hydrogen/codegen.js
|
|
190111
190111
|
init_cjs_shims();
|
|
190112
190112
|
import path from "path";
|
|
190113
190113
|
var import_core18 = __toESM(require_lib(), 1);
|
|
@@ -190168,11 +190168,11 @@ async function runCodegen({
|
|
|
190168
190168
|
}
|
|
190169
190169
|
}
|
|
190170
190170
|
|
|
190171
|
-
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@0.0.0-next-
|
|
190171
|
+
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@0.0.0-next-a8b9c6c-20240606114114_react-dom@17.0.2_react@18.3.1/node_modules/@shopify/cli-hydrogen/dist/commands/hydrogen/debug/cpu.js
|
|
190172
190172
|
init_cjs_shims();
|
|
190173
190173
|
var import_core19 = __toESM(require_lib(), 1);
|
|
190174
190174
|
|
|
190175
|
-
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@0.0.0-next-
|
|
190175
|
+
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@0.0.0-next-a8b9c6c-20240606114114_react-dom@17.0.2_react@18.3.1/node_modules/@shopify/cli-hydrogen/dist/lib/classic-compiler/debug-cpu.js
|
|
190176
190176
|
init_cjs_shims();
|
|
190177
190177
|
async function runClassicCompilerDebugCpu({
|
|
190178
190178
|
directory,
|
|
@@ -190220,7 +190220,7 @@ async function runClassicCompilerDebugCpu({
|
|
|
190220
190220
|
};
|
|
190221
190221
|
}
|
|
190222
190222
|
|
|
190223
|
-
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@0.0.0-next-
|
|
190223
|
+
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@0.0.0-next-a8b9c6c-20240606114114_react-dom@17.0.2_react@18.3.1/node_modules/@shopify/cli-hydrogen/dist/lib/cpu-profiler.js
|
|
190224
190224
|
init_cjs_shims();
|
|
190225
190225
|
import { Session } from "node:inspector";
|
|
190226
190226
|
async function createCpuStartupProfiler(root) {
|
|
@@ -190329,7 +190329,7 @@ function silenceNode(node) {
|
|
|
190329
190329
|
});
|
|
190330
190330
|
}
|
|
190331
190331
|
|
|
190332
|
-
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@0.0.0-next-
|
|
190332
|
+
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@0.0.0-next-a8b9c6c-20240606114114_react-dom@17.0.2_react@18.3.1/node_modules/@shopify/cli-hydrogen/dist/commands/hydrogen/debug/cpu.js
|
|
190333
190333
|
var DEFAULT_OUTPUT_PATH = "startup.cpuprofile";
|
|
190334
190334
|
var DebugCpu = class _DebugCpu extends base_command_default2 {
|
|
190335
190335
|
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.
|
|
@@ -190429,14 +190429,14 @@ Waiting for changes...`);
|
|
|
190429
190429
|
};
|
|
190430
190430
|
}
|
|
190431
190431
|
|
|
190432
|
-
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@0.0.0-next-
|
|
190432
|
+
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@0.0.0-next-a8b9c6c-20240606114114_react-dom@17.0.2_react@18.3.1/node_modules/@shopify/cli-hydrogen/dist/commands/hydrogen/deploy.js
|
|
190433
190433
|
init_cjs_shims();
|
|
190434
190434
|
var import_core20 = __toESM(require_lib(), 1);
|
|
190435
190435
|
|
|
190436
|
-
// ../../node_modules/.pnpm/@shopify+oxygen-cli@4.4.
|
|
190436
|
+
// ../../node_modules/.pnpm/@shopify+oxygen-cli@4.4.9_@oclif+core@3.26.5_@shopify+cli-kit@3.61.0/node_modules/@shopify/oxygen-cli/dist/deploy/index.js
|
|
190437
190437
|
init_cjs_shims();
|
|
190438
190438
|
|
|
190439
|
-
// ../../node_modules/.pnpm/@shopify+oxygen-cli@4.4.
|
|
190439
|
+
// ../../node_modules/.pnpm/@shopify+oxygen-cli@4.4.9_@oclif+core@3.26.5_@shopify+cli-kit@3.61.0/node_modules/@shopify/oxygen-cli/dist/utils/utils.js
|
|
190440
190440
|
init_cjs_shims();
|
|
190441
190441
|
import fs from "fs";
|
|
190442
190442
|
import path2, { dirname as dirname3 } from "path";
|
|
@@ -190506,6 +190506,23 @@ function parseToken(inputToken) {
|
|
|
190506
190506
|
);
|
|
190507
190507
|
}
|
|
190508
190508
|
}
|
|
190509
|
+
function authBypassTokenDurationParse(authBypassTokenDurationFlag) {
|
|
190510
|
+
if (!authBypassTokenDurationFlag) {
|
|
190511
|
+
return void 0;
|
|
190512
|
+
}
|
|
190513
|
+
const duration = Number(authBypassTokenDurationFlag);
|
|
190514
|
+
if (isNaN(duration)) {
|
|
190515
|
+
throw new AbortError2(
|
|
190516
|
+
"Invalid duration format. Please specify the duration in hours (e.g., '10')."
|
|
190517
|
+
);
|
|
190518
|
+
}
|
|
190519
|
+
if (duration > 12 || duration < 1) {
|
|
190520
|
+
throw new AbortError2(
|
|
190521
|
+
"Invalid duration length. Please specify the duration (in hours) between 1 to 12 hours."
|
|
190522
|
+
);
|
|
190523
|
+
}
|
|
190524
|
+
return duration;
|
|
190525
|
+
}
|
|
190509
190526
|
async function verifyConfig({
|
|
190510
190527
|
config: config2,
|
|
190511
190528
|
performedBuild = false
|
|
@@ -190556,7 +190573,7 @@ function convertKeysToCamelCase(obj) {
|
|
|
190556
190573
|
return obj;
|
|
190557
190574
|
}
|
|
190558
190575
|
|
|
190559
|
-
// ../../node_modules/.pnpm/@shopify+oxygen-cli@4.4.
|
|
190576
|
+
// ../../node_modules/.pnpm/@shopify+oxygen-cli@4.4.9_@oclif+core@3.26.5_@shopify+cli-kit@3.61.0/node_modules/@shopify/oxygen-cli/dist/utils/bugsnag.js
|
|
190560
190577
|
init_cjs_shims();
|
|
190561
190578
|
var import_node = __toESM(require_bugsnag(), 1);
|
|
190562
190579
|
var BugsnagClient;
|
|
@@ -190599,7 +190616,7 @@ function sanitizeError(error, rootPath) {
|
|
|
190599
190616
|
return replaceRootPath(error);
|
|
190600
190617
|
}
|
|
190601
190618
|
|
|
190602
|
-
// ../../node_modules/.pnpm/@shopify+oxygen-cli@4.4.
|
|
190619
|
+
// ../../node_modules/.pnpm/@shopify+oxygen-cli@4.4.9_@oclif+core@3.26.5_@shopify+cli-kit@3.61.0/node_modules/@shopify/oxygen-cli/dist/utils/metrics-exporter.js
|
|
190603
190620
|
init_cjs_shims();
|
|
190604
190621
|
var MetricName = /* @__PURE__ */ ((MetricName2) => {
|
|
190605
190622
|
MetricName2["BuildTime"] = "build_time";
|
|
@@ -190670,10 +190687,10 @@ var MetricsExporter = class {
|
|
|
190670
190687
|
}
|
|
190671
190688
|
};
|
|
190672
190689
|
|
|
190673
|
-
// ../../node_modules/.pnpm/@shopify+oxygen-cli@4.4.
|
|
190690
|
+
// ../../node_modules/.pnpm/@shopify+oxygen-cli@4.4.9_@oclif+core@3.26.5_@shopify+cli-kit@3.61.0/node_modules/@shopify/oxygen-cli/dist/deploy/build-initiate.js
|
|
190674
190691
|
init_cjs_shims();
|
|
190675
190692
|
|
|
190676
|
-
// ../../node_modules/.pnpm/@shopify+oxygen-cli@4.4.
|
|
190693
|
+
// ../../node_modules/.pnpm/@shopify+oxygen-cli@4.4.9_@oclif+core@3.26.5_@shopify+cli-kit@3.61.0/node_modules/@shopify/oxygen-cli/dist/deploy/graphql/build-initiate.js
|
|
190677
190694
|
init_cjs_shims();
|
|
190678
190695
|
var BuildInitiateQuery = `
|
|
190679
190696
|
mutation BuildInitiate($environment: EnvironmentSelectorInput, $labels: [String!]) {
|
|
@@ -190689,7 +190706,7 @@ var BuildInitiateQuery = `
|
|
|
190689
190706
|
}
|
|
190690
190707
|
`;
|
|
190691
190708
|
|
|
190692
|
-
// ../../node_modules/.pnpm/@shopify+oxygen-cli@4.4.
|
|
190709
|
+
// ../../node_modules/.pnpm/@shopify+oxygen-cli@4.4.9_@oclif+core@3.26.5_@shopify+cli-kit@3.61.0/node_modules/@shopify/oxygen-cli/dist/deploy/build-initiate.js
|
|
190693
190710
|
async function buildInitiate(options) {
|
|
190694
190711
|
const { config: config2, logger, environment, labels = [] } = options;
|
|
190695
190712
|
const variables = {
|
|
@@ -190723,10 +190740,10 @@ async function buildInitiate(options) {
|
|
|
190723
190740
|
}
|
|
190724
190741
|
}
|
|
190725
190742
|
|
|
190726
|
-
// ../../node_modules/.pnpm/@shopify+oxygen-cli@4.4.
|
|
190743
|
+
// ../../node_modules/.pnpm/@shopify+oxygen-cli@4.4.9_@oclif+core@3.26.5_@shopify+cli-kit@3.61.0/node_modules/@shopify/oxygen-cli/dist/deploy/build-cancel.js
|
|
190727
190744
|
init_cjs_shims();
|
|
190728
190745
|
|
|
190729
|
-
// ../../node_modules/.pnpm/@shopify+oxygen-cli@4.4.
|
|
190746
|
+
// ../../node_modules/.pnpm/@shopify+oxygen-cli@4.4.9_@oclif+core@3.26.5_@shopify+cli-kit@3.61.0/node_modules/@shopify/oxygen-cli/dist/deploy/graphql/build-cancel.js
|
|
190730
190747
|
init_cjs_shims();
|
|
190731
190748
|
var BuildCancelQuery = `
|
|
190732
190749
|
mutation BuildCancel($buildId: ID!, $reason: String!) {
|
|
@@ -190741,7 +190758,7 @@ var BuildCancelQuery = `
|
|
|
190741
190758
|
}
|
|
190742
190759
|
`;
|
|
190743
190760
|
|
|
190744
|
-
// ../../node_modules/.pnpm/@shopify+oxygen-cli@4.4.
|
|
190761
|
+
// ../../node_modules/.pnpm/@shopify+oxygen-cli@4.4.9_@oclif+core@3.26.5_@shopify+cli-kit@3.61.0/node_modules/@shopify/oxygen-cli/dist/deploy/build-cancel.js
|
|
190745
190762
|
async function buildCancel(options) {
|
|
190746
190763
|
const { config: config2, buildId, reason, logger } = options;
|
|
190747
190764
|
const variables = {
|
|
@@ -190772,16 +190789,16 @@ async function buildCancel(options) {
|
|
|
190772
190789
|
}
|
|
190773
190790
|
}
|
|
190774
190791
|
|
|
190775
|
-
// ../../node_modules/.pnpm/@shopify+oxygen-cli@4.4.
|
|
190792
|
+
// ../../node_modules/.pnpm/@shopify+oxygen-cli@4.4.9_@oclif+core@3.26.5_@shopify+cli-kit@3.61.0/node_modules/@shopify/oxygen-cli/dist/deploy/get-upload-files.js
|
|
190776
190793
|
init_cjs_shims();
|
|
190777
190794
|
|
|
190778
|
-
// ../../node_modules/.pnpm/@shopify+cli-kit@3.
|
|
190795
|
+
// ../../node_modules/.pnpm/@shopify+cli-kit@3.61.0/node_modules/@shopify/cli-kit/dist/public/node/mimes.js
|
|
190779
190796
|
init_cjs_shims();
|
|
190780
190797
|
function lookupMimeType2(fileName) {
|
|
190781
190798
|
return lookup(fileName) || "application/octet-stream";
|
|
190782
190799
|
}
|
|
190783
190800
|
|
|
190784
|
-
// ../../node_modules/.pnpm/@shopify+oxygen-cli@4.4.
|
|
190801
|
+
// ../../node_modules/.pnpm/@shopify+oxygen-cli@4.4.9_@oclif+core@3.26.5_@shopify+cli-kit@3.61.0/node_modules/@shopify/oxygen-cli/dist/deploy/types.js
|
|
190785
190802
|
init_cjs_shims();
|
|
190786
190803
|
var FileType = /* @__PURE__ */ ((FileType2) => {
|
|
190787
190804
|
FileType2["Worker"] = "WORKER";
|
|
@@ -190793,7 +190810,7 @@ var VerificationError = class extends Error {
|
|
|
190793
190810
|
var DeploymentCompletedVerificationError = class extends Error {
|
|
190794
190811
|
};
|
|
190795
190812
|
|
|
190796
|
-
// ../../node_modules/.pnpm/@shopify+oxygen-cli@4.4.
|
|
190813
|
+
// ../../node_modules/.pnpm/@shopify+oxygen-cli@4.4.9_@oclif+core@3.26.5_@shopify+cli-kit@3.61.0/node_modules/@shopify/oxygen-cli/dist/deploy/get-upload-files.js
|
|
190797
190814
|
async function getUploadFiles(config2, metricsExporter) {
|
|
190798
190815
|
const workerPath = joinPath2(config2.rootPath, config2.workerDir);
|
|
190799
190816
|
const workerFiles = await glob2(`${workerPath}/**`);
|
|
@@ -190859,10 +190876,10 @@ function assetFileFilter(fileName) {
|
|
|
190859
190876
|
return !regex.test(fileName.toLowerCase());
|
|
190860
190877
|
}
|
|
190861
190878
|
|
|
190862
|
-
// ../../node_modules/.pnpm/@shopify+oxygen-cli@4.4.
|
|
190879
|
+
// ../../node_modules/.pnpm/@shopify+oxygen-cli@4.4.9_@oclif+core@3.26.5_@shopify+cli-kit@3.61.0/node_modules/@shopify/oxygen-cli/dist/deploy/deployment-initiate.js
|
|
190863
190880
|
init_cjs_shims();
|
|
190864
190881
|
|
|
190865
|
-
// ../../node_modules/.pnpm/@shopify+oxygen-cli@4.4.
|
|
190882
|
+
// ../../node_modules/.pnpm/@shopify+oxygen-cli@4.4.9_@oclif+core@3.26.5_@shopify+cli-kit@3.61.0/node_modules/@shopify/oxygen-cli/dist/deploy/graphql/deployment-initiate.js
|
|
190866
190883
|
init_cjs_shims();
|
|
190867
190884
|
var DeploymentInitiateQuery = `
|
|
190868
190885
|
mutation DeploymentInitiate($buildId: ID, $environment: EnvironmentSelectorInput, $labels: [String!], $files: [FileInput!]!) {
|
|
@@ -190890,7 +190907,7 @@ var DeploymentInitiateQuery = `
|
|
|
190890
190907
|
}
|
|
190891
190908
|
`;
|
|
190892
190909
|
|
|
190893
|
-
// ../../node_modules/.pnpm/@shopify+oxygen-cli@4.4.
|
|
190910
|
+
// ../../node_modules/.pnpm/@shopify+oxygen-cli@4.4.9_@oclif+core@3.26.5_@shopify+cli-kit@3.61.0/node_modules/@shopify/oxygen-cli/dist/deploy/deployment-initiate.js
|
|
190894
190911
|
async function deploymentInitiate(options) {
|
|
190895
190912
|
const { config: config2, input, logger } = options;
|
|
190896
190913
|
const variables = {
|
|
@@ -190926,14 +190943,14 @@ async function deploymentInitiate(options) {
|
|
|
190926
190943
|
}
|
|
190927
190944
|
}
|
|
190928
190945
|
|
|
190929
|
-
// ../../node_modules/.pnpm/@shopify+oxygen-cli@4.4.
|
|
190946
|
+
// ../../node_modules/.pnpm/@shopify+oxygen-cli@4.4.9_@oclif+core@3.26.5_@shopify+cli-kit@3.61.0/node_modules/@shopify/oxygen-cli/dist/deploy/deployment-complete.js
|
|
190930
190947
|
init_cjs_shims();
|
|
190931
190948
|
|
|
190932
|
-
// ../../node_modules/.pnpm/@shopify+oxygen-cli@4.4.
|
|
190949
|
+
// ../../node_modules/.pnpm/@shopify+oxygen-cli@4.4.9_@oclif+core@3.26.5_@shopify+cli-kit@3.61.0/node_modules/@shopify/oxygen-cli/dist/deploy/graphql/deployment-complete.js
|
|
190933
190950
|
init_cjs_shims();
|
|
190934
190951
|
var DeploymentCompleteQuery = `
|
|
190935
|
-
mutation DeploymentComplete($deploymentId: ID!, $generateAuthBypassToken: Boolean, $environmentVariables: [EnvironmentVariableInput!]) {
|
|
190936
|
-
deploymentComplete(id: $deploymentId, generateAuthBypassToken: $generateAuthBypassToken, environmentVariables: $environmentVariables) {
|
|
190952
|
+
mutation DeploymentComplete($deploymentId: ID!, $generateAuthBypassToken: Boolean, $authBypassTokenDuration: Int, $environmentVariables: [EnvironmentVariableInput!]) {
|
|
190953
|
+
deploymentComplete(id: $deploymentId, generateAuthBypassToken: $generateAuthBypassToken, authBypassTokenDuration: $authBypassTokenDuration, environmentVariables: $environmentVariables) {
|
|
190937
190954
|
deployment {
|
|
190938
190955
|
id
|
|
190939
190956
|
url
|
|
@@ -190946,12 +190963,21 @@ var DeploymentCompleteQuery = `
|
|
|
190946
190963
|
}
|
|
190947
190964
|
`;
|
|
190948
190965
|
|
|
190949
|
-
// ../../node_modules/.pnpm/@shopify+oxygen-cli@4.4.
|
|
190966
|
+
// ../../node_modules/.pnpm/@shopify+oxygen-cli@4.4.9_@oclif+core@3.26.5_@shopify+cli-kit@3.61.0/node_modules/@shopify/oxygen-cli/dist/deploy/deployment-complete.js
|
|
190950
190967
|
async function deploymentComplete(config2, deploymentId) {
|
|
190951
190968
|
const variables = {
|
|
190952
190969
|
deploymentId,
|
|
190953
190970
|
generateAuthBypassToken: config2.generateAuthBypassToken
|
|
190954
190971
|
};
|
|
190972
|
+
if (config2.generateAuthBypassToken) {
|
|
190973
|
+
variables.authBypassTokenDuration = authBypassTokenDurationParse(
|
|
190974
|
+
config2.authBypassTokenDuration
|
|
190975
|
+
);
|
|
190976
|
+
} else if (config2.authBypassTokenDuration) {
|
|
190977
|
+
throw new AbortError2(
|
|
190978
|
+
"authBypassTokenDuration is set but generateAuthBypassToken is not enabled"
|
|
190979
|
+
);
|
|
190980
|
+
}
|
|
190955
190981
|
if (config2.overriddenEnvironmentVariables) {
|
|
190956
190982
|
variables.environmentVariables = config2.overriddenEnvironmentVariables;
|
|
190957
190983
|
}
|
|
@@ -190978,7 +191004,7 @@ async function deploymentComplete(config2, deploymentId) {
|
|
|
190978
191004
|
}
|
|
190979
191005
|
}
|
|
190980
191006
|
|
|
190981
|
-
// ../../node_modules/.pnpm/@shopify+oxygen-cli@4.4.
|
|
191007
|
+
// ../../node_modules/.pnpm/@shopify+oxygen-cli@4.4.9_@oclif+core@3.26.5_@shopify+cli-kit@3.61.0/node_modules/@shopify/oxygen-cli/dist/deploy/verify-deployment.js
|
|
190982
191008
|
init_cjs_shims();
|
|
190983
191009
|
async function verifyDeployment(options) {
|
|
190984
191010
|
const { config: config2, url, logger, hooks: hooks2 } = options;
|
|
@@ -191027,10 +191053,10 @@ async function verifyDeployment(options) {
|
|
|
191027
191053
|
await check2();
|
|
191028
191054
|
}
|
|
191029
191055
|
|
|
191030
|
-
// ../../node_modules/.pnpm/@shopify+oxygen-cli@4.4.
|
|
191056
|
+
// ../../node_modules/.pnpm/@shopify+oxygen-cli@4.4.9_@oclif+core@3.26.5_@shopify+cli-kit@3.61.0/node_modules/@shopify/oxygen-cli/dist/deploy/deployment-cancel.js
|
|
191031
191057
|
init_cjs_shims();
|
|
191032
191058
|
|
|
191033
|
-
// ../../node_modules/.pnpm/@shopify+oxygen-cli@4.4.
|
|
191059
|
+
// ../../node_modules/.pnpm/@shopify+oxygen-cli@4.4.9_@oclif+core@3.26.5_@shopify+cli-kit@3.61.0/node_modules/@shopify/oxygen-cli/dist/deploy/graphql/deployment-cancel.js
|
|
191034
191060
|
init_cjs_shims();
|
|
191035
191061
|
var DeploymentCancelQuery = `
|
|
191036
191062
|
mutation DeploymentCancel($deploymentId: ID!, $reason: String!) {
|
|
@@ -191045,7 +191071,7 @@ mutation DeploymentCancel($deploymentId: ID!, $reason: String!) {
|
|
|
191045
191071
|
}
|
|
191046
191072
|
`;
|
|
191047
191073
|
|
|
191048
|
-
// ../../node_modules/.pnpm/@shopify+oxygen-cli@4.4.
|
|
191074
|
+
// ../../node_modules/.pnpm/@shopify+oxygen-cli@4.4.9_@oclif+core@3.26.5_@shopify+cli-kit@3.61.0/node_modules/@shopify/oxygen-cli/dist/deploy/deployment-cancel.js
|
|
191049
191075
|
async function deploymentCancel(options) {
|
|
191050
191076
|
const { config: config2, deploymentId, reason, logger } = options;
|
|
191051
191077
|
const variables = {
|
|
@@ -191076,7 +191102,7 @@ async function deploymentCancel(options) {
|
|
|
191076
191102
|
}
|
|
191077
191103
|
}
|
|
191078
191104
|
|
|
191079
|
-
// ../../node_modules/.pnpm/@shopify+oxygen-cli@4.4.
|
|
191105
|
+
// ../../node_modules/.pnpm/@shopify+oxygen-cli@4.4.9_@oclif+core@3.26.5_@shopify+cli-kit@3.61.0/node_modules/@shopify/oxygen-cli/dist/deploy/upload-files.js
|
|
191080
191106
|
init_cjs_shims();
|
|
191081
191107
|
import { Agent } from "https";
|
|
191082
191108
|
var import_async = __toESM(require_async(), 1);
|
|
@@ -191253,10 +191279,10 @@ function isErrorCode(err3, code) {
|
|
|
191253
191279
|
return err3 instanceof Error && "code" in err3 && err3.code === code;
|
|
191254
191280
|
}
|
|
191255
191281
|
|
|
191256
|
-
// ../../node_modules/.pnpm/@shopify+oxygen-cli@4.4.
|
|
191282
|
+
// ../../node_modules/.pnpm/@shopify+oxygen-cli@4.4.9_@oclif+core@3.26.5_@shopify+cli-kit@3.61.0/node_modules/@shopify/oxygen-cli/dist/deploy/verify-deployment-completed.js
|
|
191257
191283
|
init_cjs_shims();
|
|
191258
191284
|
|
|
191259
|
-
// ../../node_modules/.pnpm/@shopify+oxygen-cli@4.4.
|
|
191285
|
+
// ../../node_modules/.pnpm/@shopify+oxygen-cli@4.4.9_@oclif+core@3.26.5_@shopify+cli-kit@3.61.0/node_modules/@shopify/oxygen-cli/dist/deploy/graphql/deployment-verification-details.js
|
|
191260
191286
|
init_cjs_shims();
|
|
191261
191287
|
var DeploymentVerificationDetailsQuery = `
|
|
191262
191288
|
query DeploymentVerificationDetails($deploymentId: ID!) {
|
|
@@ -191275,7 +191301,7 @@ var Status = /* @__PURE__ */ ((Status2) => {
|
|
|
191275
191301
|
return Status2;
|
|
191276
191302
|
})(Status || {});
|
|
191277
191303
|
|
|
191278
|
-
// ../../node_modules/.pnpm/@shopify+oxygen-cli@4.4.
|
|
191304
|
+
// ../../node_modules/.pnpm/@shopify+oxygen-cli@4.4.9_@oclif+core@3.26.5_@shopify+cli-kit@3.61.0/node_modules/@shopify/oxygen-cli/dist/deploy/verify-deployment-completed.js
|
|
191279
191305
|
async function verifyDeploymentCompleted(options, deploymentId) {
|
|
191280
191306
|
const { config: config2, logger, timeoutInSeconds, hooks: hooks2 } = options;
|
|
191281
191307
|
const variables = {
|
|
@@ -191328,7 +191354,7 @@ async function verifyDeploymentCompleted(options, deploymentId) {
|
|
|
191328
191354
|
return check2();
|
|
191329
191355
|
}
|
|
191330
191356
|
|
|
191331
|
-
// ../../node_modules/.pnpm/@shopify+oxygen-cli@4.4.
|
|
191357
|
+
// ../../node_modules/.pnpm/@shopify+oxygen-cli@4.4.9_@oclif+core@3.26.5_@shopify+cli-kit@3.61.0/node_modules/@shopify/oxygen-cli/dist/deploy/build-project.js
|
|
191332
191358
|
init_cjs_shims();
|
|
191333
191359
|
import { spawn as spawn2 } from "child_process";
|
|
191334
191360
|
import { PassThrough } from "stream";
|
|
@@ -191392,7 +191418,7 @@ async function buildProject(options) {
|
|
|
191392
191418
|
}
|
|
191393
191419
|
}
|
|
191394
191420
|
|
|
191395
|
-
// ../../node_modules/.pnpm/@shopify+oxygen-cli@4.4.
|
|
191421
|
+
// ../../node_modules/.pnpm/@shopify+oxygen-cli@4.4.9_@oclif+core@3.26.5_@shopify+cli-kit@3.61.0/node_modules/@shopify/oxygen-cli/dist/deploy/metadata.js
|
|
191396
191422
|
init_cjs_shims();
|
|
191397
191423
|
async function getMetadata(config2, logger) {
|
|
191398
191424
|
const ciInfo = ciPlatform();
|
|
@@ -191519,7 +191545,7 @@ function createLabels(metadata2) {
|
|
|
191519
191545
|
return labels;
|
|
191520
191546
|
}
|
|
191521
191547
|
|
|
191522
|
-
// ../../node_modules/.pnpm/@shopify+oxygen-cli@4.4.
|
|
191548
|
+
// ../../node_modules/.pnpm/@shopify+oxygen-cli@4.4.9_@oclif+core@3.26.5_@shopify+cli-kit@3.61.0/node_modules/@shopify/oxygen-cli/dist/deploy/index.js
|
|
191523
191549
|
async function createDeploy(options) {
|
|
191524
191550
|
const cliStartTime = performance.now();
|
|
191525
191551
|
initializeBugsnag(!options.config.bugsnag);
|
|
@@ -191672,13 +191698,13 @@ The deployment can be reached at the ${completedDeployment.url} preview URL`;
|
|
|
191672
191698
|
}
|
|
191673
191699
|
}
|
|
191674
191700
|
|
|
191675
|
-
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@0.0.0-next-
|
|
191701
|
+
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@0.0.0-next-a8b9c6c-20240606114114_react-dom@17.0.2_react@18.3.1/node_modules/@shopify/cli-hydrogen/dist/lib/get-oxygen-deployment-data.js
|
|
191676
191702
|
init_cjs_shims();
|
|
191677
191703
|
|
|
191678
|
-
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@0.0.0-next-
|
|
191704
|
+
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@0.0.0-next-a8b9c6c-20240606114114_react-dom@17.0.2_react@18.3.1/node_modules/@shopify/cli-hydrogen/dist/lib/render-errors.js
|
|
191679
191705
|
init_cjs_shims();
|
|
191680
191706
|
|
|
191681
|
-
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@0.0.0-next-
|
|
191707
|
+
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@0.0.0-next-a8b9c6c-20240606114114_react-dom@17.0.2_react@18.3.1/node_modules/@shopify/cli-hydrogen/dist/lib/admin-urls.js
|
|
191682
191708
|
init_cjs_shims();
|
|
191683
191709
|
function newHydrogenStorefrontUrl(session) {
|
|
191684
191710
|
const { storeFqdn } = session;
|
|
@@ -191689,7 +191715,7 @@ function hydrogenStorefrontsUrl(session) {
|
|
|
191689
191715
|
return `https://${storeFqdn}/admin/custom_storefronts`;
|
|
191690
191716
|
}
|
|
191691
191717
|
|
|
191692
|
-
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@0.0.0-next-
|
|
191718
|
+
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@0.0.0-next-a8b9c6c-20240606114114_react-dom@17.0.2_react@18.3.1/node_modules/@shopify/cli-hydrogen/dist/lib/render-errors.js
|
|
191693
191719
|
function renderMissingStorefront({
|
|
191694
191720
|
session,
|
|
191695
191721
|
storefront,
|
|
@@ -191732,7 +191758,7 @@ function renderMissingLink({ noStorefronts = false }) {
|
|
|
191732
191758
|
});
|
|
191733
191759
|
}
|
|
191734
191760
|
|
|
191735
|
-
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@0.0.0-next-
|
|
191761
|
+
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@0.0.0-next-a8b9c6c-20240606114114_react-dom@17.0.2_react@18.3.1/node_modules/@shopify/cli-hydrogen/dist/lib/graphql/admin/get-oxygen-data.js
|
|
191736
191762
|
init_cjs_shims();
|
|
191737
191763
|
var GetDeploymentDataQuery = `#graphql
|
|
191738
191764
|
query GetDeploymentToken($id: ID!) {
|
|
@@ -191758,7 +191784,7 @@ async function getOxygenData(adminSession, storefrontId) {
|
|
|
191758
191784
|
return { storefront: hydrogenStorefront };
|
|
191759
191785
|
}
|
|
191760
191786
|
|
|
191761
|
-
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@0.0.0-next-
|
|
191787
|
+
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@0.0.0-next-a8b9c6c-20240606114114_react-dom@17.0.2_react@18.3.1/node_modules/@shopify/cli-hydrogen/dist/lib/verify-linked-storefront.js
|
|
191762
191788
|
init_cjs_shims();
|
|
191763
191789
|
async function verifyLinkedStorefront({
|
|
191764
191790
|
root,
|
|
@@ -191779,7 +191805,7 @@ async function verifyLinkedStorefront({
|
|
|
191779
191805
|
});
|
|
191780
191806
|
}
|
|
191781
191807
|
|
|
191782
|
-
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@0.0.0-next-
|
|
191808
|
+
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@0.0.0-next-a8b9c6c-20240606114114_react-dom@17.0.2_react@18.3.1/node_modules/@shopify/cli-hydrogen/dist/lib/get-oxygen-deployment-data.js
|
|
191783
191809
|
async function getOxygenDeploymentData({
|
|
191784
191810
|
root
|
|
191785
191811
|
}) {
|
|
@@ -191812,7 +191838,7 @@ async function getOxygenDeploymentData({
|
|
|
191812
191838
|
return storefront;
|
|
191813
191839
|
}
|
|
191814
191840
|
|
|
191815
|
-
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@0.0.0-next-
|
|
191841
|
+
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@0.0.0-next-a8b9c6c-20240606114114_react-dom@17.0.2_react@18.3.1/node_modules/@shopify/cli-hydrogen/dist/commands/hydrogen/deploy.js
|
|
191816
191842
|
var DEPLOY_OUTPUT_FILE_HANDLE = "h2_deploy_log.json";
|
|
191817
191843
|
var deploymentLogger = (message, level = "info") => {
|
|
191818
191844
|
if (level === "error" || level === "warn") {
|
|
@@ -192291,11 +192317,11 @@ Continue?`.value
|
|
|
192291
192317
|
return deployPromise;
|
|
192292
192318
|
}
|
|
192293
192319
|
|
|
192294
|
-
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@0.0.0-next-
|
|
192320
|
+
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@0.0.0-next-a8b9c6c-20240606114114_react-dom@17.0.2_react@18.3.1/node_modules/@shopify/cli-hydrogen/dist/commands/hydrogen/dev.js
|
|
192295
192321
|
init_cjs_shims();
|
|
192296
192322
|
var import_core22 = __toESM(require_lib(), 1);
|
|
192297
192323
|
|
|
192298
|
-
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@0.0.0-next-
|
|
192324
|
+
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@0.0.0-next-a8b9c6c-20240606114114_react-dom@17.0.2_react@18.3.1/node_modules/@shopify/cli-hydrogen/dist/commands/hydrogen/upgrade.js
|
|
192299
192325
|
init_cjs_shims();
|
|
192300
192326
|
var import_semver = __toESM(require_semver(), 1);
|
|
192301
192327
|
import { createRequire } from "node:module";
|
|
@@ -192443,7 +192469,7 @@ function cliTruncate(text, columns3, options = {}) {
|
|
|
192443
192469
|
throw new Error(`Expected \`options.position\` to be either \`start\`, \`middle\` or \`end\`, got ${position}`);
|
|
192444
192470
|
}
|
|
192445
192471
|
|
|
192446
|
-
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@0.0.0-next-
|
|
192472
|
+
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@0.0.0-next-a8b9c6c-20240606114114_react-dom@17.0.2_react@18.3.1/node_modules/@shopify/cli-hydrogen/dist/commands/hydrogen/upgrade.js
|
|
192447
192473
|
var import_core21 = __toESM(require_lib(), 1);
|
|
192448
192474
|
var INSTRUCTIONS_FOLDER = ".hydrogen";
|
|
192449
192475
|
var Upgrade2 = class _Upgrade extends base_command_default2 {
|
|
@@ -193167,11 +193193,11 @@ async function displayDevUpgradeNotice({
|
|
|
193167
193193
|
}
|
|
193168
193194
|
}
|
|
193169
193195
|
|
|
193170
|
-
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@0.0.0-next-
|
|
193196
|
+
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@0.0.0-next-a8b9c6c-20240606114114_react-dom@17.0.2_react@18.3.1/node_modules/@shopify/cli-hydrogen/dist/lib/classic-compiler/dev.js
|
|
193171
193197
|
init_cjs_shims();
|
|
193172
193198
|
import fs2 from "node:fs/promises";
|
|
193173
193199
|
|
|
193174
|
-
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@0.0.0-next-
|
|
193200
|
+
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@0.0.0-next-a8b9c6c-20240606114114_react-dom@17.0.2_react@18.3.1/node_modules/@shopify/cli-hydrogen/dist/lib/mini-oxygen/index.js
|
|
193175
193201
|
init_cjs_shims();
|
|
193176
193202
|
async function buildAssetsUrl(port, root) {
|
|
193177
193203
|
const { buildAssetsUrl: _buildAssetsUrl } = await importLocal(
|
|
@@ -193183,14 +193209,14 @@ async function buildAssetsUrl(port, root) {
|
|
|
193183
193209
|
async function startMiniOxygen(options, useNodeRuntime = false) {
|
|
193184
193210
|
if (useNodeRuntime) {
|
|
193185
193211
|
process.env.MINIFLARE_SUBREQUEST_LIMIT = 100;
|
|
193186
|
-
const { startNodeServer } = await import("./node-
|
|
193212
|
+
const { startNodeServer } = await import("./node-SSGKCHRY.js");
|
|
193187
193213
|
return startNodeServer(options);
|
|
193188
193214
|
}
|
|
193189
|
-
const { startWorkerdServer } = await import("./workerd-
|
|
193215
|
+
const { startWorkerdServer } = await import("./workerd-3U2NNCIK.js");
|
|
193190
193216
|
return startWorkerdServer(options);
|
|
193191
193217
|
}
|
|
193192
193218
|
|
|
193193
|
-
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@0.0.0-next-
|
|
193219
|
+
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@0.0.0-next-a8b9c6c-20240606114114_react-dom@17.0.2_react@18.3.1/node_modules/@shopify/cli-hydrogen/dist/lib/virtual-routes.js
|
|
193194
193220
|
init_cjs_shims();
|
|
193195
193221
|
var VIRTUAL_ROUTES_DIR = "virtual-routes/routes";
|
|
193196
193222
|
var VIRTUAL_ROOT = "virtual-routes/virtual-root";
|
|
@@ -193236,7 +193262,7 @@ async function addVirtualRoutes(config2) {
|
|
|
193236
193262
|
return config2;
|
|
193237
193263
|
}
|
|
193238
193264
|
|
|
193239
|
-
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@0.0.0-next-
|
|
193265
|
+
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@0.0.0-next-a8b9c6c-20240606114114_react-dom@17.0.2_react@18.3.1/node_modules/@shopify/cli-hydrogen/dist/lib/live-reload.js
|
|
193240
193266
|
init_cjs_shims();
|
|
193241
193267
|
import http from "node:http";
|
|
193242
193268
|
async function setupLiveReload(devServerPort, root) {
|
|
@@ -193307,7 +193333,7 @@ async function setupLiveReload(devServerPort, root) {
|
|
|
193307
193333
|
}
|
|
193308
193334
|
}
|
|
193309
193335
|
|
|
193310
|
-
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@0.0.0-next-
|
|
193336
|
+
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@0.0.0-next-a8b9c6c-20240606114114_react-dom@17.0.2_react@18.3.1/node_modules/@shopify/cli-hydrogen/dist/lib/classic-compiler/dev.js
|
|
193311
193337
|
var LOG_REBUILDING = "\u{1F9F1} Rebuilding...";
|
|
193312
193338
|
var LOG_REBUILT = "\u{1F680} Rebuilt";
|
|
193313
193339
|
async function runClassicCompilerDev({
|
|
@@ -193555,7 +193581,7 @@ async function runClassicCompilerDev({
|
|
|
193555
193581
|
};
|
|
193556
193582
|
}
|
|
193557
193583
|
|
|
193558
|
-
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@0.0.0-next-
|
|
193584
|
+
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@0.0.0-next-a8b9c6c-20240606114114_react-dom@17.0.2_react@18.3.1/node_modules/@shopify/cli-hydrogen/dist/lib/deps-optimizer.js
|
|
193559
193585
|
init_cjs_shims();
|
|
193560
193586
|
var throttledOptimizableDeps = /* @__PURE__ */ new Set();
|
|
193561
193587
|
var debouncedBannerTimeout;
|
|
@@ -193694,7 +193720,7 @@ ${source_default.dim(
|
|
|
193694
193720
|
});
|
|
193695
193721
|
}
|
|
193696
193722
|
|
|
193697
|
-
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@0.0.0-next-
|
|
193723
|
+
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@0.0.0-next-a8b9c6c-20240606114114_react-dom@17.0.2_react@18.3.1/node_modules/@shopify/cli-hydrogen/dist/commands/hydrogen/dev.js
|
|
193698
193724
|
var Dev2 = class _Dev extends base_command_default2 {
|
|
193699
193725
|
static descriptionWithMarkdown = `Runs a Hydrogen storefront in a local runtime that emulates an Oxygen worker for development.
|
|
193700
193726
|
|
|
@@ -194005,7 +194031,7 @@ function setupMonorepoReload(viteServer, monorepoPackagesPath, setupCodegen) {
|
|
|
194005
194031
|
});
|
|
194006
194032
|
}
|
|
194007
194033
|
|
|
194008
|
-
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@0.0.0-next-
|
|
194034
|
+
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@0.0.0-next-a8b9c6c-20240606114114_react-dom@17.0.2_react@18.3.1/node_modules/@shopify/cli-hydrogen/dist/commands/hydrogen/env/list.js
|
|
194009
194035
|
init_cjs_shims();
|
|
194010
194036
|
var EnvList = class _EnvList extends base_command_default2 {
|
|
194011
194037
|
static descriptionWithMarkdown = "Lists all environments available on the linked Hydrogen storefront.";
|
|
@@ -194082,7 +194108,7 @@ var pluralizedEnvironments = ({
|
|
|
194082
194108
|
);
|
|
194083
194109
|
};
|
|
194084
194110
|
|
|
194085
|
-
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@0.0.0-next-
|
|
194111
|
+
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@0.0.0-next-a8b9c6c-20240606114114_react-dom@17.0.2_react@18.3.1/node_modules/@shopify/cli-hydrogen/dist/commands/hydrogen/env/pull.js
|
|
194086
194112
|
init_cjs_shims();
|
|
194087
194113
|
|
|
194088
194114
|
// ../../node_modules/.pnpm/diff@5.1.0/node_modules/diff/lib/index.mjs
|
|
@@ -194413,7 +194439,7 @@ arrayDiff.join = arrayDiff.removeEmpty = function(value) {
|
|
|
194413
194439
|
return value;
|
|
194414
194440
|
};
|
|
194415
194441
|
|
|
194416
|
-
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@0.0.0-next-
|
|
194442
|
+
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@0.0.0-next-a8b9c6c-20240606114114_react-dom@17.0.2_react@18.3.1/node_modules/@shopify/cli-hydrogen/dist/commands/hydrogen/env/pull.js
|
|
194417
194443
|
var EnvPull = class _EnvPull extends base_command_default2 {
|
|
194418
194444
|
static descriptionWithMarkdown = "Pulls environment variables from the linked Hydrogen storefront and writes them to an `.env` file.";
|
|
194419
194445
|
static description = "Populate your .env with variables from your Hydrogen storefront.";
|
|
@@ -194521,11 +194547,11 @@ Continue?`.value
|
|
|
194521
194547
|
});
|
|
194522
194548
|
}
|
|
194523
194549
|
|
|
194524
|
-
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@0.0.0-next-
|
|
194550
|
+
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@0.0.0-next-a8b9c6c-20240606114114_react-dom@17.0.2_react@18.3.1/node_modules/@shopify/cli-hydrogen/dist/commands/hydrogen/env/push.js
|
|
194525
194551
|
init_cjs_shims();
|
|
194526
194552
|
var import_core23 = __toESM(require_lib(), 1);
|
|
194527
194553
|
|
|
194528
|
-
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@0.0.0-next-
|
|
194554
|
+
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@0.0.0-next-a8b9c6c-20240606114114_react-dom@17.0.2_react@18.3.1/node_modules/@shopify/cli-hydrogen/dist/lib/graphql/admin/push-variables.js
|
|
194529
194555
|
init_cjs_shims();
|
|
194530
194556
|
var PushVariablesMutation = `#graphql
|
|
194531
194557
|
mutation PushVariables(
|
|
@@ -194559,7 +194585,7 @@ async function pushStorefrontEnvVariables(adminSession, storefrontId, environmen
|
|
|
194559
194585
|
return { userErrors };
|
|
194560
194586
|
}
|
|
194561
194587
|
|
|
194562
|
-
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@0.0.0-next-
|
|
194588
|
+
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@0.0.0-next-a8b9c6c-20240606114114_react-dom@17.0.2_react@18.3.1/node_modules/@shopify/cli-hydrogen/dist/commands/hydrogen/env/push.js
|
|
194563
194589
|
var EnvPush = class _EnvPush extends base_command_default2 {
|
|
194564
194590
|
static description = "Push environment variables from the local .env file to your linked Hydrogen storefront.";
|
|
194565
194591
|
static flags = {
|
|
@@ -194698,10 +194724,10 @@ Continue?`.value
|
|
|
194698
194724
|
});
|
|
194699
194725
|
}
|
|
194700
194726
|
|
|
194701
|
-
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@0.0.0-next-
|
|
194727
|
+
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@0.0.0-next-a8b9c6c-20240606114114_react-dom@17.0.2_react@18.3.1/node_modules/@shopify/cli-hydrogen/dist/commands/hydrogen/g.js
|
|
194702
194728
|
init_cjs_shims();
|
|
194703
194729
|
|
|
194704
|
-
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@0.0.0-next-
|
|
194730
|
+
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@0.0.0-next-a8b9c6c-20240606114114_react-dom@17.0.2_react@18.3.1/node_modules/@shopify/cli-hydrogen/dist/commands/hydrogen/generate/route.js
|
|
194705
194731
|
init_cjs_shims();
|
|
194706
194732
|
var import_core24 = __toESM(require_lib(), 1);
|
|
194707
194733
|
var GenerateRoute2 = class _GenerateRoute extends base_command_default2 {
|
|
@@ -194771,7 +194797,7 @@ async function runGenerate(options) {
|
|
|
194771
194797
|
});
|
|
194772
194798
|
}
|
|
194773
194799
|
|
|
194774
|
-
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@0.0.0-next-
|
|
194800
|
+
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@0.0.0-next-a8b9c6c-20240606114114_react-dom@17.0.2_react@18.3.1/node_modules/@shopify/cli-hydrogen/dist/commands/hydrogen/g.js
|
|
194775
194801
|
var GenerateRouteShortcut = class extends base_command_default2 {
|
|
194776
194802
|
static description = "Shortcut for `hydrogen generate`. See `hydrogen generate --help` for more information.";
|
|
194777
194803
|
static strict = false;
|
|
@@ -194785,7 +194811,7 @@ var GenerateRouteShortcut = class extends base_command_default2 {
|
|
|
194785
194811
|
}
|
|
194786
194812
|
};
|
|
194787
194813
|
|
|
194788
|
-
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@0.0.0-next-
|
|
194814
|
+
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@0.0.0-next-a8b9c6c-20240606114114_react-dom@17.0.2_react@18.3.1/node_modules/@shopify/cli-hydrogen/dist/commands/hydrogen/generate/routes.js
|
|
194789
194815
|
init_cjs_shims();
|
|
194790
194816
|
var GenerateRoutes = class _GenerateRoutes extends base_command_default2 {
|
|
194791
194817
|
static description = "Generates all supported standard shopify routes.";
|
|
@@ -194805,11 +194831,11 @@ var GenerateRoutes = class _GenerateRoutes extends base_command_default2 {
|
|
|
194805
194831
|
}
|
|
194806
194832
|
};
|
|
194807
194833
|
|
|
194808
|
-
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@0.0.0-next-
|
|
194834
|
+
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@0.0.0-next-a8b9c6c-20240606114114_react-dom@17.0.2_react@18.3.1/node_modules/@shopify/cli-hydrogen/dist/commands/hydrogen/init.js
|
|
194809
194835
|
init_cjs_shims();
|
|
194810
194836
|
var import_core25 = __toESM(require_lib(), 1);
|
|
194811
194837
|
|
|
194812
|
-
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@0.0.0-next-
|
|
194838
|
+
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@0.0.0-next-a8b9c6c-20240606114114_react-dom@17.0.2_react@18.3.1/node_modules/@shopify/cli-hydrogen/dist/lib/check-version.js
|
|
194813
194839
|
init_cjs_shims();
|
|
194814
194840
|
import path3 from "node:path";
|
|
194815
194841
|
import { createRequire as createRequire2 } from "node:module";
|
|
@@ -194881,10 +194907,10 @@ function locateDependency(require22, nameToResolve, resolveFrom) {
|
|
|
194881
194907
|
}
|
|
194882
194908
|
}
|
|
194883
194909
|
|
|
194884
|
-
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@0.0.0-next-
|
|
194910
|
+
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@0.0.0-next-a8b9c6c-20240606114114_react-dom@17.0.2_react@18.3.1/node_modules/@shopify/cli-hydrogen/dist/lib/onboarding/index.js
|
|
194885
194911
|
init_cjs_shims();
|
|
194886
194912
|
|
|
194887
|
-
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@0.0.0-next-
|
|
194913
|
+
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@0.0.0-next-a8b9c6c-20240606114114_react-dom@17.0.2_react@18.3.1/node_modules/@shopify/cli-hydrogen/dist/lib/onboarding/local.js
|
|
194888
194914
|
init_cjs_shims();
|
|
194889
194915
|
async function setupLocalStarterTemplate(options, controller) {
|
|
194890
194916
|
const templateAction = options.mockShop ? "mock" : await renderSelectPrompt2({
|
|
@@ -195133,18 +195159,18 @@ async function setupLocalStarterTemplate(options, controller) {
|
|
|
195133
195159
|
};
|
|
195134
195160
|
}
|
|
195135
195161
|
|
|
195136
|
-
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@0.0.0-next-
|
|
195162
|
+
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@0.0.0-next-a8b9c6c-20240606114114_react-dom@17.0.2_react@18.3.1/node_modules/@shopify/cli-hydrogen/dist/lib/onboarding/remote.js
|
|
195137
195163
|
init_cjs_shims();
|
|
195138
195164
|
import { readdir } from "node:fs/promises";
|
|
195139
195165
|
|
|
195140
|
-
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@0.0.0-next-
|
|
195166
|
+
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@0.0.0-next-a8b9c6c-20240606114114_react-dom@17.0.2_react@18.3.1/node_modules/@shopify/cli-hydrogen/dist/lib/template-downloader.js
|
|
195141
195167
|
init_cjs_shims();
|
|
195142
195168
|
var import_gunzip_maybe = __toESM(require_gunzip_maybe(), 1);
|
|
195143
195169
|
var import_tar_fs = __toESM(require_tar_fs(), 1);
|
|
195144
195170
|
import path4 from "node:path";
|
|
195145
195171
|
import { pipeline } from "stream/promises";
|
|
195146
195172
|
|
|
195147
|
-
// ../../node_modules/.pnpm/@shopify+cli-kit@3.
|
|
195173
|
+
// ../../node_modules/.pnpm/@shopify+cli-kit@3.61.0/node_modules/@shopify/cli-kit/dist/public/node/github.js
|
|
195148
195174
|
init_cjs_shims();
|
|
195149
195175
|
function parseGitHubRepositoryURL(url) {
|
|
195150
195176
|
const match2 = /^(?:(?:https:\/\/)?([^:/]+\.[^:/]+)\/|git@([^:/]+)[:/]|([^/]+):)?([^/\s]+)\/([^/\s#]+)(?:((?:\/[^/\s#]+)+))?(?:\/)?(?:#(.+))?/.exec(url);
|
|
@@ -195171,7 +195197,7 @@ function parseGitHubRepositoryURL(url) {
|
|
|
195171
195197
|
return ok2({ full, site: normalizedSite, user, name, ref, subDirectory, ssh, http: http3 });
|
|
195172
195198
|
}
|
|
195173
195199
|
|
|
195174
|
-
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@0.0.0-next-
|
|
195200
|
+
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@0.0.0-next-a8b9c6c-20240606114114_react-dom@17.0.2_react@18.3.1/node_modules/@shopify/cli-hydrogen/dist/lib/template-downloader.js
|
|
195175
195201
|
var REPO_RELEASES_URL = `https://api.github.com/repos/shopify/hydrogen/releases/latest`;
|
|
195176
195202
|
var getTryMessage = (status) => status === 403 ? `If you are using a VPN, WARP, or similar service, consider disabling it momentarily.` : void 0;
|
|
195177
195203
|
async function getLatestReleaseDownloadUrl(signal) {
|
|
@@ -195275,7 +195301,7 @@ async function downloadExternalRepo(appTemplate, signal) {
|
|
|
195275
195301
|
return { templateDir };
|
|
195276
195302
|
}
|
|
195277
195303
|
|
|
195278
|
-
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@0.0.0-next-
|
|
195304
|
+
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@0.0.0-next-a8b9c6c-20240606114114_react-dom@17.0.2_react@18.3.1/node_modules/@shopify/cli-hydrogen/dist/lib/onboarding/remote.js
|
|
195279
195305
|
var DEMO_STORE_REPO = "shopify/hydrogen-demo-store";
|
|
195280
195306
|
async function setupRemoteTemplate(options, controller) {
|
|
195281
195307
|
const appTemplate = options.template === "demo-store" ? DEMO_STORE_REPO : options.template;
|
|
@@ -195298,7 +195324,17 @@ async function setupRemoteTemplate(options, controller) {
|
|
|
195298
195324
|
if (pkgJson.scripts?.dev?.includes("--diff")) {
|
|
195299
195325
|
return applyTemplateDiff(project.directory, sourcePath, skeletonPath);
|
|
195300
195326
|
}
|
|
195301
|
-
|
|
195327
|
+
await copyFile2(sourcePath, project.directory);
|
|
195328
|
+
await replaceFileContent(
|
|
195329
|
+
joinPath2(project.directory, "package.json"),
|
|
195330
|
+
false,
|
|
195331
|
+
(content) => (
|
|
195332
|
+
// Remove the cli plugin dependency from the package.json because it's
|
|
195333
|
+
// only used for monorepo development. This line is present in non-diff
|
|
195334
|
+
// examples like `express` when scaffolding a new project:
|
|
195335
|
+
content.replace(/^\s*"@shopify\/cli-hydrogen": "[^"]+",?\n/m, "")
|
|
195336
|
+
)
|
|
195337
|
+
);
|
|
195302
195338
|
}).catch(abort);
|
|
195303
195339
|
const supportsTranspilation = await fileExists2(
|
|
195304
195340
|
joinPath2(downloaded.sourcePath, "tsconfig.json")
|
|
@@ -195389,7 +195425,7 @@ Skip the flag or provide the name of a template or example in the Hydrogen repos
|
|
|
195389
195425
|
);
|
|
195390
195426
|
}
|
|
195391
195427
|
|
|
195392
|
-
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@0.0.0-next-
|
|
195428
|
+
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@0.0.0-next-a8b9c6c-20240606114114_react-dom@17.0.2_react@18.3.1/node_modules/@shopify/cli-hydrogen/dist/lib/onboarding/index.js
|
|
195393
195429
|
async function setupTemplate(options) {
|
|
195394
195430
|
const controller = new AbortController3();
|
|
195395
195431
|
try {
|
|
@@ -195401,7 +195437,7 @@ async function setupTemplate(options) {
|
|
|
195401
195437
|
}
|
|
195402
195438
|
}
|
|
195403
195439
|
|
|
195404
|
-
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@0.0.0-next-
|
|
195440
|
+
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@0.0.0-next-a8b9c6c-20240606114114_react-dom@17.0.2_react@18.3.1/node_modules/@shopify/cli-hydrogen/dist/commands/hydrogen/init.js
|
|
195405
195441
|
var FLAG_MAP = { f: "force" };
|
|
195406
195442
|
var Init2 = class _Init2 extends base_command_default2 {
|
|
195407
195443
|
static descriptionWithMarkdown = "Creates a new Hydrogen storefront.";
|
|
@@ -195505,10 +195541,10 @@ async function runInit({
|
|
|
195505
195541
|
return setupTemplate(options);
|
|
195506
195542
|
}
|
|
195507
195543
|
|
|
195508
|
-
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@0.0.0-next-
|
|
195544
|
+
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@0.0.0-next-a8b9c6c-20240606114114_react-dom@17.0.2_react@18.3.1/node_modules/@shopify/cli-hydrogen/dist/commands/hydrogen/list.js
|
|
195509
195545
|
init_cjs_shims();
|
|
195510
195546
|
|
|
195511
|
-
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@0.0.0-next-
|
|
195547
|
+
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@0.0.0-next-a8b9c6c-20240606114114_react-dom@17.0.2_react@18.3.1/node_modules/@shopify/cli-hydrogen/dist/lib/graphql/admin/list-storefronts.js
|
|
195512
195548
|
init_cjs_shims();
|
|
195513
195549
|
var ListStorefrontsQuery = `#graphql
|
|
195514
195550
|
query ListStorefronts {
|
|
@@ -195535,7 +195571,7 @@ async function getStorefrontsWithDeployment(adminSession) {
|
|
|
195535
195571
|
}));
|
|
195536
195572
|
}
|
|
195537
195573
|
|
|
195538
|
-
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@0.0.0-next-
|
|
195574
|
+
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@0.0.0-next-a8b9c6c-20240606114114_react-dom@17.0.2_react@18.3.1/node_modules/@shopify/cli-hydrogen/dist/commands/hydrogen/list.js
|
|
195539
195575
|
var List3 = class _List extends base_command_default2 {
|
|
195540
195576
|
static descriptionWithMarkdown = "Lists all remote Hydrogen storefronts available to link to your local development environment.";
|
|
195541
195577
|
static description = "Returns a list of Hydrogen storefronts available on a given shop.";
|
|
@@ -195621,7 +195657,7 @@ var pluralizedStorefronts = ({
|
|
|
195621
195657
|
);
|
|
195622
195658
|
};
|
|
195623
195659
|
|
|
195624
|
-
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@0.0.0-next-
|
|
195660
|
+
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@0.0.0-next-a8b9c6c-20240606114114_react-dom@17.0.2_react@18.3.1/node_modules/@shopify/cli-hydrogen/dist/commands/hydrogen/login.js
|
|
195625
195661
|
init_cjs_shims();
|
|
195626
195662
|
var Login = class _Login extends base_command_default2 {
|
|
195627
195663
|
static descriptionWithMarkdown = "Logs in to the specified shop and saves the shop domain to the project.";
|
|
@@ -195643,7 +195679,7 @@ async function runLogin({
|
|
|
195643
195679
|
renderLoginSuccess(config2);
|
|
195644
195680
|
}
|
|
195645
195681
|
|
|
195646
|
-
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@0.0.0-next-
|
|
195682
|
+
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@0.0.0-next-a8b9c6c-20240606114114_react-dom@17.0.2_react@18.3.1/node_modules/@shopify/cli-hydrogen/dist/commands/hydrogen/logout.js
|
|
195647
195683
|
init_cjs_shims();
|
|
195648
195684
|
var Logout2 = class _Logout extends base_command_default2 {
|
|
195649
195685
|
static descriptionWithMarkdown = "Log out from the current shop.";
|
|
@@ -195661,7 +195697,7 @@ async function runLogout({ path: root = process.cwd() }) {
|
|
|
195661
195697
|
renderSuccess2({ body: "You are logged out from Shopify." });
|
|
195662
195698
|
}
|
|
195663
195699
|
|
|
195664
|
-
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@0.0.0-next-
|
|
195700
|
+
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@0.0.0-next-a8b9c6c-20240606114114_react-dom@17.0.2_react@18.3.1/node_modules/@shopify/cli-hydrogen/dist/commands/hydrogen/preview.js
|
|
195665
195701
|
init_cjs_shims();
|
|
195666
195702
|
var import_core26 = __toESM(require_lib(), 1);
|
|
195667
195703
|
var Preview = class _Preview extends base_command_default2 {
|
|
@@ -195817,7 +195853,7 @@ async function runPreview({
|
|
|
195817
195853
|
};
|
|
195818
195854
|
}
|
|
195819
195855
|
|
|
195820
|
-
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@0.0.0-next-
|
|
195856
|
+
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@0.0.0-next-a8b9c6c-20240606114114_react-dom@17.0.2_react@18.3.1/node_modules/@shopify/cli-hydrogen/dist/commands/hydrogen/setup.js
|
|
195821
195857
|
init_cjs_shims();
|
|
195822
195858
|
var Setup = class _Setup extends base_command_default2 {
|
|
195823
195859
|
static description = "Scaffold routes and core functionality.";
|
|
@@ -195931,7 +195967,7 @@ async function runSetup(options) {
|
|
|
195931
195967
|
);
|
|
195932
195968
|
}
|
|
195933
195969
|
|
|
195934
|
-
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@0.0.0-next-
|
|
195970
|
+
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@0.0.0-next-a8b9c6c-20240606114114_react-dom@17.0.2_react@18.3.1/node_modules/@shopify/cli-hydrogen/dist/commands/hydrogen/setup/css.js
|
|
195935
195971
|
init_cjs_shims();
|
|
195936
195972
|
var import_core27 = __toESM(require_lib(), 1);
|
|
195937
195973
|
var SetupCSS = class _SetupCSS extends base_command_default2 {
|
|
@@ -196009,7 +196045,7 @@ For more information, visit ${helpUrl}.`
|
|
|
196009
196045
|
});
|
|
196010
196046
|
}
|
|
196011
196047
|
|
|
196012
|
-
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@0.0.0-next-
|
|
196048
|
+
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@0.0.0-next-a8b9c6c-20240606114114_react-dom@17.0.2_react@18.3.1/node_modules/@shopify/cli-hydrogen/dist/commands/hydrogen/setup/markets.js
|
|
196013
196049
|
init_cjs_shims();
|
|
196014
196050
|
var import_core28 = __toESM(require_lib(), 1);
|
|
196015
196051
|
var SetupMarkets = class _SetupMarkets extends base_command_default2 {
|
|
@@ -196057,7 +196093,7 @@ async function runSetupMarkets({
|
|
|
196057
196093
|
});
|
|
196058
196094
|
}
|
|
196059
196095
|
|
|
196060
|
-
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@0.0.0-next-
|
|
196096
|
+
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@0.0.0-next-a8b9c6c-20240606114114_react-dom@17.0.2_react@18.3.1/node_modules/@shopify/cli-hydrogen/dist/commands/hydrogen/setup/vite.js
|
|
196061
196097
|
init_cjs_shims();
|
|
196062
196098
|
var SetupVite = class _SetupVite extends base_command_default2 {
|
|
196063
196099
|
static description = "EXPERIMENTAL: Upgrades the project to use Vite.";
|
|
@@ -196358,7 +196394,7 @@ Please use Git to review the changes.`,
|
|
|
196358
196394
|
});
|
|
196359
196395
|
}
|
|
196360
196396
|
|
|
196361
|
-
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@0.0.0-next-
|
|
196397
|
+
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@0.0.0-next-a8b9c6c-20240606114114_react-dom@17.0.2_react@18.3.1/node_modules/@shopify/cli-hydrogen/dist/commands/hydrogen/shortcut.js
|
|
196362
196398
|
init_cjs_shims();
|
|
196363
196399
|
var Shortcut = class extends base_command_default2 {
|
|
196364
196400
|
static descriptionWithMarkdown = `Creates a global h2 shortcut for Shopify CLI using shell aliases.
|
|
@@ -196396,7 +196432,7 @@ Restart your terminal session and run \`${ALIAS_NAME}\` from your local project.
|
|
|
196396
196432
|
}
|
|
196397
196433
|
}
|
|
196398
196434
|
|
|
196399
|
-
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@0.0.0-next-
|
|
196435
|
+
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@0.0.0-next-a8b9c6c-20240606114114_react-dom@17.0.2_react@18.3.1/node_modules/@shopify/cli-hydrogen/dist/commands/hydrogen/unlink.js
|
|
196400
196436
|
init_cjs_shims();
|
|
196401
196437
|
var Unlink = class _Unlink extends base_command_default2 {
|
|
196402
196438
|
static descriptionWithMarkdown = "Unlinks your local development environment from a remote Hydrogen storefront.";
|
|
@@ -196423,14 +196459,42 @@ async function unlinkStorefront({ path: path5 }) {
|
|
|
196423
196459
|
});
|
|
196424
196460
|
}
|
|
196425
196461
|
|
|
196426
|
-
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@0.0.0-next-
|
|
196462
|
+
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@0.0.0-next-a8b9c6c-20240606114114_react-dom@17.0.2_react@18.3.1/node_modules/@shopify/cli-hydrogen/dist/hooks/init.js
|
|
196427
196463
|
init_cjs_shims();
|
|
196428
|
-
import {
|
|
196429
|
-
|
|
196430
|
-
function commandNeedsVM(id = "", argv = []) {
|
|
196431
|
-
return id === "hydrogen:debug:cpu" || ["hydrogen:dev", "hydrogen:preview"].includes(id) && argv.includes("--legacy-runtime");
|
|
196432
|
-
}
|
|
196464
|
+
import { createRequire as createRequire3 } from "node:module";
|
|
196465
|
+
import { spawnSync } from "node:child_process";
|
|
196433
196466
|
var hook = async function(options) {
|
|
196467
|
+
if (!options.id?.startsWith("hydrogen:") || options.id === "hydrogen:init") {
|
|
196468
|
+
return;
|
|
196469
|
+
}
|
|
196470
|
+
let projectPath = cwd2();
|
|
196471
|
+
const pathFlagRE = /^--path($|=)/;
|
|
196472
|
+
const pathFlagIndex = options.argv.findIndex((arg) => pathFlagRE.test(arg));
|
|
196473
|
+
if (pathFlagIndex !== -1) {
|
|
196474
|
+
const pathFlagValue = options.argv[pathFlagIndex]?.split("=")[1] ?? options.argv[pathFlagIndex + 1];
|
|
196475
|
+
if (pathFlagValue && !pathFlagValue.startsWith("--")) {
|
|
196476
|
+
projectPath = resolvePath2(projectPath, pathFlagValue);
|
|
196477
|
+
}
|
|
196478
|
+
}
|
|
196479
|
+
if (!isHydrogenProject(projectPath)) {
|
|
196480
|
+
outputNewline2();
|
|
196481
|
+
renderWarning2({
|
|
196482
|
+
headline: `Looks like you're trying to run a Hydrogen command outside of a Hydrogen project.`,
|
|
196483
|
+
body: [
|
|
196484
|
+
"Run",
|
|
196485
|
+
{ command: "shopify hydrogen init" },
|
|
196486
|
+
"to create a new Hydrogen project or use the",
|
|
196487
|
+
{ command: "--path" },
|
|
196488
|
+
"flag to specify an existing Hydrogen project.\n\n",
|
|
196489
|
+
{ subdued: projectPath }
|
|
196490
|
+
],
|
|
196491
|
+
reference: [
|
|
196492
|
+
"Getting started: https://shopify.dev/docs/storefronts/headless/hydrogen",
|
|
196493
|
+
"CLI commands: https://shopify.dev/docs/api/shopify-cli/hydrogen"
|
|
196494
|
+
]
|
|
196495
|
+
});
|
|
196496
|
+
process.exit(1);
|
|
196497
|
+
}
|
|
196434
196498
|
if (commandNeedsVM(options.id, options.argv) && !process.execArgv.includes(EXPERIMENTAL_VM_MODULES_FLAG) && !(process.env.NODE_OPTIONS ?? "").includes(EXPERIMENTAL_VM_MODULES_FLAG)) {
|
|
196435
196499
|
outputDebug2(
|
|
196436
196500
|
`Restarting CLI process with ${EXPERIMENTAL_VM_MODULES_FLAG} flag.`
|
|
@@ -196441,9 +196505,23 @@ var hook = async function(options) {
|
|
|
196441
196505
|
process.exit(result.status ?? 1);
|
|
196442
196506
|
}
|
|
196443
196507
|
};
|
|
196508
|
+
var EXPERIMENTAL_VM_MODULES_FLAG = "--experimental-vm-modules";
|
|
196509
|
+
function commandNeedsVM(id = "", argv = []) {
|
|
196510
|
+
return id === "hydrogen:debug:cpu" || ["hydrogen:dev", "hydrogen:preview"].includes(id) && argv.includes("--legacy-runtime");
|
|
196511
|
+
}
|
|
196512
|
+
function isHydrogenProject(projectPath) {
|
|
196513
|
+
try {
|
|
196514
|
+
const require22 = createRequire3(import.meta.url);
|
|
196515
|
+
const { dependencies } = require22(joinPath2(projectPath, "package.json"));
|
|
196516
|
+
return !!dependencies["@shopify/hydrogen"] || // Diff examples only have this package as a dependency
|
|
196517
|
+
!!dependencies["@shopify/cli-hydrogen"];
|
|
196518
|
+
} catch {
|
|
196519
|
+
return false;
|
|
196520
|
+
}
|
|
196521
|
+
}
|
|
196444
196522
|
var init_default2 = hook;
|
|
196445
196523
|
|
|
196446
|
-
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@0.0.0-next-
|
|
196524
|
+
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@0.0.0-next-a8b9c6c-20240606114114_react-dom@17.0.2_react@18.3.1/node_modules/@shopify/cli-hydrogen/dist/index.js
|
|
196447
196525
|
var COMMANDS2 = {
|
|
196448
196526
|
"hydrogen:dev": Dev2,
|
|
196449
196527
|
"hydrogen:build": Build,
|
|
@@ -208720,27 +208798,17 @@ var PROTOCOL = {
|
|
|
208720
208798
|
EVENTBRIDGE: new RegExp("^arn:aws:events:")
|
|
208721
208799
|
};
|
|
208722
208800
|
function isAddressAllowedForDeliveryMethod(address, deliveryMethod) {
|
|
208723
|
-
|
|
208724
|
-
|
|
208725
|
-
|
|
208726
|
-
|
|
208727
|
-
return PROTOCOL.EVENTBRIDGE.test(address);
|
|
208728
|
-
}
|
|
208729
|
-
if (deliveryMethod === DELIVERY_METHOD.HTTP && isAnyHttp(address)) {
|
|
208730
|
-
if (isLocal(address)) {
|
|
208731
|
-
return true;
|
|
208732
|
-
}
|
|
208733
|
-
return PROTOCOL.HTTP.test(address);
|
|
208734
|
-
}
|
|
208735
|
-
return false;
|
|
208801
|
+
const expectedDeliveryMethod = deliveryMethodForAddress(address);
|
|
208802
|
+
if (expectedDeliveryMethod === DELIVERY_METHOD.LOCALHOST && deliveryMethod === DELIVERY_METHOD.HTTP)
|
|
208803
|
+
return true;
|
|
208804
|
+
return expectedDeliveryMethod === deliveryMethod;
|
|
208736
208805
|
}
|
|
208737
208806
|
function isLocal(address) {
|
|
208807
|
+
if (!PROTOCOL.LOCALHOST.test(address))
|
|
208808
|
+
return false;
|
|
208738
208809
|
const url = new URL(address.toLowerCase());
|
|
208739
208810
|
return url.hostname === "localhost";
|
|
208740
208811
|
}
|
|
208741
|
-
function isAnyHttp(address) {
|
|
208742
|
-
return PROTOCOL.LOCALHOST.test(address) || PROTOCOL.HTTP.test(address);
|
|
208743
|
-
}
|
|
208744
208812
|
function validateAddressMethod(address, deliveryMethod) {
|
|
208745
208813
|
if (!isAddressAllowedForDeliveryMethod(address, deliveryMethod)) {
|
|
208746
208814
|
throw new AbortError(`Can't deliver your webhook payload to this address using '${deliveryMethod}'`, "Use a valid URL for address", deliveryMethodInstructions(deliveryMethod));
|
|
@@ -208797,7 +208865,7 @@ function deliveryMethodForAddress(address) {
|
|
|
208797
208865
|
if (PROTOCOL.EVENTBRIDGE.test(address)) {
|
|
208798
208866
|
return DELIVERY_METHOD.EVENTBRIDGE;
|
|
208799
208867
|
}
|
|
208800
|
-
if (
|
|
208868
|
+
if (isLocal(address)) {
|
|
208801
208869
|
return DELIVERY_METHOD.LOCALHOST;
|
|
208802
208870
|
}
|
|
208803
208871
|
if (PROTOCOL.HTTP.test(address)) {
|
|
@@ -209431,8 +209499,8 @@ var unauthorizedTemplate = `
|
|
|
209431
209499
|
var import_express = __toESM(require_express2(), 1);
|
|
209432
209500
|
var import_body_parser = __toESM(require_body_parser(), 1);
|
|
209433
209501
|
import { encode as queryStringEncode } from "node:querystring";
|
|
209434
|
-
import { createRequire as
|
|
209435
|
-
var require2 =
|
|
209502
|
+
import { createRequire as createRequire4 } from "module";
|
|
209503
|
+
var require2 = createRequire4(import.meta.url);
|
|
209436
209504
|
var TokenRefreshError = class extends AbortError {
|
|
209437
209505
|
constructor() {
|
|
209438
209506
|
super("Failed to refresh credentials. Check that your app is installed, and try again.");
|
|
@@ -212506,13 +212574,13 @@ init_cjs_shims();
|
|
|
212506
212574
|
// ../create-app/dist/commands/init.js
|
|
212507
212575
|
init_cjs_shims();
|
|
212508
212576
|
|
|
212509
|
-
// ../create-app/dist/chunk-
|
|
212577
|
+
// ../create-app/dist/chunk-5MCGL7UQ.js
|
|
212510
212578
|
init_cjs_shims();
|
|
212511
212579
|
|
|
212512
|
-
// ../create-app/dist/chunk-
|
|
212580
|
+
// ../create-app/dist/chunk-PBU62XMI.js
|
|
212513
212581
|
init_cjs_shims();
|
|
212514
212582
|
|
|
212515
|
-
// ../create-app/dist/chunk-
|
|
212583
|
+
// ../create-app/dist/chunk-CKKF7TFO.js
|
|
212516
212584
|
init_cjs_shims();
|
|
212517
212585
|
init_cjs_shims2();
|
|
212518
212586
|
async function cleanup(webOutputDirectory) {
|
|
@@ -212536,7 +212604,7 @@ async function cleanup(webOutputDirectory) {
|
|
|
212536
212604
|
});
|
|
212537
212605
|
}
|
|
212538
212606
|
|
|
212539
|
-
// ../create-app/dist/chunk-
|
|
212607
|
+
// ../create-app/dist/chunk-TPUQWQRW.js
|
|
212540
212608
|
init_cjs_shims();
|
|
212541
212609
|
import { platform } from "os";
|
|
212542
212610
|
init_cjs_shims2();
|
|
@@ -212578,7 +212646,7 @@ async function getDeepInstallNPMTasks({
|
|
|
212578
212646
|
return installNodeModules3({ directory: normalizePath2(from), packageManager: packageManager2, args });
|
|
212579
212647
|
}
|
|
212580
212648
|
|
|
212581
|
-
// ../create-app/dist/chunk-
|
|
212649
|
+
// ../create-app/dist/chunk-PBU62XMI.js
|
|
212582
212650
|
import { spawn as spawn3 } from "child_process";
|
|
212583
212651
|
var require_liquid_node_cjs2 = __commonJS2({
|
|
212584
212652
|
"../../node_modules/.pnpm/liquidjs@10.9.2/node_modules/liquidjs/dist/liquid.node.cjs.js"(exports2) {
|
|
@@ -220326,7 +220394,7 @@ function detectAdditionalWorkspacesFolders(directory) {
|
|
|
220326
220394
|
}
|
|
220327
220395
|
var init_default3 = init;
|
|
220328
220396
|
|
|
220329
|
-
// ../create-app/dist/chunk-
|
|
220397
|
+
// ../create-app/dist/chunk-TAJ7LPFK.js
|
|
220330
220398
|
init_cjs_shims();
|
|
220331
220399
|
init_cjs_shims2();
|
|
220332
220400
|
var import_core43 = __toESM2(require_lib22(), 1);
|
|
@@ -220343,7 +220411,7 @@ var globalFlags2 = {
|
|
|
220343
220411
|
})
|
|
220344
220412
|
};
|
|
220345
220413
|
|
|
220346
|
-
// ../create-app/dist/chunk-
|
|
220414
|
+
// ../create-app/dist/chunk-5ZQGZROG.js
|
|
220347
220415
|
init_cjs_shims();
|
|
220348
220416
|
var init_exports = {};
|
|
220349
220417
|
__export2(init_exports, {
|
|
@@ -220469,7 +220537,7 @@ function isPredefinedTemplate(template2) {
|
|
|
220469
220537
|
return allTemplates.includes(template2);
|
|
220470
220538
|
}
|
|
220471
220539
|
|
|
220472
|
-
// ../create-app/dist/chunk-
|
|
220540
|
+
// ../create-app/dist/chunk-5MCGL7UQ.js
|
|
220473
220541
|
var require_parser2 = __commonJS2({
|
|
220474
220542
|
"../../node_modules/.pnpm/@iarna+toml@2.2.5/node_modules/@iarna/toml/lib/parser.js"(exports2, module2) {
|
|
220475
220543
|
"use strict";
|
|
@@ -222506,7 +222574,7 @@ function decodeToml2(input) {
|
|
|
222506
222574
|
return toml.parse(normalizedInput);
|
|
222507
222575
|
}
|
|
222508
222576
|
async function loadEnvironment(environmentName, fileName, options) {
|
|
222509
|
-
const basePath = options?.from && options?.from !== "." ? options.from :
|
|
222577
|
+
const basePath = options?.from && options?.from !== "." ? options.from : cwd3();
|
|
222510
222578
|
const filePath = await findPathUp2(fileName, {
|
|
222511
222579
|
cwd: basePath,
|
|
222512
222580
|
type: "file"
|
|
@@ -222716,7 +222784,7 @@ var Init3 = class _Init extends base_command_default3 {
|
|
|
222716
222784
|
char: "p",
|
|
222717
222785
|
env: "SHOPIFY_FLAG_PATH",
|
|
222718
222786
|
parse: async (input) => resolvePath3(input),
|
|
222719
|
-
default: async () =>
|
|
222787
|
+
default: async () => cwd3(),
|
|
222720
222788
|
hidden: false
|
|
222721
222789
|
}),
|
|
222722
222790
|
template: import_core210.Flags.string({
|
|
@@ -223706,7 +223774,7 @@ init_cjs_shims();
|
|
|
223706
223774
|
var import_core51 = __toESM(require_lib(), 1);
|
|
223707
223775
|
var import_debug3 = __toESM(require_src(), 1);
|
|
223708
223776
|
import { readFile as readFile4 } from "node:fs/promises";
|
|
223709
|
-
import { createRequire as
|
|
223777
|
+
import { createRequire as createRequire5 } from "node:module";
|
|
223710
223778
|
import { join as join2, sep } from "node:path";
|
|
223711
223779
|
|
|
223712
223780
|
// ../../node_modules/.pnpm/@oclif+plugin-plugins@5.1.2/node_modules/@oclif/plugin-plugins/lib/spawn.js
|
|
@@ -223715,7 +223783,7 @@ var import_core50 = __toESM(require_lib(), 1);
|
|
|
223715
223783
|
var import_debug2 = __toESM(require_src(), 1);
|
|
223716
223784
|
import { spawn as cpSpawn } from "node:child_process";
|
|
223717
223785
|
var debug = (0, import_debug2.default)("@oclif/plugin-plugins:spawn");
|
|
223718
|
-
async function spawn4(modulePath2, args = [], { cwd:
|
|
223786
|
+
async function spawn4(modulePath2, args = [], { cwd: cwd4, logLevel }) {
|
|
223719
223787
|
return new Promise((resolve2, reject) => {
|
|
223720
223788
|
if (process.platform === "win32" && modulePath2.endsWith(".js")) {
|
|
223721
223789
|
args.unshift(`"${modulePath2}"`);
|
|
@@ -223724,7 +223792,7 @@ async function spawn4(modulePath2, args = [], { cwd: cwd3, logLevel }) {
|
|
|
223724
223792
|
debug("modulePath", modulePath2);
|
|
223725
223793
|
debug("args", args);
|
|
223726
223794
|
const spawned = cpSpawn(modulePath2, args, {
|
|
223727
|
-
cwd:
|
|
223795
|
+
cwd: cwd4,
|
|
223728
223796
|
env: {
|
|
223729
223797
|
...npmRunPathEnv(),
|
|
223730
223798
|
// Disable husky hooks because a plugin might be trying to install them, which will
|
|
@@ -223834,7 +223902,7 @@ var NPM = class {
|
|
|
223834
223902
|
if (this.bin)
|
|
223835
223903
|
return this.bin;
|
|
223836
223904
|
try {
|
|
223837
|
-
const npmPjsonPath =
|
|
223905
|
+
const npmPjsonPath = createRequire5(import.meta.url).resolve("npm/package.json");
|
|
223838
223906
|
const npmPjson = JSON.parse(await readFile4(npmPjsonPath, { encoding: "utf8" }));
|
|
223839
223907
|
const npmPath = npmPjsonPath.slice(0, Math.max(0, npmPjsonPath.lastIndexOf(sep)));
|
|
223840
223908
|
this.bin = join2(npmPath, npmPjson.bin.npm);
|
|
@@ -223879,9 +223947,9 @@ function uniqWith(arr, fn) {
|
|
|
223879
223947
|
init_cjs_shims();
|
|
223880
223948
|
var import_core52 = __toESM(require_lib(), 1);
|
|
223881
223949
|
var import_debug4 = __toESM(require_src(), 1);
|
|
223882
|
-
import { createRequire as
|
|
223950
|
+
import { createRequire as createRequire6 } from "node:module";
|
|
223883
223951
|
import { fileURLToPath as fileURLToPath5 } from "node:url";
|
|
223884
|
-
var require3 =
|
|
223952
|
+
var require3 = createRequire6(import.meta.url);
|
|
223885
223953
|
var debug3 = (0, import_debug4.default)("@oclif/plugin-plugins:yarn");
|
|
223886
223954
|
var Yarn = class {
|
|
223887
223955
|
bin;
|