shopify 4.4.0 → 4.5.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{analytics-SOXP4UBD.js → analytics-DMUNCDGT.js} +1 -1
- package/dist/{analytics-DWUYMFHO.js → analytics-GAPN4I6R.js} +1 -1
- package/dist/bootstrap.js +1 -1
- package/dist/{chunk-2NWWMNU5.js → chunk-235JVI2J.js} +1 -1
- package/dist/{chunk-Y3WIZSRU.js → chunk-24RF5KN3.js} +1 -1
- package/dist/{chunk-OORCODNK.js → chunk-2IPVQRMI.js} +1 -1
- package/dist/{chunk-J5TNYNR5.js → chunk-2MDFREEW.js} +1 -1
- package/dist/{chunk-V3RZ3DTW.js → chunk-2MZACB7V.js} +1 -1
- package/dist/{chunk-WVHB2HCQ.js → chunk-2ROG5NK3.js} +1 -1
- package/dist/{chunk-NY5OGHM5.js → chunk-2VUG6LRN.js} +1 -1
- package/dist/{chunk-FZKKKGUJ.js → chunk-32KQKGSY.js} +1 -1
- package/dist/{chunk-5W443CKL.js → chunk-3EQY5B4S.js} +1 -1
- package/dist/{chunk-RF6NUGCU.js → chunk-3JAC5SI7.js} +1 -1
- package/dist/{chunk-LCPD2BYX.js → chunk-3JZKWK2V.js} +1 -1
- package/dist/{chunk-APN3VWN4.js → chunk-3NMVMCOM.js} +1 -1
- package/dist/{chunk-UYK6CXAU.js → chunk-3OE5HXHO.js} +1 -1
- package/dist/{chunk-45MEVWH5.js → chunk-4EYTWWYF.js} +1 -1
- package/dist/{chunk-X4DIJTIK.js → chunk-4LML2QWN.js} +1 -1
- package/dist/{chunk-4N6YTHFD.js → chunk-4Q54UDO3.js} +1 -1
- package/dist/{chunk-7UOPCYMV.js → chunk-4U3NC3UU.js} +1 -1
- package/dist/{chunk-J3HXFQ2L.js → chunk-52H2R2FU.js} +1 -1
- package/dist/{chunk-5JNEWYD5.js → chunk-57IRHKV3.js} +1 -1
- package/dist/{chunk-QPN2M26G.js → chunk-5A7EMVAP.js} +1 -1
- package/dist/{chunk-H6WN7GP4.js → chunk-5EVFLUUA.js} +1 -1
- package/dist/{chunk-TQUSREKP.js → chunk-5O7PY44R.js} +1 -1
- package/dist/{chunk-ZIXWWU2N.js → chunk-63NFEXJR.js} +2 -2
- package/dist/{chunk-RYGZCBO4.js → chunk-663TS34D.js} +1 -1
- package/dist/{chunk-DQ4HA72R.js → chunk-6I3FNLT3.js} +1 -1
- package/dist/{chunk-ZEENHLSC.js → chunk-6LTJMYUD.js} +1 -1
- package/dist/{chunk-ZAMDXIVC.js → chunk-6V37CHBZ.js} +1 -1
- package/dist/{chunk-UKK5P74A.js → chunk-74IG3ZE3.js} +3 -3
- package/dist/{chunk-T5GSCWN5.js → chunk-7BVXGS44.js} +1 -1
- package/dist/{chunk-GKRCTMWY.js → chunk-7DYZVU7H.js} +1 -1
- package/dist/{chunk-OAI7VSLW.js → chunk-7EOQVQND.js} +1 -1
- package/dist/{chunk-FPLUMESQ.js → chunk-7HZG7FBK.js} +1 -1
- package/dist/{chunk-VOJWKGCW.js → chunk-7KHYEIA7.js} +1 -1
- package/dist/{chunk-PJYNAUQB.js → chunk-7ZIO3X22.js} +1 -1
- package/dist/{chunk-I73E3BD5.js → chunk-A2O3MBPH.js} +1 -1
- package/dist/{chunk-JAW32T6G.js → chunk-ABCU552E.js} +1 -1
- package/dist/{chunk-YGKQCEVG.js → chunk-AP6FNGTA.js} +1 -1
- package/dist/{chunk-WKBVT5WG.js → chunk-AUZCENYI.js} +1 -1
- package/dist/{chunk-UUC5YKAS.js → chunk-AYKRKE6O.js} +1 -1
- package/dist/{chunk-WAGAC3YI.js → chunk-AYSS2ERL.js} +1 -1
- package/dist/{chunk-Z4LC3WE5.js → chunk-B367FOQA.js} +1 -1
- package/dist/{chunk-U73TPLFE.js → chunk-BBATKR3B.js} +1 -1
- package/dist/{chunk-O6KTFMCD.js → chunk-BCEWCYZD.js} +1 -1
- package/dist/{chunk-SP2WUATO.js → chunk-BH34ZLZ4.js} +1 -1
- package/dist/{chunk-LOQIRLTD.js → chunk-BLI7DUNV.js} +1 -1
- package/dist/{chunk-YYL356OX.js → chunk-BNX4MZMV.js} +1 -1
- package/dist/{chunk-47MGPVED.js → chunk-BU7R7NFL.js} +1 -1
- package/dist/{chunk-5GVXMNC4.js → chunk-BVHBMOIB.js} +1 -1
- package/dist/{chunk-DONEJHDG.js → chunk-BXDZX3BS.js} +3 -3
- package/dist/{chunk-SKLUHLS2.js → chunk-CVRAATZ5.js} +1 -1
- package/dist/{chunk-CD5O2BIT.js → chunk-DBBU6OVN.js} +1 -1
- package/dist/{chunk-B7S23DLF.js → chunk-DKVU7LYY.js} +1 -1
- package/dist/{chunk-HCN6HXA5.js → chunk-DLZPP33V.js} +1 -1
- package/dist/{chunk-733R5OKQ.js → chunk-DQOS54HN.js} +1 -1
- package/dist/{chunk-JOZXRV5K.js → chunk-E4GW6OXT.js} +1 -1
- package/dist/chunk-E64BQS4D.js +1 -0
- package/dist/{chunk-BCD4KTLJ.js → chunk-F447QKVX.js} +1 -1
- package/dist/{chunk-HZSAUZBX.js → chunk-FA25RL4G.js} +1 -1
- package/dist/{chunk-CZXGQ53M.js → chunk-FJOEHMXM.js} +1 -1
- package/dist/{chunk-HA6NISOZ.js → chunk-G6YOP2SJ.js} +1 -1
- package/dist/{chunk-WZVQHMGI.js → chunk-GOAKZ2IL.js} +1 -1
- package/dist/{chunk-VQW35HIQ.js → chunk-H2JU5BGK.js} +1 -1
- package/dist/{chunk-QMXKGSFH.js → chunk-H3V6Y5JO.js} +1 -1
- package/dist/{chunk-EKHWL542.js → chunk-HHA322FT.js} +1 -1
- package/dist/{chunk-GBZL4TTY.js → chunk-HP3NDE7S.js} +1 -1
- package/dist/{chunk-GW3VY3FZ.js → chunk-HX3TALXV.js} +1 -1
- package/dist/{chunk-POAICASX.js → chunk-I3Y6XTKN.js} +1 -1
- package/dist/{chunk-5QWYIBE6.js → chunk-ICHNVDFU.js} +1 -1
- package/dist/{chunk-MZMYBFZQ.js → chunk-ICXHUPP5.js} +1 -1
- package/dist/{chunk-CPE7XCC6.js → chunk-IE4SSSXU.js} +1 -1
- package/dist/{chunk-QS3FMN67.js → chunk-IFVYCKX5.js} +1 -1
- package/dist/{chunk-67KMRBSZ.js → chunk-J2ZES5K5.js} +1 -1
- package/dist/{chunk-7EJ4UVYI.js → chunk-J5U2FUIX.js} +1 -1
- package/dist/{chunk-DO2SHYFU.js → chunk-JC3PRJJS.js} +1 -1
- package/dist/{chunk-D6YDSGR4.js → chunk-JGN7YG5X.js} +1 -1
- package/dist/{chunk-HZYRCG4R.js → chunk-JZVNNQWE.js} +1 -1
- package/dist/{chunk-DZLA2RJP.js → chunk-K2CIMJJW.js} +1 -1
- package/dist/{chunk-IIOIDMG3.js → chunk-K7I5BGFC.js} +1 -1
- package/dist/{chunk-DHBYYHBT.js → chunk-KESQOMEW.js} +1 -1
- package/dist/{chunk-ATXODH6C.js → chunk-KJQAJUDU.js} +1 -1
- package/dist/{chunk-7SVMAJTR.js → chunk-KNEF6NAG.js} +1 -1
- package/dist/{chunk-XH6ZP7M5.js → chunk-KUKYAIOR.js} +1 -1
- package/dist/{chunk-2MMGFZDP.js → chunk-KZDI2BXR.js} +1 -1
- package/dist/{chunk-OQORDQLH.js → chunk-LMPD55L6.js} +1 -1
- package/dist/{chunk-ZULTG2D2.js → chunk-LXZM6Z4F.js} +1 -1
- package/dist/{chunk-KKUDXLK2.js → chunk-MGPLKG23.js} +1 -1
- package/dist/{chunk-2EROVVCL.js → chunk-MSJDZLZT.js} +1 -1
- package/dist/{chunk-ZQ5JVD5X.js → chunk-N4LCWB56.js} +1 -1
- package/dist/{chunk-WRRUFK4Y.js → chunk-N5U5Q2MG.js} +1 -1
- package/dist/{chunk-YQH2JHFA.js → chunk-N5YIZJ4S.js} +1 -1
- package/dist/{chunk-BIMOHK2P.js → chunk-N625VE5T.js} +1 -1
- package/dist/{chunk-J2WCMQZZ.js → chunk-NJLSZS27.js} +1 -1
- package/dist/{chunk-3CYHS4W2.js → chunk-O7OQK2OC.js} +1 -1
- package/dist/{chunk-V6ZSIUO3.js → chunk-P375IGKT.js} +1 -1
- package/dist/{chunk-3OZ6ZZ4T.js → chunk-P3RGC53U.js} +1 -1
- package/dist/{chunk-G2S346IS.js → chunk-P4243GCY.js} +1 -1
- package/dist/{chunk-MFLQRQQT.js → chunk-PFEC2NUB.js} +1 -1
- package/dist/{chunk-GTUKM3ZW.js → chunk-PH7F4BMG.js} +1 -1
- package/dist/{chunk-IX4KP6E3.js → chunk-PK6NOLT5.js} +1 -1
- package/dist/chunk-PLHJQQVZ.js +1 -0
- package/dist/{chunk-GFCLUGAG.js → chunk-PVD544NN.js} +1 -1
- package/dist/chunk-Q3WOWDUU.js +1 -0
- package/dist/{chunk-FA4K3JRN.js → chunk-QAM7VCLV.js} +1 -1
- package/dist/{chunk-AT2GDXN7.js → chunk-QCBAFI6Z.js} +1 -1
- package/dist/{chunk-J7UQBC45.js → chunk-QHWF3S7U.js} +1 -1
- package/dist/{chunk-TKG42KLM.js → chunk-QJL3SXYA.js} +1 -1
- package/dist/{chunk-C3CVLSLS.js → chunk-QRETBFXI.js} +1 -1
- package/dist/{chunk-4TST2MNC.js → chunk-RBOYWA2D.js} +1 -1
- package/dist/{chunk-NWDP5IZ2.js → chunk-ROQXPIEZ.js} +1 -1
- package/dist/{chunk-5QQN3SKH.js → chunk-RUKK4KXX.js} +1 -1
- package/dist/{chunk-Z74QYLNC.js → chunk-RY2ESY3P.js} +1 -1
- package/dist/{chunk-QJ7TI6CK.js → chunk-RY5CY3ZW.js} +1 -1
- package/dist/{chunk-IG6LPVS4.js → chunk-S442LGHR.js} +1 -1
- package/dist/{chunk-H5C3QTOO.js → chunk-S5JJL3BP.js} +1 -1
- package/dist/{chunk-ZZFZBFVM.js → chunk-SF53RKMO.js} +1 -1
- package/dist/{chunk-PETINPMX.js → chunk-SY2AH7C2.js} +1 -1
- package/dist/{chunk-WNWQSHEC.js → chunk-TEXYUUTD.js} +1 -1
- package/dist/{chunk-G24L7MB3.js → chunk-TGM7L6RV.js} +1 -1
- package/dist/{chunk-PMXCJIBP.js → chunk-TKW3Z7XL.js} +1 -1
- package/dist/{chunk-KN3FTJDU.js → chunk-TM534QSE.js} +1 -1
- package/dist/{chunk-TJGUNVRI.js → chunk-U44HRKSU.js} +1 -1
- package/dist/{chunk-442S5SDM.js → chunk-UEC23KAO.js} +1 -1
- package/dist/{chunk-G2I2ZUBV.js → chunk-UFGDNIYX.js} +1 -1
- package/dist/{chunk-75LJTY7F.js → chunk-UGGFSV7N.js} +1 -1
- package/dist/{chunk-F5QG42MA.js → chunk-UJVYIWUI.js} +1 -1
- package/dist/{chunk-DLNBTHKL.js → chunk-UP7H24B3.js} +1 -1
- package/dist/{chunk-VFWWZMOQ.js → chunk-UQZ7HZ47.js} +1 -1
- package/dist/{chunk-NADNFSKS.js → chunk-UTLRP527.js} +1 -1
- package/dist/{chunk-73W5BGAZ.js → chunk-UTPJAU5S.js} +1 -1
- package/dist/{chunk-3FBSBMSQ.js → chunk-V66IHWQO.js} +1 -1
- package/dist/{chunk-GUO7S4NW.js → chunk-V774I3FW.js} +1 -1
- package/dist/{chunk-PUAMSBXS.js → chunk-VKFDDZD3.js} +1 -1
- package/dist/{chunk-LOHUNOQ7.js → chunk-VNYKNAT5.js} +1 -1
- package/dist/{chunk-KSZ5K6LJ.js → chunk-VUACOGOX.js} +1 -1
- package/dist/{chunk-WLO5H255.js → chunk-WFB3FHKV.js} +1 -1
- package/dist/{chunk-HZMP62GK.js → chunk-WPITBIL5.js} +1 -1
- package/dist/{chunk-SXTDVUT3.js → chunk-WTYH2O47.js} +1 -1
- package/dist/{chunk-AY4GIVME.js → chunk-WU6GIY22.js} +1 -1
- package/dist/{chunk-6DIHOMCB.js → chunk-XA5JA7DK.js} +1 -1
- package/dist/{chunk-YLGSM42I.js → chunk-XSXX75VV.js} +1 -1
- package/dist/{chunk-XV3I45NA.js → chunk-XXUWTD7A.js} +1 -1
- package/dist/{chunk-6YPEONHB.js → chunk-XZWAX4FI.js} +1 -1
- package/dist/{chunk-IPQH2RHD.js → chunk-YF4HKJB5.js} +1 -1
- package/dist/{chunk-SWI3LCPE.js → chunk-YJAX22JK.js} +1 -1
- package/dist/{chunk-7LATYPLU.js → chunk-YT3NPMWK.js} +1 -1
- package/dist/{chunk-6EZ7JWBK.js → chunk-YYLEWVO6.js} +4 -4
- package/dist/chunk-Z2Y6G2QF.js +1 -0
- package/dist/{chunk-PZYP3MCL.js → chunk-Z66NZ2HC.js} +1 -1
- package/dist/{chunk-ZIREP3EZ.js → chunk-ZFOWAMFK.js} +1 -1
- package/dist/{chunk-6RL7FUPD.js → chunk-ZKBWEHIY.js} +1 -1
- package/dist/{chunk-Y66GQ6V2.js → chunk-ZZ3SMI2A.js} +1 -1
- package/dist/{chunk-B7BUEEBR.js → chunk-ZZWSMRKT.js} +1 -1
- package/dist/cli/commands/app/app-logs/sources.js +1 -1
- package/dist/cli/commands/app/build.js +1 -1
- package/dist/cli/commands/app/bulk/cancel.js +1 -1
- package/dist/cli/commands/app/bulk/execute.js +1 -1
- package/dist/cli/commands/app/bulk/status.js +1 -1
- package/dist/cli/commands/app/config/link.js +1 -1
- package/dist/cli/commands/app/config/pull.js +1 -1
- package/dist/cli/commands/app/config/use.js +1 -1
- package/dist/cli/commands/app/config/validate.js +1 -1
- package/dist/cli/commands/app/demo/watcher.js +1 -1
- package/dist/cli/commands/app/deploy.js +1 -1
- package/dist/cli/commands/app/dev/clean.js +1 -1
- package/dist/cli/commands/app/dev.js +1 -1
- package/dist/cli/commands/app/env/pull.js +1 -1
- package/dist/cli/commands/app/env/show.js +1 -1
- package/dist/cli/commands/app/execute.js +1 -1
- package/dist/cli/commands/app/function/build.js +1 -1
- package/dist/cli/commands/app/function/info.js +1 -1
- package/dist/cli/commands/app/function/replay.js +1 -1
- package/dist/cli/commands/app/function/run.js +1 -1
- package/dist/cli/commands/app/function/schema.js +1 -1
- package/dist/cli/commands/app/function/typegen.js +1 -1
- package/dist/cli/commands/app/generate/extension.js +1 -1
- package/dist/cli/commands/app/graphiql.js +1 -1
- package/dist/cli/commands/app/import-custom-data-definitions.js +1 -1
- package/dist/cli/commands/app/import-extensions.js +1 -1
- package/dist/cli/commands/app/info.js +1 -1
- package/dist/cli/commands/app/init.js +1 -1
- package/dist/cli/commands/app/logs.js +1 -1
- package/dist/cli/commands/app/release.js +1 -1
- package/dist/cli/commands/app/versions/list.js +1 -1
- package/dist/cli/commands/app/webhook/trigger.js +1 -1
- package/dist/cli/commands/auth/login.js +1 -1
- package/dist/cli/commands/auth/logout.js +1 -1
- package/dist/cli/commands/cache/clear.js +1 -1
- package/dist/cli/commands/config/autoupgrade/off.js +1 -1
- package/dist/cli/commands/config/autoupgrade/on.js +1 -1
- package/dist/cli/commands/config/autoupgrade/status.js +1 -1
- package/dist/cli/commands/debug/command-flags.js +1 -1
- package/dist/cli/commands/doc/fetch.js +1 -1
- package/dist/cli/commands/doc/search.js +1 -1
- package/dist/cli/commands/docs/generate.js +1 -1
- package/dist/cli/commands/doctor-release/doctor-release.js +1 -1
- package/dist/cli/commands/doctor-release/theme/index.js +1 -1
- package/dist/cli/commands/help.js +1 -1
- package/dist/cli/commands/kitchen-sink/async.js +1 -1
- package/dist/cli/commands/kitchen-sink/index.js +1 -1
- package/dist/cli/commands/kitchen-sink/prompts.js +1 -1
- package/dist/cli/commands/kitchen-sink/static.js +1 -1
- package/dist/cli/commands/notifications/generate.js +1 -1
- package/dist/cli/commands/notifications/list.js +1 -1
- package/dist/cli/commands/organization/list.js +1 -1
- package/dist/cli/commands/search.js +1 -1
- package/dist/cli/commands/theme/check.js +1 -1
- package/dist/cli/commands/theme/console.js +1 -1
- package/dist/cli/commands/theme/delete.js +1 -1
- package/dist/cli/commands/theme/dev.js +1 -1
- package/dist/cli/commands/theme/duplicate.js +1 -1
- package/dist/cli/commands/theme/info.js +1 -1
- package/dist/cli/commands/theme/init.js +1 -1
- package/dist/cli/commands/theme/language-server.js +1 -1
- package/dist/cli/commands/theme/list.js +1 -1
- package/dist/cli/commands/theme/metafields/pull.js +1 -1
- package/dist/cli/commands/theme/open.js +1 -1
- package/dist/cli/commands/theme/package.js +1 -1
- package/dist/cli/commands/theme/preview.js +1 -1
- package/dist/cli/commands/theme/profile.js +1 -1
- package/dist/cli/commands/theme/publish.js +1 -1
- package/dist/cli/commands/theme/pull.js +1 -1
- package/dist/cli/commands/theme/push.js +1 -1
- package/dist/cli/commands/theme/rename.js +1 -1
- package/dist/cli/commands/theme/share.js +1 -1
- package/dist/cli/commands/upgrade.js +1 -1
- package/dist/cli/commands/version.js +1 -1
- package/dist/command-registry.js +1 -1
- package/dist/{conf-store-C2LOYIOU.js → conf-store-V6ILVUUO.js} +1 -1
- package/dist/{deprecations-QOHE6JG6.js → deprecations-MOEFN6OW.js} +1 -1
- package/dist/dist-2BL5GGMG.js +1 -0
- package/dist/{dist-FF6C4ZHS.js → dist-E6QKEULH.js} +1 -1
- package/dist/{environments-EGD263DV.js → environments-5KA3OBIZ.js} +1 -1
- package/dist/{error-66U2HJ37.js → error-NYYI6HVX.js} +1 -1
- package/dist/{error-handler-SW2ALZ5Z.js → error-handler-BOESDKZA.js} +1 -1
- package/dist/{fs-JPQRUGZI.js → fs-XE6SBVBF.js} +1 -1
- package/dist/hooks/app-init.js +1 -1
- package/dist/hooks/did-you-mean.js +1 -1
- package/dist/hooks/hydrogen-init.js +1 -1
- package/dist/hooks/postrun.js +1 -1
- package/dist/hooks/prerun.js +1 -1
- package/dist/hooks/public-metadata.js +1 -1
- package/dist/hooks/sensitive-metadata.js +1 -1
- package/dist/hooks/tunnel-provider.js +1 -1
- package/dist/hooks/tunnel-start.js +1 -1
- package/dist/index.js +14 -14
- package/dist/{is-global-QWTDUPNR.js → is-global-JOHCPSKZ.js} +1 -1
- package/dist/{local-FRYN3NWL.js → local-BTQDUX72.js} +1 -1
- package/dist/{local-storage-DFH3LT5G.js → local-storage-WUSIVDTQ.js} +1 -1
- package/dist/{metadata-KZVLHQII.js → metadata-APVOKTBV.js} +1 -1
- package/dist/{node-package-manager-LVFBY4LY.js → node-package-manager-AC34ZJZD.js} +1 -1
- package/dist/notifications-system-4ODOESG2.js +1 -0
- package/dist/{output-NH4I5Y3C.js → output-EAPQ7OWD.js} +1 -1
- package/dist/{system-GNOF6HMI.js → system-D7CH26HU.js} +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/dist/{ui-QOGKADWB.js → ui-AXZBGWIQ.js} +1 -1
- package/dist/upgrade-SLPJF6LD.js +1 -0
- package/dist/version-3IYH4V5U.js +1 -0
- package/dist/{version-FJFTTOZU.js → version-FAU37PQN.js} +1 -1
- package/dist/{workerd-U6WWWY73.js → workerd-XXPWKQOM.js} +1 -1
- package/oclif.manifest.json +2 -6
- package/package.json +7 -7
- package/dist/chunk-FU232KQ7.js +0 -1
- package/dist/chunk-HM5H7WBE.js +0 -1
- package/dist/chunk-MQICT2LR.js +0 -1
- package/dist/chunk-UMT7DWR4.js +0 -1
- package/dist/dist-Q676YGVI.js +0 -1
- package/dist/notifications-system-DP443VTE.js +0 -1
- package/dist/upgrade-K4S6JW64.js +0 -1
- package/dist/version-ZI4GZX72.js +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
import{b as u,c as d}from"./chunk-
|
|
1
|
+
import{b as u,c as d}from"./chunk-4U3NC3UU.js";import{a as m}from"./chunk-Z2Y6G2QF.js";import{a}from"./chunk-6V37CHBZ.js";import{Ga as c,q as p}from"./chunk-KJQAJUDU.js";import{b as e}from"./chunk-S5JJL3BP.js";import{v as n}from"./chunk-YYLEWVO6.js";import{g as i}from"./chunk-VKWPEFWQ.js";i();var s,o=class extends m{async run(){let{flags:t}=await this.parse(s),{app:r}=await c({directory:t.path,userProvidedConfigName:t.config}),l=await d(r,t.path);return await p(l,{app:r,stdout:process.stdout,stderr:process.stderr,useTasks:!0,environment:"production"}),n({headline:"Function built successfully."}),{app:r}}};s=o;o.summary="Compile a function to wasm.";o.descriptionWithMarkdown="Compiles the function in your current directory to WebAssembly (Wasm) for testing purposes.";o.description=s.descriptionWithoutMarkdown();o.flags={...e,...a,...u};var k=o;export{k as a};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{Q as r}from"./chunk-
|
|
1
|
+
import{Q as r}from"./chunk-3EQY5B4S.js";import{b as c}from"./chunk-74IG3ZE3.js";import{Nb as a}from"./chunk-BXDZX3BS.js";import{g as t}from"./chunk-VKWPEFWQ.js";t();var o=class extends c{static{this.description="Logs you out of the Shopify account or Partner account and store."}async run(){await r(),a("Logged out from all the accounts")}};export{o as a};
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import{a as g,b as A,d as w,g as k}from"./chunk-
|
|
1
|
+
import{a as g,b as A,d as w,g as k}from"./chunk-IE4SSSXU.js";import{a as S}from"./chunk-BCEWCYZD.js";import{t as P}from"./chunk-WU6GIY22.js";import{a as F}from"./chunk-PLHJQQVZ.js";import{a as G}from"./chunk-6V37CHBZ.js";import{u as d,z as u}from"./chunk-3EQY5B4S.js";import{b,d as L}from"./chunk-S5JJL3BP.js";import{J as f,a as c}from"./chunk-YYLEWVO6.js";import{Fb as h,Hb as y,Mb as n,Qb as v}from"./chunk-BXDZX3BS.js";import{r as x}from"./chunk-T6CC5WUU.js";import{e as q,g as i}from"./chunk-VKWPEFWQ.js";i();i();i();import{randomBytes as C}from"crypto";function M(){return C(32).toString("hex")}function T(r){let e=new URL(`http://localhost:${r.port}/graphiql`);return e.searchParams.set("key",r.key),r.query&&e.searchParams.set("query",r.query),r.variables&&e.searchParams.set("variables",r.variables),r.apiVersion&&e.searchParams.set("api_version",r.apiVersion),e.toString()}async function I(r){let e=await S(r.port),t=A({stdout:r.stdout??process.stdout,port:e,storeFqdn:r.storeFqdn,tokenProvider:r.tokenProvider,key:r.key,appContext:r.appContext,protectMutations:r.protectMutations}),a=T({port:e,key:r.key,query:r.query,variables:r.variables,apiVersion:r.apiVersion});try{n(y`GraphiQL is running at ${h.link(a)}`),r.additionalReadyMessages?.forEach(p=>n(p)),n("Press Ctrl+C to stop."),await f(a)||v("Browser did not open automatically. Open the URL above manually."),await O(r.abortSignal)}finally{t.close()}}async function O(r){let e=new c,t=()=>e.abort();process.once("SIGINT",t);try{await new Promise(a=>{if(e.signal.aborted||r?.aborted){a();return}e.signal.addEventListener("abort",()=>a(),{once:!0}),r?.addEventListener("abort",()=>e.abort(),{once:!0})})}finally{process.removeListener("SIGINT",t)}}async function Q(r){let e=r.remoteApp.apiSecretKeys[0]?.secret??"",t=g(void 0,e,r.store),a=k({apiKey:r.remoteApp.apiKey,apiSecret:e,storeFqdn:r.store}),l=await d(),p=w(r.store,r.remoteApp.apiKey,l);await I({port:r.port,storeFqdn:r.store,tokenProvider:a,key:t,appContext:{appName:r.remoteApp.title,appUrl:p,apiSecret:e},variables:r.variables,apiVersion:r.apiVersion,abortSignal:r.abortSignal})}var s=q(x(),1),m,o=class extends F{async run(){let{flags:e}=await this.parse(m),{appContextResult:t,store:a}=await P(e);return await Q({remoteApp:t.remoteApp,store:a.shopDomain,port:e.port,variables:e.variables,apiVersion:e.version}),{app:t.app}}};m=o;o.summary="Open a local GraphiQL UI for your app and store.";o.descriptionWithMarkdown=`Opens an authenticated Admin API GraphiQL UI for your app and selected store.
|
|
2
2
|
|
|
3
3
|
The app must be installed on the store.`;o.description=m.descriptionWithoutMarkdown();o.examples=["<%= config.bin %> <%= command.id %> --store shop.myshopify.com","<%= config.bin %> <%= command.id %> --store shop.myshopify.com --port 9123"];o.flags={...b,...G,store:s.Flags.string({char:"s",description:"The myshopify.com domain of the store to open GraphiQL against. The app must be installed on the store. If not specified, you will be prompted to select a store.",env:"SHOPIFY_FLAG_STORE",parse:async r=>u(r)}),port:L({description:"Local port for the GraphiQL server.",env:"SHOPIFY_FLAG_PORT"}),variables:s.Flags.string({char:"v",description:"The values for any GraphQL variables in your query or mutation, in JSON format.",env:"SHOPIFY_FLAG_VARIABLES"}),version:s.Flags.string({description:"The API version to use in GraphiQL. Defaults to the latest stable version.",env:"SHOPIFY_FLAG_VERSION"})};var ar=o;export{M as a,I as b,ar as c};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{e as c}from"./chunk-
|
|
1
|
+
import{e as c}from"./chunk-WU6GIY22.js";import{R as s}from"./chunk-3EQY5B4S.js";import{d as p,g as a}from"./chunk-AUZCENYI.js";import{g as i}from"./chunk-VKWPEFWQ.js";i();async function v(e,t){let o=e.apiSecretKeys[0]?.secret;if(!o)throw new a("No API secret keys found for app");return s(t,e.apiKey,o)}function y(e){let{organization:t,remoteApp:o,storeFqdn:u,version:r}=e,n=[`Organization: ${t.businessName}`,`App: ${o.title}`,`Store: ${u}`];return r&&n.push(`API version: ${r}`),n}function S(e,t){if(c(e)&&t.storeType!=="APP_DEVELOPMENT")throw new p("Mutations can only be executed on dev stores.")}export{v as a,y as b,S as c};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{b as x,c as D,f as M}from"./chunk-
|
|
1
|
+
import{b as x,c as D,f as M}from"./chunk-BNX4MZMV.js";import{a as o}from"./chunk-Q3WOWDUU.js";import{c as w}from"./chunk-5C7HDTHJ.js";import{C as h,F as e,v as y,z as s}from"./chunk-YYLEWVO6.js";import{Mb as _,ua as u}from"./chunk-BXDZX3BS.js";import{g as p}from"./chunk-VKWPEFWQ.js";p();async function $(){let a=new Date,n=`${a.getFullYear()}-${(a.getMonth()+1).toString().padStart(2,"0")}-${a.getDate().toString().padStart(2,"0")}`,i=w(),t=await s({message:"Type of message?",choices:[{label:"Info",value:"info"},{label:"Warning",value:"warning"},{label:"Error",value:"error"}]}),b=await e({message:"Title"}),E=await e({message:"Message"}),S=await s({message:"Frequency",choices:[{label:"Only once",value:"once"},{label:"Once a week",value:"once_a_week"},{label:"Once a day",value:"once_a_day"},{label:"Always",value:"always"}]}),r=await e({message:"Minimum CLI version (optional)",initialAnswer:o,allowEmpty:!0}),l=await e({message:"Maximum CLI version (optional)",initialAnswer:o,allowEmpty:!0}),m=await e({message:"Minimum date in YYYY-MM-DD format (optional)",initialAnswer:n,allowEmpty:!0}),c=await e({message:"Maximum date in YYYY-MM-DD format (optional)",initialAnswer:n,allowEmpty:!0}),f=await e({message:"Surface. E.g.: app, theme, hydrogen, theme_app_extension... (optional)",allowEmpty:!0}),g=await e({message:"Comma separated list of commands. E.g.: app:generate:extension (optional)",allowEmpty:!0}),T=await e({message:"Slack channel of the team who will own this notification"}),d=await x(),v={id:i,type:t,title:b,frequency:S,message:E,minVersion:r.length===0?void 0:r,maxVersion:l.length===0?void 0:l,minDate:m.length===0?void 0:m,maxDate:c.length===0?void 0:c,surface:f.length===0?void 0:f,commands:g.length===0?void 0:g.split(",").map(N=>N.trim()),ownerChannel:T};d.notifications.push(v),await u("./notifications.json",JSON.stringify(d)),y({headline:"notifications.json file updated successfully."})}async function j(){let a=await D(),n={type:{header:"Type",color:"dim"},title:{header:"Title",color:"dim"},message:{header:"Message",color:"dim"},filters:{header:"Filters",color:"dim"}},i=a.notifications.map(t=>({type:t.type,title:t.title??"",message:t.message,filters:M(t)}));h({rows:i,columns:n}),_(`
|
|
2
2
|
`)}export{$ as a,j as b};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{a as y}from"./chunk-
|
|
1
|
+
import{a as y}from"./chunk-7KHYEIA7.js";import{a as d}from"./chunk-H3V6Y5JO.js";import{a as p}from"./chunk-STJ3LWFL.js";import{p as u}from"./chunk-7ZIO3X22.js";import{p as c,v as f}from"./chunk-JGN7YG5X.js";import{b as l}from"./chunk-S5JJL3BP.js";import{A as s,v as h}from"./chunk-YYLEWVO6.js";import{r as g}from"./chunk-T6CC5WUU.js";import{e as b,g as i}from"./chunk-VKWPEFWQ.js";i();i();async function v(r,o,m){let t=await y(r,{header:"Select a theme to publish",filter:{development:!1,live:!1,theme:o.theme}}),a=p({...t,role:"live"},r);!o.force&&!m&&!await s({message:`Do you want to make '${t.name}' the new live theme on ${r.storeFqdn}?`,confirmationMessage:`Yes, make '${t.name}' the new live theme`,cancellationMessage:"No, cancel publish"})||(await u(t.id,r),h({headline:o.environment?`Environment: ${o.environment}`:void 0,body:["The theme",...d(t),"is now live at",{link:{label:a,url:a}},{char:"."}]}))}var n=b(g(),1);var w,e=class extends f{async command(o,m,t){await v(m,o,t)}};w=e;e.summary="Set a remote theme as the live theme.";e.descriptionWithMarkdown=`Publishes an unpublished theme from your theme library.
|
|
2
2
|
|
|
3
3
|
If no theme ID is specified, then you're prompted to select the theme that you want to publish from the list of themes in your store.
|
|
4
4
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{Y as u,aa as l,ba as p}from"./chunk-
|
|
1
|
+
import{Y as u,aa as l,ba as p}from"./chunk-UEC23KAO.js";import{b as d,c as f}from"./chunk-S5JJL3BP.js";import{b as c}from"./chunk-74IG3ZE3.js";import{C as m}from"./chunk-YYLEWVO6.js";import{Lb as s}from"./chunk-BXDZX3BS.js";import{g as n}from"./chunk-VKWPEFWQ.js";n();n();async function g(t){let i;try{i=await p()}catch(a){if(t.json&&a instanceof l){s(JSON.stringify({organizations:[]},null,2));return}throw a}if(t.json){let a={organizations:i.map(r=>({id:r.id,gid:u(r.id),name:r.businessName}))};s(JSON.stringify(a,null,2));return}h(i)}function h(t){let i=t.map(a=>({id:a.id,name:a.businessName}));m({rows:i,columns:{id:{header:"ID"},name:{header:"NAME"}}})}var e,o=class extends c{async run(){let{flags:i}=await this.parse(e);await g({json:i.json})}};e=o;o.summary="List Shopify organizations you have access to.";o.descriptionWithMarkdown="Lists the Shopify organizations that you have access to, along with their organization IDs.";o.description=e.descriptionWithoutMarkdown();o.flags={...d,...f};var x=o;export{x as a};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{Fa as x,p as A}from"./chunk-
|
|
1
|
+
import{Fa as x,p as A}from"./chunk-KJQAJUDU.js";import{B as F}from"./chunk-YYLEWVO6.js";import{d as s}from"./chunk-AUZCENYI.js";import{Hb as f,Lb as I,Mb as P,Ta as p,ua as v}from"./chunk-BXDZX3BS.js";import{a as S}from"./chunk-MGPLKG23.js";import{d as m,f as y,q as w}from"./chunk-773TIA5M.js";import{r as D}from"./chunk-T6CC5WUU.js";import{e as E,g as l}from"./chunk-VKWPEFWQ.js";l();async function b(n){let{extension:e,stdout:o,developerPlatformClient:i,app:r,orgId:t}=n,c=r.configuration.client_id,{api_version:a,type:u,targeting:d}=e.configuration,T=await(!!d?.length?_({localIdentifier:e.localIdentifier,developerPlatformClient:i,apiKey:c,target:d[0].target,version:a,orgId:t}):$({localIdentifier:e.localIdentifier,developerPlatformClient:i,apiKey:c,type:u,version:a,orgId:t})),h=A(T,a);if(o)I(h);else{let g=m(e.directory,"schema.graphql");await v(g,h),P(`GraphQL Schema for ${e.localIdentifier} written to ${g}`)}}async function _({localIdentifier:n,developerPlatformClient:e,apiKey:o,target:i,version:r,orgId:t}){let c={handle:i,version:r},a=await e.targetSchemaDefinition(c,o,t);if(!a)throw new s(f`A schema could not be generated for ${n}`,f`Check that the Function targets and version are valid.`);return a}async function $({localIdentifier:n,developerPlatformClient:e,apiKey:o,version:i,type:r,orgId:t}){let c={version:i,type:r},a=await e.apiSchemaDefinition(c,o,t);if(!a)throw new s(f`A schema could not be generated for ${n}`,f`Check that the Function API type and version are valid.`);return a}l();var C=E(D(),1);var J={path:C.Flags.string({hidden:!1,description:"The path to your function directory.",parse:async n=>y(n),default:async()=>w(),noCacheDefault:!0,env:"SHOPIFY_FLAG_PATH"})};async function M(n,e){let o=n.allExtensions.filter(r=>r.isFunctionExtension),i=o.find(r=>r.directory===e);if(i)return i;if(o.length===1&&o[0])return o[0];if(S())return await F({message:"Which function?",choices:o.map(t=>({label:t.handle,value:t}))});throw new s("Run this command from a function directory or use `--path` to specify a function directory.")}async function N(n,e,o,i,r){let t=m(n.directory,"schema.graphql");if(await p(t))return t;let{app:c,developerPlatformClient:a,organization:u}=await x({directory:e,clientId:o,forceRelink:i,userProvidedConfigName:r});return await b({app:c,developerPlatformClient:a,extension:n,stdout:!1,orgId:u.id}),await p(t)?t:void 0}export{b as a,J as b,M as c,N as d};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as t}from"./chunk-STJ3LWFL.js";import{d as l}from"./chunk-
|
|
1
|
+
import{c as t}from"./chunk-STJ3LWFL.js";import{d as l}from"./chunk-XZWAX4FI.js";import{f as i,m,n as w,o as d,r as f}from"./chunk-JGN7YG5X.js";import{F as n}from"./chunk-YYLEWVO6.js";import{g as a}from"./chunk-VKWPEFWQ.js";a();async function y(o,r,P){i()||f({store:r});let e=o??m()??await p(["Enter your",{link:{label:"store password",url:t(r)}}]),s=!1;for(;!await l(e,r,P);)s||(d(),s=!0),e=await p(["Incorrect",{link:{label:"store password",url:t(r)}},{char:"."},"Please try again"]);return w(e),e}async function p(o){return n({message:o,password:!0})}export{y as a};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{H,S as U}from"./chunk-
|
|
1
|
+
import{H,S as U}from"./chunk-KJQAJUDU.js";import{a as G}from"./chunk-VJEKDBGZ.js";import{f as T}from"./chunk-UEC23KAO.js";import{b as D,l as O,s as k}from"./chunk-YYLEWVO6.js";import{d as N}from"./chunk-AUZCENYI.js";import{Ca as P,Pb as u,Ta as A,Ua as I,bb as _,na as R,wa as w}from"./chunk-BXDZX3BS.js";import{f as S}from"./chunk-MGPLKG23.js";import{d as x,e as E,g as F,i as C}from"./chunk-773TIA5M.js";import{e as q,g as m}from"./chunk-VKWPEFWQ.js";m();function b(){return process.hrtime()}function M(r){let t=process.hrtime(r);return(t[0]*1e3+t[1]/1e6).toFixed(2)}m();m();var $=q(G(),1),K=200,Q=6e4,L=200,Y=500,v=class{constructor(t,s,i=K){this.currentEvents=[],this.extensionPaths=[],this.ignored={},this.extensionWatchedFiles=new Map,this.emitEvents=()=>{let e=this.currentEvents;this.currentEvents=[];let n=`\u{1F509} ${e.length} EVENTS EMITTED in files: ${e.map(o=>o.path).join(`
|
|
2
2
|
`)}`;u(n,this.options.stdout),this.onChangeCallback?.(e)},this.handleFileEvent=(e,n)=>{let o=b(),d=E(n),h=n===this.app.configPath,l=n.endsWith(".extension.toml");if(u(`\u{1F300}: ${e} ${n.replace(this.app.directory,"")}
|
|
3
3
|
`),h)this.handleEventForExtension(e,n,this.app.directory,o,!1);else{let a=this.extensionWatchedFiles.get(d),p=a===void 0||a.size===0;if(p&&e==="add"&&!l){let c=this.discoverFileOwners(d);c.size>0&&(this.extensionWatchedFiles.set(d,c),a=c,p=!1)}if(p&&!l&&!h){u(`\u{1F300}: File ${n} is not watched by any extension`,this.options.stdout);return}for(let c of a??[]){let g=this.app.realExtensions.find(X=>X.handle===c),y=g?E(g.directory):this.app.directory;this.handleEventForExtension(e,n,y,o,!1,c)}p&&this.handleEventForExtension(e,n,this.app.directory,o,!0)}this.debouncedEmit()},this.close=()=>{this.watcher&&(u("Closing file watcher",this.options.stdout),this.watcher.close().then(()=>u("File watching closed",this.options.stdout)).catch(e=>u(`File watching failed to close: ${e.message}`,this.options.stderr)))},this.app=t,this.options=s,this.debouncedEmit=k(this.emitEvents.bind(this),i,{leading:!0,trailing:!0}),this.updateApp(t)}onChange(t){this.onChangeCallback=t}async start(){let s=[...this.app.configuration.extension_directories??["extensions"]].map(o=>x(this.app.directory,o));await Promise.all(s.map(async o=>{try{await w(o.replace(/\/\*+$/,""))}catch{}}));let i=[this.app.configPath,...s],e=this.getAllWatchedFiles();i.push(...e),this.close();let{default:n}=await import("./chokidar-VDIVGBZH.js");this.watcher=n.watch(i,{ignored:["**/node_modules/**","**/.git/**"],persistent:!0,ignoreInitial:!0}),this.watcher.on("all",this.handleFileEvent),this.addAbortListener(),u(`File watcher started with ${i.length} paths`,this.options.stdout)}updateApp(t){this.app=t,this.extensionPaths=this.app.nonConfigExtensions.map(s=>E(s.directory)).filter(s=>s!==this.app.directory),this.extensionPaths.forEach(s=>{var i;(i=this.ignored)[s]??(i[s]=this.createIgnoreInstance(s))})}addAbortListener(){this.options.signal.removeEventListener("abort",this.close),this.options.signal.addEventListener("abort",this.close)}getAllWatchedFiles(){this.extensionWatchedFiles.clear();let t=this.app.realExtensions.map(i=>({extension:i,watchedFiles:i.watchedFiles()})),s=new Set;for(let{extension:i,watchedFiles:e}of t)for(let n of e){let o=E(n);s.add(o);let d=this.extensionWatchedFiles.get(o)??new Set;d.add(i.handle),this.extensionWatchedFiles.set(o,d)}return Array.from(s)}pushEvent(t){this.shouldIgnoreEvent(t)||(t.type==="extension_folder_created"&&(this.ignored[t.path]=this.createIgnoreInstance(t.path)),!this.currentEvents.some(s=>s.path===t.path&&s.type===t.type&&s.extensionHandle===t.extensionHandle)&&this.currentEvents.push(t))}shouldIgnoreEvent(t){if(t.type==="extension_folder_deleted"||t.type==="extension_folder_created"||t.extensionHandle&&this.extensionWatchedFiles.get(E(t.path))?.has(t.extensionHandle))return!1;let i=(t.extensionHandle?this.app.realExtensions.find(n=>n.handle===t.extensionHandle):void 0)?.watchedFiles(),e=this.ignored[t.extensionPath];if(i)return!i.some(o=>_(t.path,o));if(e){let n=F(t.extensionPath,t.path);return e.ignores(n)}return!1}discoverFileOwners(t){let s=new Set;for(let i of this.app.realExtensions){let e=E(i.directory);e!==this.app.directory&&t.startsWith(`${e}/`)&&this.pathMatchesWatchPatterns(t,i)&&s.add(i.handle)}return s}pathMatchesWatchPatterns(t,s){let{paths:i,ignore:e}=s.watchPatterns(),n=F(E(s.directory),t);return e.some(o=>_(n,o))?!1:i.some(o=>_(n,o))}handleEventForExtension(t,s,i,e,n,o){let d=s.endsWith(".extension.toml"),h=s===this.app.configPath;switch(t){case"change":if(n)break;d||h?this.pushEvent({type:"extensions_config_updated",path:s,extensionPath:i,extensionHandle:o,startTime:e}):this.pushEvent({type:"file_updated",path:s,extensionPath:i,extensionHandle:o,startTime:e});break;case"add":if(!d){this.pushEvent({type:"file_created",path:s,extensionPath:i,extensionHandle:o,startTime:e});break}let l=0,a=C(s),p=setInterval(()=>{I(x(a,T.lockFile))?(u(`Waiting for extension to complete creation: ${s}
|
|
4
4
|
`),l+=L):(clearInterval(p),this.extensionPaths.push(a),this.pushEvent({type:"extension_folder_created",path:a,extensionPath:i,startTime:e}),this.debouncedEmit()),l>=Q&&(clearInterval(p),this.options.stderr.write(`Error loading new extension at path: ${s}.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{Ga as r}from"./chunk-
|
|
1
|
+
import{Ga as r}from"./chunk-KJQAJUDU.js";import{a}from"./chunk-2MDFREEW.js";import{q as i}from"./chunk-773TIA5M.js";import{g as e}from"./chunk-VKWPEFWQ.js";e();var c=3e3;async function n(o){let t;try{if(a.getAllPublicMetadata().api_key!==void 0)return;await Promise.race([r({directory:o,skipPrompts:!0}),new Promise(l=>{t=setTimeout(l,c)})])}catch{}finally{t&&clearTimeout(t)}}var m=async()=>(await n(i()),a.getAllPublicMetadata()),f=m;export{f as a};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{a as u}from"./chunk-
|
|
1
|
+
import{a as u}from"./chunk-F447QKVX.js";import{a as y}from"./chunk-7KHYEIA7.js";import{a as w}from"./chunk-H3V6Y5JO.js";import{a as c,b as v}from"./chunk-STJ3LWFL.js";import{p as d,v as f}from"./chunk-JGN7YG5X.js";import{b as s}from"./chunk-S5JJL3BP.js";import{J as h,u as p}from"./chunk-YYLEWVO6.js";import{r as O}from"./chunk-T6CC5WUU.js";import{e as I,g as m}from"./chunk-VKWPEFWQ.js";m();m();async function F(o,t){let i=new u(o),E=(await(t.development?i.find():i.fetch()))?.id,n=await y(o,{header:"Select a theme to open",filter:{live:t.live,theme:t.development?`${E}`:t.theme}}),l=c(n,o),a=v(n,o);p({body:["Preview information for theme",...w(n),`
|
|
2
2
|
|
|
3
3
|
`,{list:{items:[{link:{label:"Preview your theme",url:l}},{link:{label:"Customize your theme at the theme editor",url:a}}]}}]}),t.editor?await h(a):await h(l)}var r=I(O(),1);var g,e=class extends f{async command(t,i){await F(i,t)}};g=e;e.summary="Opens the preview of your remote theme.";e.descriptionWithMarkdown=`Returns links that let you preview the specified theme. The following links are returned:
|
|
4
4
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{d as i,i as r,p as s}from"./chunk-773TIA5M.js";import{g as c}from"./chunk-VKWPEFWQ.js";c();import{existsSync as f,readFileSync as u}from"fs";import{fileURLToPath as p,pathToFileURL as g}from"url";var a;function h(){if(!a){let n=i(s(import.meta.url),"..","oclif.manifest.json");a=JSON.parse(u(n,"utf8")).commands}return a}var m=new Map;function y(n){let t=m.get(n);if(!t){for(t=r(p(import.meta.resolve(n)));t!==r(t);){try{if(JSON.parse(u(i(t,"package.json"),"utf8")).name===n)break}catch(o){if(o instanceof SyntaxError){t=r(t);continue}if(o.code==="ENOENT"){t=r(t);continue}throw o}t=r(t)}m.set(n,t)}return t}var P={"app:logs:sources":"dist/cli/commands/app/app-logs/sources.js","demo:watcher":"dist/cli/commands/app/demo/watcher.js","kitchen-sink":"dist/cli/commands/kitchen-sink/index.js","doctor-release":"dist/cli/commands/doctor-release/doctor-release.js","doctor-release:theme":"dist/cli/commands/doctor-release/theme/index.js"};function l(n){return P[n]??`dist/cli/commands/${n.replace(/:/g,"/")}.js`}var C=new Set(["@shopify/cli","@shopify/app","@shopify/theme"]);async function D(n){let o=h()[n];if(!o)return;let e=o.customPluginName??o.pluginName;if(e)return C.has(e)?j(n,e):k(n,e)}var d=i(s(import.meta.url),"..");function w(n,t){let o=l(n),e=i(d,o);return f(e)?d:y(t)}async function j(n,t){let o=l(n),e=w(n,t);return(await import(g(i(e,o)).href)).default}async function k(n,t){if(t==="@shopify/cli-hydrogen"){let{COMMANDS:o}=await import("./dist-
|
|
1
|
+
import{d as i,i as r,p as s}from"./chunk-773TIA5M.js";import{g as c}from"./chunk-VKWPEFWQ.js";c();import{existsSync as f,readFileSync as u}from"fs";import{fileURLToPath as p,pathToFileURL as g}from"url";var a;function h(){if(!a){let n=i(s(import.meta.url),"..","oclif.manifest.json");a=JSON.parse(u(n,"utf8")).commands}return a}var m=new Map;function y(n){let t=m.get(n);if(!t){for(t=r(p(import.meta.resolve(n)));t!==r(t);){try{if(JSON.parse(u(i(t,"package.json"),"utf8")).name===n)break}catch(o){if(o instanceof SyntaxError){t=r(t);continue}if(o.code==="ENOENT"){t=r(t);continue}throw o}t=r(t)}m.set(n,t)}return t}var P={"app:logs:sources":"dist/cli/commands/app/app-logs/sources.js","demo:watcher":"dist/cli/commands/app/demo/watcher.js","kitchen-sink":"dist/cli/commands/kitchen-sink/index.js","doctor-release":"dist/cli/commands/doctor-release/doctor-release.js","doctor-release:theme":"dist/cli/commands/doctor-release/theme/index.js"};function l(n){return P[n]??`dist/cli/commands/${n.replace(/:/g,"/")}.js`}var C=new Set(["@shopify/cli","@shopify/app","@shopify/theme"]);async function D(n){let o=h()[n];if(!o)return;let e=o.customPluginName??o.pluginName;if(e)return C.has(e)?j(n,e):k(n,e)}var d=i(s(import.meta.url),"..");function w(n,t){let o=l(n),e=i(d,o);return f(e)?d:y(t)}async function j(n,t){let o=l(n),e=w(n,t);return(await import(g(i(e,o)).href)).default}async function k(n,t){if(t==="@shopify/cli-hydrogen"){let{COMMANDS:o}=await import("./dist-2BL5GGMG.js");return o?.[n]}if(t==="@oclif/plugin-commands"){let{commands:o}=await import("./lib-UCG2DNMS.js");return o[n]}if(t==="@oclif/plugin-plugins"){let{commands:o}=await import("./lib-NOROGV6N.js");return o[n]}if(t==="@shopify/plugin-did-you-mean"){let{DidYouMeanCommands:o}=await import("./dist-E6QKEULH.js");return o[n]}}export{D as a};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{$ as ei,A as Vn,Aa as ui,B as k,Ba as fi,C as U,Ca as mi,D as Gn,E as we,F as Zt,G as qe,H as rt,I as xe,Ia as To,J as qn,Ja as pi,K as Ne,Ka as mr,L as Pe,La as ze,M as Wn,Ma as at,N as er,Na as Pt,O as he,Oa as pr,P as Do,Pa as lt,Q as Yn,Qa as hr,R as ot,Ra as gi,S as nt,Sa as yi,T as zn,Ta as wi,U as tr,Ua as gr,V as Jn,Va as vi,W as Qn,Wa as bi,X as Kn,Xa as ki,Y as Xn,Z as Zn,_ as We,a as pe,aa as W,b as Et,ba as it,c as Fn,ca as ti,d as Ie,da as ri,e as Se,ea as rr,f as Ge,fa as or,g as jn,ga as oi,h as Nn,ha as ge,i as Ln,ia as ni,j as ko,ja as ii,k as et,ka as Co,l as St,la as si,m as je,ma as ai,n as Mn,na as li,o as Qt,oa as nr,p as Eo,pa as ir,q as xt,qa as sr,r as So,ra as ci,s as Hn,sa as ar,t as Un,ta as lr,u as xo,ua as di,v as Bn,va as cr,w as Po,wa as dr,x as Kt,xa as Ye,y as Xt,ya as st,z as tt,za as ur}from"./chunk-EKHWL542.js";import{b as hi}from"./chunk-XWPPBOGF.js";import{a as yr}from"./chunk-FKIVKNOV.js";import{a as Cn}from"./chunk-KRZABRYT.js";import{a as Ei}from"./chunk-G2I2ZUBV.js";import{b as Tn,c as In,d as Jt,g as On,i as _n,j as Rn,k as $n}from"./chunk-MZMYBFZQ.js";import{a as ll,b as An,d as cl}from"./chunk-ZULTG2D2.js";import{a as fr,b as Io,c as Oo}from"./chunk-XH6ZP7M5.js";import{c as Dn}from"./chunk-F3TMLDLC.js";import{Aa as il,Ba as Sn,Ca as sl,Da as al,fa as me,m as gn,n as se}from"./chunk-5W443CKL.js";import{B as En,l as wn,m as ke,p as Wt,s as vn,u as bn,x as kn}from"./chunk-GW3VY3FZ.js";import{b as T}from"./chunk-UKK5P74A.js";import{b as hn}from"./chunk-5C7HDTHJ.js";import{A as Te,D as ee,O as bo,a as qt,u as V,v as N,w as q,y as Re,z as $e}from"./chunk-6EZ7JWBK.js";import{d as E,g as Yt}from"./chunk-WKBVT5WG.js";import{$ as un,Bb as yn,Ca as yo,Ea as Vt,Fb as Ee,Ga as mn,Ha as pn,Hb as z,Jb as Ae,Ka as wo,Mb as $,Nb as xn,Oa as vo,Ob as Fe,Pb as Pn,Qb as B,Rb as ae,Ta as G,V as Ut,Wa as kt,ma as de,na as fn,pa as Bt,qa as go,qb as Gt,ua as Q,wa as bt,ya as be}from"./chunk-DONEJHDG.js";import{u as M}from"./chunk-A4SBXDZB.js";import{s as zt}from"./chunk-KKUDXLK2.js";import{d as x,f as D,g as ie,i as ho,j as Ze,k as cn,q as dn}from"./chunk-773TIA5M.js";import{a as ol}from"./chunk-CX5CC6P5.js";import{b as nl}from"./chunk-TOLPNBZK.js";import{a as ve,c as ce,e as K,g as l}from"./chunk-VKWPEFWQ.js";var Bs=ce((Yw,Us)=>{l();Us.exports=Vc;function Vc(e){var t=e._readableState;return t?t.objectMode||typeof e._duplexState=="number"?e.read():e.read(Gc(t)):null}function Gc(e){if(e.buffer.length){var t=e.bufferIndex||0;if(e.buffer.head)return e.buffer.head.data.length;if(e.buffer.length-t>0&&e.buffer[t])return e.buffer[t].length}return e.length}});var Go=ce((Jw,Ws)=>{l();var Wr=An(),Vs=Sn(),qc=Dn(),Wc=Bs(),Gs=Buffer.from&&Buffer.from!==Uint8Array.from?Buffer.from([0]):new Buffer([0]),Vo=function(e,t){e._corked?e.once("uncork",t):t()},Yc=function(e,t){e._autoDestroy&&e.destroy(t)},qs=function(e,t){return function(r){r?Yc(e,r.message==="premature close"?null:r):t&&!e._ended&&e.end()}},zc=function(e,t){if(!e||e._writableState&&e._writableState.finished)return t();if(e._writableState)return e.end(t);e.end(),t()},Jc=function(e){return new Wr.Readable({objectMode:!0,highWaterMark:16}).wrap(e)},X=function(e,t,r){if(!(this instanceof X))return new X(e,t,r);Wr.Duplex.call(this,r),this._writable=null,this._readable=null,this._readable2=null,this._autoDestroy=!r||r.autoDestroy!==!1,this._forwardDestroy=!r||r.destroy!==!1,this._forwardEnd=!r||r.end!==!1,this._corked=1,this._ondrain=null,this._drained=!1,this._forwarding=!1,this._unwrite=null,this._unread=null,this._ended=!1,this.destroyed=!1,e&&this.setWritable(e),t&&this.setReadable(t)};qc(X,Wr.Duplex);X.obj=function(e,t,r){return r||(r={}),r.objectMode=!0,r.highWaterMark=16,new X(e,t,r)};X.prototype.cork=function(){++this._corked===1&&this.emit("cork")};X.prototype.uncork=function(){this._corked&&--this._corked===0&&this.emit("uncork")};X.prototype.setWritable=function(e){if(this._unwrite&&this._unwrite(),this.destroyed){e&&e.destroy&&e.destroy();return}if(e===null||e===!1){this.end();return}var t=this,r=Vs(e,{writable:!0,readable:!1},qs(this,this._forwardEnd)),o=function(){var i=t._ondrain;t._ondrain=null,i&&i()},n=function(){t._writable.removeListener("drain",o),r()};this._unwrite&&process.nextTick(o),this._writable=e,this._writable.on("drain",o),this._unwrite=n,this.uncork()};X.prototype.setReadable=function(e){if(this._unread&&this._unread(),this.destroyed){e&&e.destroy&&e.destroy();return}if(e===null||e===!1){this.push(null),this.resume();return}var t=this,r=Vs(e,{writable:!1,readable:!0},qs(this)),o=function(){t._forward()},n=function(){t.push(null)},i=function(){t._readable2.removeListener("readable",o),t._readable2.removeListener("end",n),r()};this._drained=!0,this._readable=e,this._readable2=e._readableState?e:Jc(e),this._readable2.on("readable",o),this._readable2.on("end",n),this._unread=i,this._forward()};X.prototype._read=function(){this._drained=!0,this._forward()};X.prototype._forward=function(){if(!(this._forwarding||!this._readable2||!this._drained)){this._forwarding=!0;for(var e;this._drained&&(e=Wc(this._readable2))!==null;)this.destroyed||(this._drained=this.push(e));this._forwarding=!1}};X.prototype.destroy=function(e){if(!this.destroyed){this.destroyed=!0;var t=this;process.nextTick(function(){t._destroy(e)})}};X.prototype._destroy=function(e){if(e){var t=this._ondrain;this._ondrain=null,t?t(e):this.emit("error",e)}this._forwardDestroy&&(this._readable&&this._readable.destroy&&this._readable.destroy(),this._writable&&this._writable.destroy&&this._writable.destroy()),this.emit("close")};X.prototype._write=function(e,t,r){if(this.destroyed)return r();if(this._corked)return Vo(this,this._write.bind(this,e,t,r));if(e===Gs)return this._finish(r);if(!this._writable)return r();this._writable.write(e)===!1?this._ondrain=r:r()};X.prototype._finish=function(e){var t=this;this.emit("preend"),Vo(this,function(){zc(t._forwardEnd&&t._writable,function(){t._writableState.prefinished===!1&&(t._writableState.prefinished=!0),t.emit("prefinish"),Vo(t,e)})})};X.prototype.end=function(e,t,r){return typeof e=="function"?this.end(null,null,e):typeof t=="function"?this.end(e,null,t):(this._ended=!0,e&&this.write(e),this._writableState.ending||this.write(Gs),Wr.Writable.prototype.end.call(this,r))};Ws.exports=X});var zs=ce((Kw,Ys)=>{l();Ys.exports=Kc;var Qc=Object.prototype.hasOwnProperty;function Kc(){for(var e={},t=0;t<arguments.length;t++){var r=arguments[t];for(var o in r)Qc.call(r,o)&&(e[o]=r[o])}return e}});var Wo=ce((Zw,Yr)=>{l();var Js=An().Transform,Qs=ve("util").inherits,Ks=zs();function gt(e){Js.call(this,e),this._destroyed=!1}Qs(gt,Js);gt.prototype.destroy=function(e){if(!this._destroyed){this._destroyed=!0;var t=this;process.nextTick(function(){e&&t.emit("error",e),t.emit("close")})}};function Xc(e,t,r){r(null,e)}function qo(e){return function(t,r,o){return typeof t=="function"&&(o=r,r=t,t={}),typeof r!="function"&&(r=Xc),typeof o!="function"&&(o=null),e(t,r,o)}}Yr.exports=qo(function(e,t,r){var o=new gt(e);return o._transform=t,r&&(o._flush=r),o});Yr.exports.ctor=qo(function(e,t,r){function o(n){if(!(this instanceof o))return new o(n);this.options=Ks(e,n),gt.call(this,this.options)}return Qs(o,gt),o.prototype._transform=t,r&&(o.prototype._flush=r),o});Yr.exports.obj=qo(function(e,t,r){var o=new gt(Ks({objectMode:!0,highWaterMark:16},e));return o._transform=t,r&&(o._flush=r),o})});var ea=ce((tv,Zs)=>{l();var Zc=Go(),ed=Wo(),td=nl(),rd=function(e){return!Buffer.isBuffer(e)&&typeof e!="string"},Xs=function(e,t){if(typeof e=="number"&&(e={maxBuffer:e}),typeof e=="function")return Xs(null,e);e||(e={});var r=typeof e.maxBuffer=="number"?e.maxBuffer:65535,o=e.strict,n=e.newline!==!1,i=[],s=0,a=Zc.obj(),c=ed.obj({highWaterMark:1},function(f,m,h){if(rd(f))return d(f,null,h);if(Buffer.isBuffer(f)||(f=td(f)),n){var w=Array.prototype.indexOf.call(f,10);if(w>0&&f[w-1]===13&&w--,w>-1)return i.push(f.slice(0,w)),d(Buffer.concat(i),f.slice(w),h)}if(i.push(f),s+=f.length,s<r)return h();if(o)return h(new Error("No newline found"));d(Buffer.concat(i),null,h)}),u=function(){if(o)return a.destroy(new Error("No newline found"));a.cork(),d(Buffer.concat(i),null,function(f){if(f)return a.destroy(f);a.uncork()})},d=function(f,m,h){a.removeListener("preend",u),t(f,function(w,y){if(w)return h(w);a.setWritable(y),a.setReadable(y),f&&y.write(f),m&&y.write(m),m=i=c=null,h()})};return a.on("preend",u),a.setWritable(c),a};Zs.exports=Xs});var oa=ce((ov,ra)=>{l();var od=il(),nd=Sn(),Yo=ve("fs"),Ft=function(){},id=/^v?\.0/.test(process.version),zr=function(e){return typeof e=="function"},sd=function(e){return!id||!Yo?!1:(e instanceof(Yo.ReadStream||Ft)||e instanceof(Yo.WriteStream||Ft))&&zr(e.close)},ad=function(e){return e.setHeader&&zr(e.abort)},ld=function(e,t,r,o){o=od(o);var n=!1;e.on("close",function(){n=!0}),nd(e,{readable:t,writable:r},function(s){if(s)return o(s);n=!0,o()});var i=!1;return function(s){if(!n&&!i){if(i=!0,sd(e))return e.close(Ft);if(ad(e))return e.abort();if(zr(e.destroy))return e.destroy();o(s||new Error("stream was destroyed"))}}},ta=function(e){e()},cd=function(e,t){return e.pipe(t)},dd=function(){var e=Array.prototype.slice.call(arguments),t=zr(e[e.length-1]||Ft)&&e.pop()||Ft;if(Array.isArray(e[0])&&(e=e[0]),e.length<2)throw new Error("pump requires two streams per minimum");var r,o=e.map(function(n,i){var s=i<e.length-1,a=i>0;return ld(n,s,a,function(c){r||(r=c),c&&o.forEach(ta),!s&&(o.forEach(ta),t(r))})});e.reduce(cd)};ra.exports=dd});var sa=ce((iv,Jr)=>{l();var ud=oa(),fd=Dn(),na=Go(),ia=function(e){return e.length?Array.isArray(e[0])?e[0]:Array.prototype.slice.call(e):[]},zo=function(e){var t=function(){var r=ia(arguments);if(!(this instanceof t))return new t(r);na.call(this,null,null,e),r.length&&this.setPipeline(r)};return fd(t,na),t.prototype.setPipeline=function(){var r=ia(arguments),o=this,n=!1,i=r[0],s=r[r.length-1];s=s.readable?s:null,i=i.writable?i:null;var a=function(){r[0].emit("error",new Error("stream was destroyed"))};if(this.on("close",a),this.on("prefinish",function(){n||o.cork()}),ud(r,function(c){if(o.removeListener("close",a),c)return o.destroy(c.message==="premature close"?null:c);n=!0,o._autoDestroy===!1&&(o._autoDestroy=!0),o.uncork()}),this.destroyed)return a();this.setWritable(i),this.setReadable(s)},t};Jr.exports=zo({autoDestroy:!1,destroy:!1});Jr.exports.obj=zo({autoDestroy:!1,destroy:!1,objectMode:!0,highWaterMark:16});Jr.exports.ctor=zo});var la=ce((av,aa)=>{"use strict";l();aa.exports=function(e){return!e||e.length<3?!1:e[0]===31&&e[1]===139&&e[2]===8}});var da=ce((cv,ca)=>{"use strict";l();ca.exports=function(e){return!e||e.length<2?!1:e[0]===120&&(e[1]===1||e[1]===156||e[1]===218)}});var pa=ce((uv,ma)=>{l();var ua=ve("zlib"),md=ea(),pd=Wo(),fa=sa(),hd=la(),gd=da(),yd=function(e){return hd(e)?1:gd(e)?2:0},Jo=function(e){return e===void 0&&(e=3),md({newline:!1,maxBuffer:10},function(t,r){if(e<0)return r(new Error("Maximum recursion reached"));switch(yd(t)){case 1:r(null,fa(ua.createGunzip(),Jo(e-1)));break;case 2:r(null,fa(ua.createInflate(),Jo(e-1)));break;default:r(null,pd())}})};ma.exports=Jo});var ka=ce((mv,ba)=>{"use strict";l();var ye=ve("fs"),Ke=ve("path"),wd=ye.lchown?"lchown":"chown",vd=ye.lchownSync?"lchownSync":"chownSync",ga=ye.lchown&&!process.version.match(/v1[1-9]+\./)&&!process.version.match(/v10\.[6-9]/),ha=(e,t,r)=>{try{return ye[vd](e,t,r)}catch(o){if(o.code!=="ENOENT")throw o}},bd=(e,t,r)=>{try{return ye.chownSync(e,t,r)}catch(o){if(o.code!=="ENOENT")throw o}},kd=ga?(e,t,r,o)=>n=>{!n||n.code!=="EISDIR"?o(n):ye.chown(e,t,r,o)}:(e,t,r,o)=>o,Qo=ga?(e,t,r)=>{try{return ha(e,t,r)}catch(o){if(o.code!=="EISDIR")throw o;bd(e,t,r)}}:(e,t,r)=>ha(e,t,r),Ed=process.version,ya=(e,t,r)=>ye.readdir(e,t,r),Sd=(e,t)=>ye.readdirSync(e,t);/^v4\./.test(Ed)&&(ya=(e,t,r)=>ye.readdir(e,r));var Qr=(e,t,r,o)=>{ye[wd](e,t,r,kd(e,t,r,n=>{o(n&&n.code!=="ENOENT"?n:null)}))},wa=(e,t,r,o,n)=>{if(typeof t=="string")return ye.lstat(Ke.resolve(e,t),(i,s)=>{if(i)return n(i.code!=="ENOENT"?i:null);s.name=t,wa(e,s,r,o,n)});if(t.isDirectory())Ko(Ke.resolve(e,t.name),r,o,i=>{if(i)return n(i);let s=Ke.resolve(e,t.name);Qr(s,r,o,n)});else{let i=Ke.resolve(e,t.name);Qr(i,r,o,n)}},Ko=(e,t,r,o)=>{ya(e,{withFileTypes:!0},(n,i)=>{if(n){if(n.code==="ENOENT")return o();if(n.code!=="ENOTDIR"&&n.code!=="ENOTSUP")return o(n)}if(n||!i.length)return Qr(e,t,r,o);let s=i.length,a=null,c=u=>{if(!a){if(u)return o(a=u);if(--s===0)return Qr(e,t,r,o)}};i.forEach(u=>wa(e,u,t,r,c))})},xd=(e,t,r,o)=>{if(typeof t=="string")try{let n=ye.lstatSync(Ke.resolve(e,t));n.name=t,t=n}catch(n){if(n.code==="ENOENT")return;throw n}t.isDirectory()&&va(Ke.resolve(e,t.name),r,o),Qo(Ke.resolve(e,t.name),r,o)},va=(e,t,r)=>{let o;try{o=Sd(e,{withFileTypes:!0})}catch(n){if(n.code==="ENOENT")return;if(n.code==="ENOTDIR"||n.code==="ENOTSUP")return Qo(e,t,r);throw n}return o&&o.length&&o.forEach(n=>xd(e,n,t,r)),Qo(e,t,r)};ba.exports=Ko;Ko.sync=va});var Pa=ce((hv,xa)=>{l();var Kr=ve("path"),Ea=ve("fs"),Sa=parseInt("0777",8);xa.exports=yt.mkdirp=yt.mkdirP=yt;function yt(e,t,r,o){typeof t=="function"?(r=t,t={}):(!t||typeof t!="object")&&(t={mode:t});var n=t.mode,i=t.fs||Ea;n===void 0&&(n=Sa&~process.umask()),o||(o=null);var s=r||function(){};e=Kr.resolve(e),i.mkdir(e,n,function(a){if(!a)return o=o||e,s(null,o);a.code==="ENOENT"?yt(Kr.dirname(e),t,function(c,u){c?s(c,u):yt(e,t,s,u)}):i.stat(e,function(c,u){c||!u.isDirectory()?s(a,o):s(null,o)})})}yt.sync=function e(t,r,o){(!r||typeof r!="object")&&(r={mode:r});var n=r.mode,i=r.fs||Ea;n===void 0&&(n=Sa&~process.umask()),o||(o=null),t=Kr.resolve(t);try{i.mkdirSync(t,n),o=o||t}catch(a){switch(a.code){case"ENOENT":o=e(Kr.dirname(t),r,o),e(t,r,o);break;default:var s;try{s=i.statSync(t)}catch{throw a}if(!s.isDirectory())throw a;break}}return o}});var Aa=ce(en=>{l();var Pd=ka(),Ta=cl(),Ia=sl(),Dd=Pa(),Oa=ve("fs"),Z=ve("path"),Cd=ve("os"),jt=Cd.platform()==="win32",Nt=function(){},Zo=function(e){return e},Xo=jt?function(e){return e.replace(/\\/g,"/").replace(/[:?<>|]/g,"_")}:Zo,Td=function(e,t,r,o,n,i){var s=n||["."];return function(c){if(!s.length)return c();var u=s.shift(),d=Z.join(r,u);t.call(e,d,function(f,m){if(f)return c(f);if(!m.isDirectory())return c(null,u,m);e.readdir(d,function(h,w){if(h)return c(h);i&&w.sort();for(var y=0;y<w.length;y++)o(Z.join(r,u,w[y]))||s.push(Z.join(u,w[y]));c(null,u,m)})})}},_a=function(e,t){return function(r){r.name=r.name.split("/").slice(t).join("/");var o=r.linkname;return o&&(r.type==="link"||Z.isAbsolute(o))&&(r.linkname=o.split("/").slice(t).join("/")),e(r)}};en.pack=function(e,t){e||(e="."),t||(t={});var r=t.fs||Oa,o=t.ignore||t.filter||Nt,n=t.map||Nt,i=t.mapStream||Zo,s=Td(r,t.dereference?r.stat:r.lstat,e,o,t.entries,t.sort),a=t.strict!==!1,c=typeof t.umask=="number"?~t.umask:~Ra(),u=typeof t.dmode=="number"?t.dmode:0,d=typeof t.fmode=="number"?t.fmode:0,f=t.pack||Ta.pack(),m=t.finish||Nt;t.strip&&(n=_a(n,t.strip)),t.readable&&(u|=parseInt(555,8),d|=parseInt(444,8)),t.writable&&(u|=parseInt(333,8),d|=parseInt(222,8));var h=function(b,v){r.readlink(Z.join(e,b),function(p,g){if(p)return f.destroy(p);v.linkname=Xo(g),f.entry(v,y)})},w=function(b,v,p){if(b)return f.destroy(b);if(!v)return t.finalize!==!1&&f.finalize(),m(f);if(p.isSocket())return y();var g={name:Xo(v),mode:(p.mode|(p.isDirectory()?u:d))&c,mtime:p.mtime,size:p.size,type:"file",uid:p.uid,gid:p.gid};if(p.isDirectory())return g.size=0,g.type="directory",g=n(g)||g,f.entry(g,y);if(p.isSymbolicLink())return g.size=0,g.type="symlink",g=n(g)||g,h(v,g);if(g=n(g)||g,!p.isFile())return a?f.destroy(new Error("unsupported type for "+v)):y();var S=f.entry(g,y);if(S){var C=i(r.createReadStream(Z.join(e,v),{start:0,end:g.size>0?g.size-1:g.size}),g);C.on("error",function(O){S.destroy(O)}),Ia(C,S)}},y=function(b){if(b)return f.destroy(b);s(w)};return y(),f};var Id=function(e){return e.length?e[e.length-1]:null},Od=function(){return process.getuid?process.getuid():-1},Ra=function(){return process.umask?process.umask():0};en.extract=function(e,t){e||(e="."),t||(t={});var r=t.fs||Oa,o=t.ignore||t.filter||Nt,n=t.map||Nt,i=t.mapStream||Zo,s=t.chown!==!1&&!jt&&Od()===0,a=t.extract||Ta.extract(),c=[],u=new Date,d=typeof t.umask=="number"?~t.umask:~Ra(),f=typeof t.dmode=="number"?t.dmode:0,m=typeof t.fmode=="number"?t.fmode:0,h=t.strict!==!1;t.strip&&(n=_a(n,t.strip)),t.readable&&(f|=parseInt(555,8),m|=parseInt(444,8)),t.writable&&(f|=parseInt(333,8),m|=parseInt(222,8));var w=function(v,p){for(var g;(g=Id(c))&&v.slice(0,g[0].length)!==g[0];)c.pop();if(!g)return p();r.utimes(g[0],u,g[1],p)},y=function(v,p,g){if(t.utimes===!1)return g();if(p.type==="directory")return r.utimes(v,u,p.mtime,g);if(p.type==="symlink")return w(v,g);r.utimes(v,u,p.mtime,function(S){if(S)return g(S);w(v,g)})},b=function(v,p,g){var S=p.type==="symlink",C=S?r.lchmod:r.chmod,O=S?r.lchown:r.chown;if(!C)return g();var P=(p.mode|(p.type==="directory"?f:m))&d;O&&s?O.call(r,v,p.uid,p.gid,A):A(null);function A(F){if(F)return g(F);if(!C)return g();C.call(r,v,P,g)}};return a.on("entry",function(v,p,g){v=n(v)||v,v.name=Xo(v.name);var S=Z.join(e,Z.join("/",v.name));if(o(S,v))return p.resume(),g();var C=function(I){if(I)return g(I);y(S,v,function(_){if(_)return g(_);if(jt)return g();b(S,v,g)})},O=function(){if(jt)return g();r.unlink(S,function(){var I=Z.resolve(Z.dirname(S),v.linkname);if(!Ca(I,e))return g(new Error(S+" is not a valid symlink"));r.symlink(v.linkname,S,C)})},P=function(){if(jt)return g();r.unlink(S,function(){var I=Z.join(e,Z.join("/",v.linkname));r.realpath(I,function(_,L){if(_||!Ca(L,e))return g(new Error(S+" is not a valid hardlink"));r.link(L,S,function(j){if(j&&j.code==="EPERM"&&t.hardlinkAsFilesFallback)return p=r.createReadStream(I),A();C(j)})})})},A=function(){var I=r.createWriteStream(S),_=i(p,v);I.on("error",function(L){_.destroy(L)}),Ia(_,I,function(L){if(L)return g(L);I.on("close",C)})};if(v.type==="directory")return c.push([S,v.mtime]),Da(S,{fs:r,own:s,uid:v.uid,gid:v.gid},C);var F=Z.dirname(S);$a(r,F,Z.join(e,"."),function(I,_){if(I)return g(I);if(!_)return g(new Error(F+" is not a valid path"));Da(F,{fs:r,own:s,uid:v.uid,gid:v.gid},function(L){if(L)return g(L);switch(v.type){case"file":return A();case"link":return P();case"symlink":return O()}if(h)return g(new Error("unsupported type for "+S+" ("+v.type+")"));p.resume(),g()})})}),t.finish&&a.on("finish",t.finish),a};function $a(e,t,r,o){if(t===r)return o(null,!0);e.lstat(t,function(n,i){if(n&&n.code!=="ENOENT")return o(n);if(n||i.isDirectory())return $a(e,Z.join(t,".."),r,o);o(null,!1)})}function Da(e,t,r){Dd(e,{fs:t.fs},function(o,n){!o&&n&&t.own?Pd(n,t.uid,t.gid,r):r(o)})}function Ca(e,t){return t=Z.resolve(t),t===e||e.startsWith(t+Z.sep)}});l();l();var xr=K(pe(),1);l();l();var wr=[{name:"npm",lockfile:"package-lock.json",alternativeLockfiles:["npm-shrinkwrap.json"],installCommand:"npm ci"},{name:"yarn",lockfile:"yarn.lock",installCommand:"yarn install --frozen-lockfile"},{name:"pnpm",lockfile:"pnpm-lock.yaml",installCommand:"pnpm install --frozen-lockfile"},{name:"bun",lockfile:"bun.lockb",alternativeLockfiles:["bun.lock"],installCommand:"bun install --frozen-lockfile"}];function dl(e){let t="No lockfile found",r="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.",o=[["Generate a lockfile. Run",{command:"npm|yarn|pnpm install"}],"Commit the new file to your repository"];if(e)throw new E(t,r,o);q({headline:t,body:r,nextSteps:o})}function ul(e,t){let r=e.map(({packageManager:s,foundLockfile:a})=>`${a} (created by ${s.name})`),o="Multiple lockfiles found",n=[`Your project contains more than one lockfile. This can cause version conflicts when installing and deploying your app. The following lockfiles were detected:
|
|
1
|
+
import{$ as ei,A as Vn,Aa as ui,B as k,Ba as fi,C as U,Ca as mi,D as Gn,E as we,F as Zt,G as qe,H as rt,I as xe,Ia as To,J as qn,Ja as pi,K as Ne,Ka as mr,L as Pe,La as ze,M as Wn,Ma as at,N as er,Na as Pt,O as he,Oa as pr,P as Do,Pa as lt,Q as Yn,Qa as hr,R as ot,Ra as gi,S as nt,Sa as yi,T as zn,Ta as wi,U as tr,Ua as gr,V as Jn,Va as vi,W as Qn,Wa as bi,X as Kn,Xa as ki,Y as Xn,Z as Zn,_ as We,a as pe,aa as W,b as Et,ba as it,c as Fn,ca as ti,d as Ie,da as ri,e as Se,ea as rr,f as Ge,fa as or,g as jn,ga as oi,h as Nn,ha as ge,i as Ln,ia as ni,j as ko,ja as ii,k as et,ka as Co,l as St,la as si,m as je,ma as ai,n as Mn,na as li,o as Qt,oa as nr,p as Eo,pa as ir,q as xt,qa as sr,r as So,ra as ci,s as Hn,sa as ar,t as Un,ta as lr,u as xo,ua as di,v as Bn,va as cr,w as Po,wa as dr,x as Kt,xa as Ye,y as Xt,ya as st,z as tt,za as ur}from"./chunk-HHA322FT.js";import{b as hi}from"./chunk-XWPPBOGF.js";import{a as yr}from"./chunk-FKIVKNOV.js";import{a as Cn}from"./chunk-KRZABRYT.js";import{a as Ei}from"./chunk-UFGDNIYX.js";import{b as Tn,c as In,d as Jt,g as On,i as _n,j as Rn,k as $n}from"./chunk-ICXHUPP5.js";import{a as ll,b as An,d as cl}from"./chunk-LXZM6Z4F.js";import{a as fr,b as Io,c as Oo}from"./chunk-KUKYAIOR.js";import{c as Dn}from"./chunk-F3TMLDLC.js";import{Aa as il,Ba as Sn,Ca as sl,Da as al,fa as me,m as gn,n as se}from"./chunk-3EQY5B4S.js";import{B as En,l as wn,m as ke,p as Wt,s as vn,u as bn,x as kn}from"./chunk-HX3TALXV.js";import{b as T}from"./chunk-74IG3ZE3.js";import{b as hn}from"./chunk-5C7HDTHJ.js";import{A as Te,D as ee,O as bo,a as qt,u as V,v as N,w as q,y as Re,z as $e}from"./chunk-YYLEWVO6.js";import{d as E,g as Yt}from"./chunk-AUZCENYI.js";import{$ as un,Bb as yn,Ca as yo,Ea as Vt,Fb as Ee,Ga as mn,Ha as pn,Hb as z,Jb as Ae,Ka as wo,Mb as $,Nb as xn,Oa as vo,Ob as Fe,Pb as Pn,Qb as B,Rb as ae,Ta as G,V as Ut,Wa as kt,ma as de,na as fn,pa as Bt,qa as go,qb as Gt,ua as Q,wa as bt,ya as be}from"./chunk-BXDZX3BS.js";import{u as M}from"./chunk-A4SBXDZB.js";import{s as zt}from"./chunk-MGPLKG23.js";import{d as x,f as D,g as ie,i as ho,j as Ze,k as cn,q as dn}from"./chunk-773TIA5M.js";import{a as ol}from"./chunk-CX5CC6P5.js";import{b as nl}from"./chunk-TOLPNBZK.js";import{a as ve,c as ce,e as K,g as l}from"./chunk-VKWPEFWQ.js";var Bs=ce((Yw,Us)=>{l();Us.exports=Vc;function Vc(e){var t=e._readableState;return t?t.objectMode||typeof e._duplexState=="number"?e.read():e.read(Gc(t)):null}function Gc(e){if(e.buffer.length){var t=e.bufferIndex||0;if(e.buffer.head)return e.buffer.head.data.length;if(e.buffer.length-t>0&&e.buffer[t])return e.buffer[t].length}return e.length}});var Go=ce((Jw,Ws)=>{l();var Wr=An(),Vs=Sn(),qc=Dn(),Wc=Bs(),Gs=Buffer.from&&Buffer.from!==Uint8Array.from?Buffer.from([0]):new Buffer([0]),Vo=function(e,t){e._corked?e.once("uncork",t):t()},Yc=function(e,t){e._autoDestroy&&e.destroy(t)},qs=function(e,t){return function(r){r?Yc(e,r.message==="premature close"?null:r):t&&!e._ended&&e.end()}},zc=function(e,t){if(!e||e._writableState&&e._writableState.finished)return t();if(e._writableState)return e.end(t);e.end(),t()},Jc=function(e){return new Wr.Readable({objectMode:!0,highWaterMark:16}).wrap(e)},X=function(e,t,r){if(!(this instanceof X))return new X(e,t,r);Wr.Duplex.call(this,r),this._writable=null,this._readable=null,this._readable2=null,this._autoDestroy=!r||r.autoDestroy!==!1,this._forwardDestroy=!r||r.destroy!==!1,this._forwardEnd=!r||r.end!==!1,this._corked=1,this._ondrain=null,this._drained=!1,this._forwarding=!1,this._unwrite=null,this._unread=null,this._ended=!1,this.destroyed=!1,e&&this.setWritable(e),t&&this.setReadable(t)};qc(X,Wr.Duplex);X.obj=function(e,t,r){return r||(r={}),r.objectMode=!0,r.highWaterMark=16,new X(e,t,r)};X.prototype.cork=function(){++this._corked===1&&this.emit("cork")};X.prototype.uncork=function(){this._corked&&--this._corked===0&&this.emit("uncork")};X.prototype.setWritable=function(e){if(this._unwrite&&this._unwrite(),this.destroyed){e&&e.destroy&&e.destroy();return}if(e===null||e===!1){this.end();return}var t=this,r=Vs(e,{writable:!0,readable:!1},qs(this,this._forwardEnd)),o=function(){var i=t._ondrain;t._ondrain=null,i&&i()},n=function(){t._writable.removeListener("drain",o),r()};this._unwrite&&process.nextTick(o),this._writable=e,this._writable.on("drain",o),this._unwrite=n,this.uncork()};X.prototype.setReadable=function(e){if(this._unread&&this._unread(),this.destroyed){e&&e.destroy&&e.destroy();return}if(e===null||e===!1){this.push(null),this.resume();return}var t=this,r=Vs(e,{writable:!1,readable:!0},qs(this)),o=function(){t._forward()},n=function(){t.push(null)},i=function(){t._readable2.removeListener("readable",o),t._readable2.removeListener("end",n),r()};this._drained=!0,this._readable=e,this._readable2=e._readableState?e:Jc(e),this._readable2.on("readable",o),this._readable2.on("end",n),this._unread=i,this._forward()};X.prototype._read=function(){this._drained=!0,this._forward()};X.prototype._forward=function(){if(!(this._forwarding||!this._readable2||!this._drained)){this._forwarding=!0;for(var e;this._drained&&(e=Wc(this._readable2))!==null;)this.destroyed||(this._drained=this.push(e));this._forwarding=!1}};X.prototype.destroy=function(e){if(!this.destroyed){this.destroyed=!0;var t=this;process.nextTick(function(){t._destroy(e)})}};X.prototype._destroy=function(e){if(e){var t=this._ondrain;this._ondrain=null,t?t(e):this.emit("error",e)}this._forwardDestroy&&(this._readable&&this._readable.destroy&&this._readable.destroy(),this._writable&&this._writable.destroy&&this._writable.destroy()),this.emit("close")};X.prototype._write=function(e,t,r){if(this.destroyed)return r();if(this._corked)return Vo(this,this._write.bind(this,e,t,r));if(e===Gs)return this._finish(r);if(!this._writable)return r();this._writable.write(e)===!1?this._ondrain=r:r()};X.prototype._finish=function(e){var t=this;this.emit("preend"),Vo(this,function(){zc(t._forwardEnd&&t._writable,function(){t._writableState.prefinished===!1&&(t._writableState.prefinished=!0),t.emit("prefinish"),Vo(t,e)})})};X.prototype.end=function(e,t,r){return typeof e=="function"?this.end(null,null,e):typeof t=="function"?this.end(e,null,t):(this._ended=!0,e&&this.write(e),this._writableState.ending||this.write(Gs),Wr.Writable.prototype.end.call(this,r))};Ws.exports=X});var zs=ce((Kw,Ys)=>{l();Ys.exports=Kc;var Qc=Object.prototype.hasOwnProperty;function Kc(){for(var e={},t=0;t<arguments.length;t++){var r=arguments[t];for(var o in r)Qc.call(r,o)&&(e[o]=r[o])}return e}});var Wo=ce((Zw,Yr)=>{l();var Js=An().Transform,Qs=ve("util").inherits,Ks=zs();function gt(e){Js.call(this,e),this._destroyed=!1}Qs(gt,Js);gt.prototype.destroy=function(e){if(!this._destroyed){this._destroyed=!0;var t=this;process.nextTick(function(){e&&t.emit("error",e),t.emit("close")})}};function Xc(e,t,r){r(null,e)}function qo(e){return function(t,r,o){return typeof t=="function"&&(o=r,r=t,t={}),typeof r!="function"&&(r=Xc),typeof o!="function"&&(o=null),e(t,r,o)}}Yr.exports=qo(function(e,t,r){var o=new gt(e);return o._transform=t,r&&(o._flush=r),o});Yr.exports.ctor=qo(function(e,t,r){function o(n){if(!(this instanceof o))return new o(n);this.options=Ks(e,n),gt.call(this,this.options)}return Qs(o,gt),o.prototype._transform=t,r&&(o.prototype._flush=r),o});Yr.exports.obj=qo(function(e,t,r){var o=new gt(Ks({objectMode:!0,highWaterMark:16},e));return o._transform=t,r&&(o._flush=r),o})});var ea=ce((tv,Zs)=>{l();var Zc=Go(),ed=Wo(),td=nl(),rd=function(e){return!Buffer.isBuffer(e)&&typeof e!="string"},Xs=function(e,t){if(typeof e=="number"&&(e={maxBuffer:e}),typeof e=="function")return Xs(null,e);e||(e={});var r=typeof e.maxBuffer=="number"?e.maxBuffer:65535,o=e.strict,n=e.newline!==!1,i=[],s=0,a=Zc.obj(),c=ed.obj({highWaterMark:1},function(f,m,h){if(rd(f))return d(f,null,h);if(Buffer.isBuffer(f)||(f=td(f)),n){var w=Array.prototype.indexOf.call(f,10);if(w>0&&f[w-1]===13&&w--,w>-1)return i.push(f.slice(0,w)),d(Buffer.concat(i),f.slice(w),h)}if(i.push(f),s+=f.length,s<r)return h();if(o)return h(new Error("No newline found"));d(Buffer.concat(i),null,h)}),u=function(){if(o)return a.destroy(new Error("No newline found"));a.cork(),d(Buffer.concat(i),null,function(f){if(f)return a.destroy(f);a.uncork()})},d=function(f,m,h){a.removeListener("preend",u),t(f,function(w,y){if(w)return h(w);a.setWritable(y),a.setReadable(y),f&&y.write(f),m&&y.write(m),m=i=c=null,h()})};return a.on("preend",u),a.setWritable(c),a};Zs.exports=Xs});var oa=ce((ov,ra)=>{l();var od=il(),nd=Sn(),Yo=ve("fs"),Ft=function(){},id=/^v?\.0/.test(process.version),zr=function(e){return typeof e=="function"},sd=function(e){return!id||!Yo?!1:(e instanceof(Yo.ReadStream||Ft)||e instanceof(Yo.WriteStream||Ft))&&zr(e.close)},ad=function(e){return e.setHeader&&zr(e.abort)},ld=function(e,t,r,o){o=od(o);var n=!1;e.on("close",function(){n=!0}),nd(e,{readable:t,writable:r},function(s){if(s)return o(s);n=!0,o()});var i=!1;return function(s){if(!n&&!i){if(i=!0,sd(e))return e.close(Ft);if(ad(e))return e.abort();if(zr(e.destroy))return e.destroy();o(s||new Error("stream was destroyed"))}}},ta=function(e){e()},cd=function(e,t){return e.pipe(t)},dd=function(){var e=Array.prototype.slice.call(arguments),t=zr(e[e.length-1]||Ft)&&e.pop()||Ft;if(Array.isArray(e[0])&&(e=e[0]),e.length<2)throw new Error("pump requires two streams per minimum");var r,o=e.map(function(n,i){var s=i<e.length-1,a=i>0;return ld(n,s,a,function(c){r||(r=c),c&&o.forEach(ta),!s&&(o.forEach(ta),t(r))})});e.reduce(cd)};ra.exports=dd});var sa=ce((iv,Jr)=>{l();var ud=oa(),fd=Dn(),na=Go(),ia=function(e){return e.length?Array.isArray(e[0])?e[0]:Array.prototype.slice.call(e):[]},zo=function(e){var t=function(){var r=ia(arguments);if(!(this instanceof t))return new t(r);na.call(this,null,null,e),r.length&&this.setPipeline(r)};return fd(t,na),t.prototype.setPipeline=function(){var r=ia(arguments),o=this,n=!1,i=r[0],s=r[r.length-1];s=s.readable?s:null,i=i.writable?i:null;var a=function(){r[0].emit("error",new Error("stream was destroyed"))};if(this.on("close",a),this.on("prefinish",function(){n||o.cork()}),ud(r,function(c){if(o.removeListener("close",a),c)return o.destroy(c.message==="premature close"?null:c);n=!0,o._autoDestroy===!1&&(o._autoDestroy=!0),o.uncork()}),this.destroyed)return a();this.setWritable(i),this.setReadable(s)},t};Jr.exports=zo({autoDestroy:!1,destroy:!1});Jr.exports.obj=zo({autoDestroy:!1,destroy:!1,objectMode:!0,highWaterMark:16});Jr.exports.ctor=zo});var la=ce((av,aa)=>{"use strict";l();aa.exports=function(e){return!e||e.length<3?!1:e[0]===31&&e[1]===139&&e[2]===8}});var da=ce((cv,ca)=>{"use strict";l();ca.exports=function(e){return!e||e.length<2?!1:e[0]===120&&(e[1]===1||e[1]===156||e[1]===218)}});var pa=ce((uv,ma)=>{l();var ua=ve("zlib"),md=ea(),pd=Wo(),fa=sa(),hd=la(),gd=da(),yd=function(e){return hd(e)?1:gd(e)?2:0},Jo=function(e){return e===void 0&&(e=3),md({newline:!1,maxBuffer:10},function(t,r){if(e<0)return r(new Error("Maximum recursion reached"));switch(yd(t)){case 1:r(null,fa(ua.createGunzip(),Jo(e-1)));break;case 2:r(null,fa(ua.createInflate(),Jo(e-1)));break;default:r(null,pd())}})};ma.exports=Jo});var ka=ce((mv,ba)=>{"use strict";l();var ye=ve("fs"),Ke=ve("path"),wd=ye.lchown?"lchown":"chown",vd=ye.lchownSync?"lchownSync":"chownSync",ga=ye.lchown&&!process.version.match(/v1[1-9]+\./)&&!process.version.match(/v10\.[6-9]/),ha=(e,t,r)=>{try{return ye[vd](e,t,r)}catch(o){if(o.code!=="ENOENT")throw o}},bd=(e,t,r)=>{try{return ye.chownSync(e,t,r)}catch(o){if(o.code!=="ENOENT")throw o}},kd=ga?(e,t,r,o)=>n=>{!n||n.code!=="EISDIR"?o(n):ye.chown(e,t,r,o)}:(e,t,r,o)=>o,Qo=ga?(e,t,r)=>{try{return ha(e,t,r)}catch(o){if(o.code!=="EISDIR")throw o;bd(e,t,r)}}:(e,t,r)=>ha(e,t,r),Ed=process.version,ya=(e,t,r)=>ye.readdir(e,t,r),Sd=(e,t)=>ye.readdirSync(e,t);/^v4\./.test(Ed)&&(ya=(e,t,r)=>ye.readdir(e,r));var Qr=(e,t,r,o)=>{ye[wd](e,t,r,kd(e,t,r,n=>{o(n&&n.code!=="ENOENT"?n:null)}))},wa=(e,t,r,o,n)=>{if(typeof t=="string")return ye.lstat(Ke.resolve(e,t),(i,s)=>{if(i)return n(i.code!=="ENOENT"?i:null);s.name=t,wa(e,s,r,o,n)});if(t.isDirectory())Ko(Ke.resolve(e,t.name),r,o,i=>{if(i)return n(i);let s=Ke.resolve(e,t.name);Qr(s,r,o,n)});else{let i=Ke.resolve(e,t.name);Qr(i,r,o,n)}},Ko=(e,t,r,o)=>{ya(e,{withFileTypes:!0},(n,i)=>{if(n){if(n.code==="ENOENT")return o();if(n.code!=="ENOTDIR"&&n.code!=="ENOTSUP")return o(n)}if(n||!i.length)return Qr(e,t,r,o);let s=i.length,a=null,c=u=>{if(!a){if(u)return o(a=u);if(--s===0)return Qr(e,t,r,o)}};i.forEach(u=>wa(e,u,t,r,c))})},xd=(e,t,r,o)=>{if(typeof t=="string")try{let n=ye.lstatSync(Ke.resolve(e,t));n.name=t,t=n}catch(n){if(n.code==="ENOENT")return;throw n}t.isDirectory()&&va(Ke.resolve(e,t.name),r,o),Qo(Ke.resolve(e,t.name),r,o)},va=(e,t,r)=>{let o;try{o=Sd(e,{withFileTypes:!0})}catch(n){if(n.code==="ENOENT")return;if(n.code==="ENOTDIR"||n.code==="ENOTSUP")return Qo(e,t,r);throw n}return o&&o.length&&o.forEach(n=>xd(e,n,t,r)),Qo(e,t,r)};ba.exports=Ko;Ko.sync=va});var Pa=ce((hv,xa)=>{l();var Kr=ve("path"),Ea=ve("fs"),Sa=parseInt("0777",8);xa.exports=yt.mkdirp=yt.mkdirP=yt;function yt(e,t,r,o){typeof t=="function"?(r=t,t={}):(!t||typeof t!="object")&&(t={mode:t});var n=t.mode,i=t.fs||Ea;n===void 0&&(n=Sa&~process.umask()),o||(o=null);var s=r||function(){};e=Kr.resolve(e),i.mkdir(e,n,function(a){if(!a)return o=o||e,s(null,o);a.code==="ENOENT"?yt(Kr.dirname(e),t,function(c,u){c?s(c,u):yt(e,t,s,u)}):i.stat(e,function(c,u){c||!u.isDirectory()?s(a,o):s(null,o)})})}yt.sync=function e(t,r,o){(!r||typeof r!="object")&&(r={mode:r});var n=r.mode,i=r.fs||Ea;n===void 0&&(n=Sa&~process.umask()),o||(o=null),t=Kr.resolve(t);try{i.mkdirSync(t,n),o=o||t}catch(a){switch(a.code){case"ENOENT":o=e(Kr.dirname(t),r,o),e(t,r,o);break;default:var s;try{s=i.statSync(t)}catch{throw a}if(!s.isDirectory())throw a;break}}return o}});var Aa=ce(en=>{l();var Pd=ka(),Ta=cl(),Ia=sl(),Dd=Pa(),Oa=ve("fs"),Z=ve("path"),Cd=ve("os"),jt=Cd.platform()==="win32",Nt=function(){},Zo=function(e){return e},Xo=jt?function(e){return e.replace(/\\/g,"/").replace(/[:?<>|]/g,"_")}:Zo,Td=function(e,t,r,o,n,i){var s=n||["."];return function(c){if(!s.length)return c();var u=s.shift(),d=Z.join(r,u);t.call(e,d,function(f,m){if(f)return c(f);if(!m.isDirectory())return c(null,u,m);e.readdir(d,function(h,w){if(h)return c(h);i&&w.sort();for(var y=0;y<w.length;y++)o(Z.join(r,u,w[y]))||s.push(Z.join(u,w[y]));c(null,u,m)})})}},_a=function(e,t){return function(r){r.name=r.name.split("/").slice(t).join("/");var o=r.linkname;return o&&(r.type==="link"||Z.isAbsolute(o))&&(r.linkname=o.split("/").slice(t).join("/")),e(r)}};en.pack=function(e,t){e||(e="."),t||(t={});var r=t.fs||Oa,o=t.ignore||t.filter||Nt,n=t.map||Nt,i=t.mapStream||Zo,s=Td(r,t.dereference?r.stat:r.lstat,e,o,t.entries,t.sort),a=t.strict!==!1,c=typeof t.umask=="number"?~t.umask:~Ra(),u=typeof t.dmode=="number"?t.dmode:0,d=typeof t.fmode=="number"?t.fmode:0,f=t.pack||Ta.pack(),m=t.finish||Nt;t.strip&&(n=_a(n,t.strip)),t.readable&&(u|=parseInt(555,8),d|=parseInt(444,8)),t.writable&&(u|=parseInt(333,8),d|=parseInt(222,8));var h=function(b,v){r.readlink(Z.join(e,b),function(p,g){if(p)return f.destroy(p);v.linkname=Xo(g),f.entry(v,y)})},w=function(b,v,p){if(b)return f.destroy(b);if(!v)return t.finalize!==!1&&f.finalize(),m(f);if(p.isSocket())return y();var g={name:Xo(v),mode:(p.mode|(p.isDirectory()?u:d))&c,mtime:p.mtime,size:p.size,type:"file",uid:p.uid,gid:p.gid};if(p.isDirectory())return g.size=0,g.type="directory",g=n(g)||g,f.entry(g,y);if(p.isSymbolicLink())return g.size=0,g.type="symlink",g=n(g)||g,h(v,g);if(g=n(g)||g,!p.isFile())return a?f.destroy(new Error("unsupported type for "+v)):y();var S=f.entry(g,y);if(S){var C=i(r.createReadStream(Z.join(e,v),{start:0,end:g.size>0?g.size-1:g.size}),g);C.on("error",function(O){S.destroy(O)}),Ia(C,S)}},y=function(b){if(b)return f.destroy(b);s(w)};return y(),f};var Id=function(e){return e.length?e[e.length-1]:null},Od=function(){return process.getuid?process.getuid():-1},Ra=function(){return process.umask?process.umask():0};en.extract=function(e,t){e||(e="."),t||(t={});var r=t.fs||Oa,o=t.ignore||t.filter||Nt,n=t.map||Nt,i=t.mapStream||Zo,s=t.chown!==!1&&!jt&&Od()===0,a=t.extract||Ta.extract(),c=[],u=new Date,d=typeof t.umask=="number"?~t.umask:~Ra(),f=typeof t.dmode=="number"?t.dmode:0,m=typeof t.fmode=="number"?t.fmode:0,h=t.strict!==!1;t.strip&&(n=_a(n,t.strip)),t.readable&&(f|=parseInt(555,8),m|=parseInt(444,8)),t.writable&&(f|=parseInt(333,8),m|=parseInt(222,8));var w=function(v,p){for(var g;(g=Id(c))&&v.slice(0,g[0].length)!==g[0];)c.pop();if(!g)return p();r.utimes(g[0],u,g[1],p)},y=function(v,p,g){if(t.utimes===!1)return g();if(p.type==="directory")return r.utimes(v,u,p.mtime,g);if(p.type==="symlink")return w(v,g);r.utimes(v,u,p.mtime,function(S){if(S)return g(S);w(v,g)})},b=function(v,p,g){var S=p.type==="symlink",C=S?r.lchmod:r.chmod,O=S?r.lchown:r.chown;if(!C)return g();var P=(p.mode|(p.type==="directory"?f:m))&d;O&&s?O.call(r,v,p.uid,p.gid,A):A(null);function A(F){if(F)return g(F);if(!C)return g();C.call(r,v,P,g)}};return a.on("entry",function(v,p,g){v=n(v)||v,v.name=Xo(v.name);var S=Z.join(e,Z.join("/",v.name));if(o(S,v))return p.resume(),g();var C=function(I){if(I)return g(I);y(S,v,function(_){if(_)return g(_);if(jt)return g();b(S,v,g)})},O=function(){if(jt)return g();r.unlink(S,function(){var I=Z.resolve(Z.dirname(S),v.linkname);if(!Ca(I,e))return g(new Error(S+" is not a valid symlink"));r.symlink(v.linkname,S,C)})},P=function(){if(jt)return g();r.unlink(S,function(){var I=Z.join(e,Z.join("/",v.linkname));r.realpath(I,function(_,L){if(_||!Ca(L,e))return g(new Error(S+" is not a valid hardlink"));r.link(L,S,function(j){if(j&&j.code==="EPERM"&&t.hardlinkAsFilesFallback)return p=r.createReadStream(I),A();C(j)})})})},A=function(){var I=r.createWriteStream(S),_=i(p,v);I.on("error",function(L){_.destroy(L)}),Ia(_,I,function(L){if(L)return g(L);I.on("close",C)})};if(v.type==="directory")return c.push([S,v.mtime]),Da(S,{fs:r,own:s,uid:v.uid,gid:v.gid},C);var F=Z.dirname(S);$a(r,F,Z.join(e,"."),function(I,_){if(I)return g(I);if(!_)return g(new Error(F+" is not a valid path"));Da(F,{fs:r,own:s,uid:v.uid,gid:v.gid},function(L){if(L)return g(L);switch(v.type){case"file":return A();case"link":return P();case"symlink":return O()}if(h)return g(new Error("unsupported type for "+S+" ("+v.type+")"));p.resume(),g()})})}),t.finish&&a.on("finish",t.finish),a};function $a(e,t,r,o){if(t===r)return o(null,!0);e.lstat(t,function(n,i){if(n&&n.code!=="ENOENT")return o(n);if(n||i.isDirectory())return $a(e,Z.join(t,".."),r,o);o(null,!1)})}function Da(e,t,r){Dd(e,{fs:t.fs},function(o,n){!o&&n&&t.own?Pd(n,t.uid,t.gid,r):r(o)})}function Ca(e,t){return t=Z.resolve(t),t===e||e.startsWith(t+Z.sep)}});l();l();var xr=K(pe(),1);l();l();var wr=[{name:"npm",lockfile:"package-lock.json",alternativeLockfiles:["npm-shrinkwrap.json"],installCommand:"npm ci"},{name:"yarn",lockfile:"yarn.lock",installCommand:"yarn install --frozen-lockfile"},{name:"pnpm",lockfile:"pnpm-lock.yaml",installCommand:"pnpm install --frozen-lockfile"},{name:"bun",lockfile:"bun.lockb",alternativeLockfiles:["bun.lock"],installCommand:"bun install --frozen-lockfile"}];function dl(e){let t="No lockfile found",r="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.",o=[["Generate a lockfile. Run",{command:"npm|yarn|pnpm install"}],"Commit the new file to your repository"];if(e)throw new E(t,r,o);q({headline:t,body:r,nextSteps:o})}function ul(e,t){let r=e.map(({packageManager:s,foundLockfile:a})=>`${a} (created by ${s.name})`),o="Multiple lockfiles found",n=[`Your project contains more than one lockfile. This can cause version conflicts when installing and deploying your app. The following lockfiles were detected:
|
|
2
2
|
`,{list:{items:r}}],i=["Delete any unneeded lockfiles","Commit the change to your repository"];if(t)throw new E(o,n,i);q({headline:o,body:n,nextSteps:i})}function fl(e){let t="Lockfile ignored by Git",r="Your project\u2019s lockfile isn\u2019t being tracked by Git. If you don\u2019t commit a lockfile, then your app might install the wrong package versions when deploying.",o=[`In your project\u2019s .gitignore file, delete any references to ${e}`,"Commit the change to your repository"];q({headline:t,body:r,nextSteps:o})}async function Si(e,t=!1){if(Ie&&!process.env.SHOPIFY_UNIT_TEST)return;let r=[];for(let i of wr){let s=[i.lockfile,...i.alternativeLockfiles||[]];for(let a of s)if(await G(D(e,a))){r.push({packageManager:i,foundLockfile:a});break}}if(r.length===0)return dl(t);if(r.length>1)return ul(r,t);let o=r[0].foundLockfile;(await Tn(e,[o]).catch(()=>[])).length>0&&fl(o)}l();var ml=["^cdn/","^_t/"];function vr(e){let t=new Set;return Object.values(e.routes).filter(r=>ml.some(o=>new RegExp(o).test(r.path??""))).forEach(r=>{r.path&&t.add(r.path)}),[...t]}var pl=["","cart","products/:productHandle","collections","collections/:collectionHandle","sitemap.xml","robots.txt","pages/:pageHandle","policies/:policyHandle","search","account","account/login","account/orders/:orderId","account/authorize"];function br(e,t=pl){let r=Object.values(e.routes),o=new Set(t);for(let n of t)for(let i of r)if(!n&&!i.path)o.delete(n);else if(n&&i.path){let s={path:i.path,parentId:i.parentId};for(;s.parentId&&s.parentId!=="root";){let u=r.find(d=>d.id===s.parentId);if(!u)break;s.path=u.path==null?s.path:`${u.path}/${s.path}`,s.parentId=u.parentId}let a=":?[^\\/\\?]+\\?",c=`^(${a}\\/)?`+n.replaceAll(".","\\.").replace(/\//g,`\\/(${a}\\/)?`).replace(/:[^/)?]+/g,"(:[^\\/]+|\\*)")+`(\\/${a})?$`;new RegExp(c).test(s.path)&&o.delete(n)}return[...o]}var Le=100;function xi(e){e.length?q({headline:"Standard Shopify routes missing",body:`Your Hydrogen project is missing ${e.length} standard Shopify route${e.length>1?"s":""}.
|
|
3
3
|
Including these routes improves compatibility with Shopify\u2019s platform:
|
|
4
4
|
|
|
@@ -246,7 +246,7 @@ Skip the flag or provide the name of a template or example in the Hydrogen repos
|
|
|
246
246
|
}
|
|
247
247
|
}
|
|
248
248
|
}
|
|
249
|
-
`;async function Ga(e){let{hydrogenStorefronts:t}=await ot(Md,e);return t.map(r=>({...r,parsedId:nt(r.id)}))}var Zr=class e extends T{static descriptionWithMarkdown="Lists all remote Hydrogen storefronts available to link to your local development environment.";static description="Returns a list of Hydrogen storefronts available on a given shop.";static flags={...k.path};async run(){let{flags:t}=await this.parse(e);await Hd(t)}};async function Hd({path:e=process.cwd()}){let{session:t}=await ge(e),r=await Ga(t);r.length>0?(ae(),$(Vd({storefronts:r,shop:t.storeFqdn}).toString()),r.forEach(({currentProductionDeployment:o,id:n,productionUrl:i,title:s})=>{ae(),$(z`${M.whiteBright(s)} ${M.dim(`(id: ${nt(n)})`)}`.value),i&&$(z` ${M.whiteBright(i)}`.value),o&&$(z` ${M.dim(Bd(o))}`.value)})):V({headline:"Hydrogen storefronts",body:"There are no Hydrogen storefronts on your Shop.",nextSteps:[`Ensure you are logged in to the correct shop (currently: ${t.storeFqdn})`,`Create a new Hydrogen storefront: Run \`${await W(e)} link\` or visit ${gs(t)}`]})}var Ud=new Intl.DateTimeFormat("default",{year:"numeric",month:"numeric",day:"numeric"});function Bd(e){let t="";if(!e)return t;if(t+=Ud.format(new Date(e.createdAt)),e.commitMessage){let r=e.commitMessage.split(/\n/)[0];t+=`, ${r}`}return t}var Vd=({storefronts:e,shop:t})=>Ut(e,r=>`Showing ${r.length} Hydrogen storefronts for the store ${t}`,r=>`Showing 1 Hydrogen storefront for the store ${t}`);l();var eo=class e extends T{static descriptionWithMarkdown="Logs in to the specified shop and saves the shop domain to the project.";static description="Login to your Shopify account.";static flags={...k.path,...k.shop};async run(){let{flags:t}=await this.parse(e);await Gd(t)}};async function Gd({path:e=process.cwd(),shop:t}){ae(),ti(!0);let{config:r}=await ge(e,t??!0);ni(r)}l();var to=class e extends T{static descriptionWithMarkdown="Log out from the current shop.";static description="Logout of your local session.";static flags={...k.path};async run(){let{flags:t}=await this.parse(e);await qd(t)}};async function qd({path:e=process.cwd()}){ae(),await oi(e),N({body:"You are logged out from Shopify."})}l();var tn=K(pe(),1);l();async function qa(e){let{startWorkerdServer:t}=await import("./workerd-
|
|
249
|
+
`;async function Ga(e){let{hydrogenStorefronts:t}=await ot(Md,e);return t.map(r=>({...r,parsedId:nt(r.id)}))}var Zr=class e extends T{static descriptionWithMarkdown="Lists all remote Hydrogen storefronts available to link to your local development environment.";static description="Returns a list of Hydrogen storefronts available on a given shop.";static flags={...k.path};async run(){let{flags:t}=await this.parse(e);await Hd(t)}};async function Hd({path:e=process.cwd()}){let{session:t}=await ge(e),r=await Ga(t);r.length>0?(ae(),$(Vd({storefronts:r,shop:t.storeFqdn}).toString()),r.forEach(({currentProductionDeployment:o,id:n,productionUrl:i,title:s})=>{ae(),$(z`${M.whiteBright(s)} ${M.dim(`(id: ${nt(n)})`)}`.value),i&&$(z` ${M.whiteBright(i)}`.value),o&&$(z` ${M.dim(Bd(o))}`.value)})):V({headline:"Hydrogen storefronts",body:"There are no Hydrogen storefronts on your Shop.",nextSteps:[`Ensure you are logged in to the correct shop (currently: ${t.storeFqdn})`,`Create a new Hydrogen storefront: Run \`${await W(e)} link\` or visit ${gs(t)}`]})}var Ud=new Intl.DateTimeFormat("default",{year:"numeric",month:"numeric",day:"numeric"});function Bd(e){let t="";if(!e)return t;if(t+=Ud.format(new Date(e.createdAt)),e.commitMessage){let r=e.commitMessage.split(/\n/)[0];t+=`, ${r}`}return t}var Vd=({storefronts:e,shop:t})=>Ut(e,r=>`Showing ${r.length} Hydrogen storefronts for the store ${t}`,r=>`Showing 1 Hydrogen storefront for the store ${t}`);l();var eo=class e extends T{static descriptionWithMarkdown="Logs in to the specified shop and saves the shop domain to the project.";static description="Login to your Shopify account.";static flags={...k.path,...k.shop};async run(){let{flags:t}=await this.parse(e);await Gd(t)}};async function Gd({path:e=process.cwd(),shop:t}){ae(),ti(!0);let{config:r}=await ge(e,t??!0);ni(r)}l();var to=class e extends T{static descriptionWithMarkdown="Log out from the current shop.";static description="Logout of your local session.";static flags={...k.path};async run(){let{flags:t}=await this.parse(e);await qd(t)}};async function qd({path:e=process.cwd()}){ae(),await oi(e),N({body:"You are logged out from Shopify."})}l();var tn=K(pe(),1);l();async function qa(e){let{startWorkerdServer:t}=await import("./workerd-XXPWKQOM.js");return t(e)}var ro=class e extends T{static descriptionWithMarkdown="Runs a server in your local development environment that serves your Hydrogen app's production build. Requires running the [build](https://shopify.dev/docs/api/shopify-cli/hydrogen/hydrogen-build) command first.";static description="Runs a Hydrogen storefront in an Oxygen worker for production.";static flags={...k.path,...k.port,...k.env,...k.envBranch,...k.envFile,...k.inspectorPort,...k.debug,...k.verbose,build:tn.Flags.boolean({description:"Builds the app before starting the preview server."}),watch:tn.Flags.boolean({description:"Watches for changes and rebuilds the project.",dependsOn:["build"]}),...we(k.entry,{entry:{dependsOn:["build"]}}),...we(k.codegen,{codegen:{dependsOn:["build"]}})};async run(){let{flags:t}=await this.parse(e),r=t.path?D(t.path):process.cwd(),{close:o}=await Wd({...U(t),directory:r});Me(async()=>{await o()})}};async function Wd({port:e,directory:t,env:r,envBranch:o,inspectorPort:n,debug:i,verbose:s,build:a=!1,watch:c=!1,codegen:u=!1,codegenConfigPath:d,entry:f,envFile:m}){process.env.NODE_ENV||(process.env.NODE_ENV=c?"development":"production"),s&&rr(),or()||it();let{root:h,buildPath:w,buildPathWorkerFile:y,buildPathClient:b}=xe(t),v=await rt(h);if(v)throw new E(Pe);let p,g=Tt(),C=a?await Je({...{directory:h,entry:f,disableRouteWarning:!1,lockfileCheck:!1,sourcemap:!0,bundleStats:!1,useCodegen:u,codegenConfigPath:d},watch:c,async onServerBuildFinish(){g.state==="pending"?g.resolve():$("\u{1F3D7}\uFE0F Project rebuilt. Reloading server..."),await p?.reload()}}):g.resolve();v||(y=(await he(h).catch(()=>null))?.serverOutFile??x(w,"server","index.js"));let{shop:O,storefront:P}=await tr(h),A=!!O&&!!P?.id,{allVariables:F,logInjectedVariables:I}=await hr({root:h,fetchRemote:A,envBranch:o,envHandle:r,envFile:m});e||(e=await pt(tt));let _=await pt(e+100);return await g.promise,I(),p=await qa({root:h,appPort:e,assetsPort:_,env:F,buildPathClient:b,buildPathWorkerFile:y,inspectorPort:n,debug:i,watch:c}),p.showBanner({mode:"preview",headlinePrefix:c?"Watching for changes. ":""}),{async close(){await Promise.allSettled([p.close(),C?.close()])}}}l();var oo=class e extends T{static description="Scaffold routes and core functionality.";static flags={...k.path,...k.force,...k.markets,...k.shortcut,...we(k.installDeps,{"install-deps":{default:!0}})};async run(){let{flags:t}=await this.parse(e),r=t.path?D(t.path):process.cwd();await Yd({...U(t),directory:r})}};async function Yd(e){let t=new qt,{rootDirectory:r,appDirectory:o}=await Ne(e.directory),n=Ze(r),i=W(),s=Promise.resolve(),a=[{title:"Setting up project",task:async()=>{await s}}],c=e.markets?e.markets:await Xt({abortSignal:t.signal,extraChoices:{none:"Set up later"}}),u=c==="none"?void 0:c,{setupRoutes:d}=nr(t),f,m=await jn(".."),[h,w]=await Promise.all([G(x(r,"tsconfig.json")),kt("*.d.ts",{cwd:m})]);s=s.then(()=>Promise.all([...w.map(p=>Bt(x(m,p),D(r,p))),ir({rootDirectory:r,appDirectory:o,typescript:h})])).then(async()=>{f=await d(r,h?"ts":"js",{i18nStrategy:u,overwriteFileDeps:!0})}),u&&(s=s.then(()=>Kt(u,{rootDirectory:r})));let y=await Promise.resolve(i),{createShortcut:b,showShortcutBanner:v}=await sr(t,y,e.shortcut);!u&&!b||(b&&(s=s.then(async()=>{await b()&&(y=We)}),v()),await ee(a),await st({location:n,name:n,directory:r},{cliCommand:y,depsInstalled:!0,packageManager:"npm",i18n:u,routes:f}))}l();var Wa=K(pe(),1);var no=class e extends T{static descriptionWithMarkdown="Adds support for certain CSS strategies to your project.";static description="Setup CSS strategies for your project.";static flags={...k.path,...k.force,...we(k.installDeps,{"install-deps":{default:!0}})};static args={strategy:Wa.Args.string({name:"strategy",description:`The CSS strategy to setup. One of ${ko.join()}`,options:ko})};async run(){let{flags:t,args:r}=await this.parse(e),o=t.path?D(t.path):process.cwd();await zd({...U(t),strategy:r.strategy,directory:o})}};async function zd({strategy:e,directory:t,force:r=!1,installDeps:o=!0}){let n=await he(t).catch(()=>null);if(!n)throw new E("No Vite config found. This command is only supported in Vite projects.");let{remixConfig:i}=n,s=e||await Un();if(s==="css-modules"||s==="postcss"){N({headline:`Vite works out of the box with ${xt[s]}.`,body:`See the Vite documentation for more information:
|
|
250
250
|
${So[s]}`});return}let a=await Hn(s,i,r);if(!a)return;let{workPromise:c,generatedAssets:u,needsInstallDeps:d}=a,f=[{title:"Updating files",task:async()=>{await c}}],m=!1;if(o&&d){let h=ke(i.rootDirectory);f.push({title:"Installing new dependencies",task:async()=>{let w=await h;m=w==="npm"||w==="unknown",await Wt({directory:i.rootDirectory,packageManager:w,args:[]})}})}await ee(f),N({headline:`${xt[s]} setup complete.`,body:(u.length>0?`You can now modify CSS configuration in the following files:
|
|
251
251
|
`+u.map(h=>` - ${h}`).join(`
|
|
252
252
|
`)+`
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{b as n}from"./chunk-
|
|
1
|
+
import{b as n}from"./chunk-74IG3ZE3.js";import{u as t}from"./chunk-YYLEWVO6.js";import{k as r}from"./chunk-MGPLKG23.js";import{g as o}from"./chunk-VKWPEFWQ.js";o();var e=class extends n{static{this.description="Run CLI doctor-release tests"}static{this.hidden=!0}async run(){r()&&t({headline:"Shopify CLI Doctor Release.",body:["Available doctor-release commands:",""," shopify doctor-release theme -e <environment> Run all theme command tests","","The -e/--environment flag is required to specify the store configuration.","Use --help with any command for more options."]})}};export{e as a};
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import{a as n}from"./chunk-
|
|
1
|
+
import{a as n}from"./chunk-O7OQK2OC.js";import{p as i,v as m}from"./chunk-JGN7YG5X.js";import{b as t}from"./chunk-S5JJL3BP.js";import{r as c}from"./chunk-T6CC5WUU.js";import{e as l,g as r}from"./chunk-VKWPEFWQ.js";r();var a=l(c(),1),s,o=class extends m{async command(e){let d={path:e.path,password:e.password,store:e.store,force:e.force,verbose:e.verbose,noColor:e["no-color"]};await n(d)}};s=o;o.summary="Download metafields definitions from your shop into a local file.";o.descriptionWithMarkdown=`Retrieves metafields from Shopify Admin.
|
|
2
2
|
|
|
3
3
|
If the metafields file already exists, it will be overwritten.`;o.description=s.descriptionWithoutMarkdown();o.flags={...t,...i,force:a.Flags.boolean({hidden:!0,char:"f",description:"Proceed without confirmation, if current directory does not seem to be theme directory.",env:"SHOPIFY_FLAG_FORCE"})};o.multiEnvironmentsFlags=null;var v=o;export{v as a};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{Ea as cs,Fb as kt,Hb as gs,Pa as hs,Pb as ms,Qa as us,Ta as fs,Wa as ds,bb as ps,ma as wt,pa as be,ua as ls,wa as bt}from"./chunk-
|
|
1
|
+
import{Ea as cs,Fb as kt,Hb as gs,Pa as hs,Pb as ms,Qa as us,Ta as fs,Wa as ds,bb as ps,ma as wt,pa as be,ua as ls,wa as bt}from"./chunk-BXDZX3BS.js";import{d as we,g as yt,i as as}from"./chunk-773TIA5M.js";import{a as X,c as gi,e as mi,g as ye}from"./chunk-VKWPEFWQ.js";var ui=gi(l=>{"use strict";ye();Object.defineProperty(l,"__esModule",{value:!0});var yi=X("stream"),W=X("path"),G=X("fs"),Es=X("crypto"),O=class{constructor(e,s,i,r,n){this.kind=e,this.input=s,this.begin=i,this.end=r,this.file=n}getText(){return this.input.slice(this.begin,this.end)}getPosition(){let[e,s]=[1,1];for(let i=0;i<this.begin;i++)this.input[i]===`
|
|
2
2
|
`?(e++,s=1):s++;return[e,s]}size(){return this.end-this.begin}},D=class{liquidMethodMissing(e,s){}},wi=Object.prototype.toString,ys=String.prototype.toLowerCase,Qt=Object.hasOwnProperty;function d(t){return typeof t=="string"}function x(t){return typeof t=="function"}function bi(t){return t&&x(t.then)}function _e(t){return t&&x(t.next)&&x(t.throw)&&x(t.return)}function Kt(t){return function(...e){return new Promise((s,i)=>{t(...e,(r,n)=>{r?i(r):s(n)})})}}function h(t){return t=m(t),d(t)?t:k(t)?"":S(t)?t.map(e=>h(e)).join(""):String(t)}function ge(t){return t=m(t),S(t)?t:d(t)&&t.length>0?[t]:Ti(t)?Array.from(t):dt(t)?Object.keys(t).map(e=>[e,t[e]]):[]}function L(t){return t=m(t),k(t)?[]:S(t)?t:[t]}function m(t){return t instanceof D&&x(t.valueOf)?t.valueOf():t}function xt(t){return+m(t)||0}function ft(t){return typeof t=="number"}function Vs(t){return t&&x(t.toLiquid)?Vs(t.toLiquid()):t}function k(t){return t==null}function ki(t){return t===void 0}function S(t){return wi.call(t)==="[object Array]"}function Ps(t){return t&&ft(t.length)}function Ti(t){return dt(t)&&Symbol.iterator in t}function ws(t,e){t=t||{};for(let s in t)if(Qt.call(t,s)&&e(t[s],s,t)===!1)break;return t}function xi(t){return t[t.length-1]}function dt(t){let e=typeof t;return t!==null&&(e==="object"||e==="function")}function Cs(t,e,s=1){let i=[];for(let r=t;r<e;r+=s)i.push(r);return i}function oe(t,e,s=" "){return $s(t,e,s,(i,r)=>r+i)}function Si(t,e,s=" "){return $s(t,e,s,(i,r)=>i+r)}function $s(t,e,s,i){t=String(t);let r=e-t.length;return r<=0?t:i(t,s.repeat(r))}function js(t){return t}function _i(t){return[...t].some(s=>s>="a"&&s<="z")?t.toUpperCase():t.toLowerCase()}function Li(t,e){return t.length>e?t.slice(0,e-3)+"...":t}function Fi(t,e){return k(t)&&k(e)?0:k(t)?1:k(e)||t<e?-1:t>e?1:0}function Oi(t,e){return k(t)&&k(e)?0:k(t)?1:k(e)||(t=ys.call(t),e=ys.call(e),t<e)?-1:t>e?1:0}function pt(t){return function(...e){return t.call(this,...e.map(m))}}function V(t){return function(...e){return t.call(this,...e.map(xt))}}function*ke(t){let e=new Set;for(let s of t){let i=JSON.stringify(s);e.has(i)||(e.add(i),yield s)}}var bs="__liquidClass__",E=class extends Error{constructor(e,s){super(typeof e=="string"?e:e.message),this.context="",typeof e!="string"&&Object.defineProperty(this,"originalError",{value:e,enumerable:!1}),Object.defineProperty(this,"token",{value:s,enumerable:!1}),Object.defineProperty(this,bs,{value:"LiquidError",enumerable:!1})}update(){Object.defineProperty(this,"context",{value:vi(this.token),enumerable:!1}),this.message=zi(this.message,this.token),this.stack=this.message+`
|
|
3
3
|
`+this.context+`
|
|
4
4
|
`+this.stack,this.originalError&&(this.stack+=`
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{z as r}from"./chunk-
|
|
1
|
+
import{z as r}from"./chunk-3EQY5B4S.js";import{f as t,q as n}from"./chunk-773TIA5M.js";import{r as o}from"./chunk-T6CC5WUU.js";import{e as s,g as a}from"./chunk-VKWPEFWQ.js";a();var e=s(o(),1);var c={path:e.Flags.string({description:"The path to your app directory.",parse:async i=>t(i),default:async()=>n(),noCacheDefault:!0,env:"SHOPIFY_FLAG_PATH"}),config:e.Flags.string({hidden:!1,char:"c",description:"The name of the app configuration.",env:"SHOPIFY_FLAG_APP_CONFIG"}),"client-id":e.Flags.string({hidden:!1,description:"The Client ID of your app.",env:"SHOPIFY_FLAG_CLIENT_ID",exclusive:["config"]}),reset:e.Flags.boolean({hidden:!1,description:"Reset all your settings.",env:"SHOPIFY_FLAG_RESET",default:!1,exclusive:["config"]})},p={query:e.Flags.string({char:"q",description:"The GraphQL query or mutation to run as a bulk operation.",env:"SHOPIFY_FLAG_QUERY",required:!1,exactlyOne:["query","query-file"]}),"query-file":e.Flags.string({description:"Path to a file containing the GraphQL query or mutation. Can't be used with --query.",env:"SHOPIFY_FLAG_QUERY_FILE",parse:async i=>t(i),exactlyOne:["query","query-file"]}),variables:e.Flags.string({char:"v",description:"The values for any GraphQL variables in your mutation, in JSON format. Can be specified multiple times.",env:"SHOPIFY_FLAG_VARIABLES",multiple:!0,exclusive:["variable-file"]}),"variable-file":e.Flags.string({description:"Path to a file containing GraphQL variables in JSONL format (one JSON object per line). Can't be used with --variables.",env:"SHOPIFY_FLAG_VARIABLE_FILE",parse:async i=>t(i),exclusive:["variables"]}),store:e.Flags.string({char:"s",description:"The store domain. Must be an existing dev store.",env:"SHOPIFY_FLAG_STORE",parse:async i=>r(i)}),watch:e.Flags.boolean({description:"Wait for bulk operation results before exiting. Defaults to false.",env:"SHOPIFY_FLAG_WATCH"}),"output-file":e.Flags.string({description:"The file path where results should be written if --watch is specified. If not specified, results will be written to STDOUT.",env:"SHOPIFY_FLAG_OUTPUT_FILE",dependsOn:["watch"]}),version:e.Flags.string({description:"The API version to use for the bulk operation. If not specified, uses the latest stable version.",env:"SHOPIFY_FLAG_VERSION"})},h={query:e.Flags.string({char:"q",description:"The GraphQL query or mutation, as a string.",env:"SHOPIFY_FLAG_QUERY",required:!1,exactlyOne:["query","query-file"]}),"query-file":e.Flags.string({description:"Path to a file containing the GraphQL query or mutation. Can't be used with --query.",env:"SHOPIFY_FLAG_QUERY_FILE",parse:async i=>t(i),exactlyOne:["query","query-file"]}),variables:e.Flags.string({char:"v",description:"The values for any GraphQL variables in your query or mutation, in JSON format.",env:"SHOPIFY_FLAG_VARIABLES",exclusive:["variable-file"]}),"variable-file":e.Flags.string({description:"Path to a file containing GraphQL variables in JSON format. Can't be used with --variables.",env:"SHOPIFY_FLAG_VARIABLE_FILE",parse:async i=>t(i),exclusive:["variables"]}),store:e.Flags.string({char:"s",description:"The myshopify.com domain of the store to execute against. The app must be installed on the store. If not specified, you will be prompted to select a store.",env:"SHOPIFY_FLAG_STORE",parse:async i=>r(i)}),version:e.Flags.string({description:"The API version to use for the query or mutation. Defaults to the latest stable version.",env:"SHOPIFY_FLAG_VERSION"}),"output-file":e.Flags.string({description:"The file name where results should be written, instead of STDOUT.",env:"SHOPIFY_FLAG_OUTPUT_FILE"})};export{c as a,p as b,h as c};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{b as $}from"./chunk-WW7TENNA.js";import{a as F}from"./chunk-5C7HDTHJ.js";import{R as _}from"./chunk-
|
|
1
|
+
import{b as $}from"./chunk-WW7TENNA.js";import{a as F}from"./chunk-5C7HDTHJ.js";import{R as _}from"./chunk-YYLEWVO6.js";import{d as T}from"./chunk-N5U5Q2MG.js";import{d}from"./chunk-AUZCENYI.js";import{Fb as h,Hb as g,Lb as P,aa as E}from"./chunk-BXDZX3BS.js";import{c as O}from"./chunk-MGPLKG23.js";import{a as b}from"./chunk-NNOSZ447.js";import{r as I}from"./chunk-T6CC5WUU.js";import{e as S,g as w}from"./chunk-VKWPEFWQ.js";w();var u=S(I()),p=class extends u.Command{static descriptionWithoutMarkdown(){return(this.descriptionWithMarkdown??"").replace(/(\[)(.*?)(])(\()(.*?)(\))/gm,'"$2" ($5)')}static analyticsNameOverride(){}static analyticsStopCommand(){}async catch(n){n.skipOclifErrorHandling=!0;let{errorHandler:r}=await import("./error-handler-BOESDKZA.js");return await r(n,this.config),u.Errors.handle(n)}async init(){if(this.exitWithTimestampWhenEnvVariablePresent(),$(this.id??""),!O()){let{registerCleanBugsnagErrorsFromWithinPlugins:r}=await import("./error-handler-BOESDKZA.js");await r(this.config)}await x(this.config),this.showNpmFlagWarning();let{showNotificationsIfNeeded:n}=await import("./notifications-system-4ODOESG2.js");return await n(),super.init()}showNpmFlagWarning(){let n=this.constructor;Object.keys(n.flags||{}).map(t=>`npm_config_${E(t).replace(/^no_/,"")}`).some(t=>process.env[t]!==void 0)&&import("./ui-AXZBGWIQ.js").then(({renderWarning:t})=>{t({body:["NPM scripts require an extra",{command:"--"},"separator to pass the flags. Example:",{command:"npm run dev -- --reset"}]})})}exitWithTimestampWhenEnvVariablePresent(){b(process.env.SHOPIFY_CLI_ENV_STARTUP_PERFORMANCE_RUN)&&(P(`
|
|
2
2
|
SHOPIFY_CLI_TIMESTAMP_START
|
|
3
3
|
{ "timestamp": ${Date.now()} }
|
|
4
4
|
SHOPIFY_CLI_TIMESTAMP_END
|
|
@@ -6,6 +6,6 @@ import{b as $}from"./chunk-WW7TENNA.js";import{a as F}from"./chunk-5C7HDTHJ.js";
|
|
|
6
6
|
|
|
7
7
|
${h.cyan(e)}
|
|
8
8
|
|
|
9
|
-
This flag is required in non-interactive terminal environments, such as a CI environment, or when piping input from another process.`,"To resolve this, specify the option in the command, or run the command in an interactive environment such as your local terminal.")})}async resultWithEnvironment(n,r,e){let t=n.flags,i=this.environmentsFilename();if(!i)return n;let{environmentFilePath:o}=await import("./environments-
|
|
10
|
-
`),{renderWarning:o}=await import("./ui-
|
|
9
|
+
This flag is required in non-interactive terminal environments, such as a CI environment, or when piping input from another process.`,"To resolve this, specify the option in the command, or run the command in an interactive environment such as your local terminal.")})}async resultWithEnvironment(n,r,e){let t=n.flags,i=this.environmentsFilename();if(!i)return n;let{environmentFilePath:o}=await import("./environments-5KA3OBIZ.js"),s=await o(i,{from:t.path}),m=[];t.environment&&(m=Array.isArray(t.environment)?t.environment:[t.environment]);let c=m.length>0;if(!s&&!c||c&&m.length>1)return n;let{environment:l,isDefaultEnvironment:f}=await this.loadEnvironmentForCommand(t.path,i,m[0]);if(!l||f&&!C(r?.flags,"environment"))return n;let v=await super.parse(N(r),e),y=await super.parse(r,[...e??this.argv,...W(l,r,v),...f?["--environment","default"]:[]]);return A(v.flags,y.flags,f?"default":m[0],l),y}async loadEnvironmentForCommand(n,r,e){let{loadEnvironment:t}=await import("./environments-5KA3OBIZ.js");return e?{environment:await t(e,r,{from:n}),isDefaultEnvironment:!1}:{environment:await t("default",r,{from:n,silent:!0}),isDefaultEnvironment:!0}}};p.baseFlags={};async function j(a){await T(()=>({cmd_all_verbose:a.verbose,cmd_all_path_override:a.path!==void 0,cmd_all_path_override_hash:a.path===void 0?void 0:F(a.path)}))}function A(a,n,r,e){let t={};for(let[o,s]of Object.entries(n)){let m=Object.prototype.hasOwnProperty.call(a,o),c=Object.prototype.hasOwnProperty.call(e,o);if(!m&&c){let l=o==="password"?`********${s.substr(-4)}`:s;t[o]=l}}if(Object.keys(t).length===0)return;let i=Object.entries(t).map(([o,s])=>`${o}: ${s}`);import("./ui-AXZBGWIQ.js").then(({renderInfo:o})=>{o({headline:["Using applicable flags from",{userInput:r},"environment:"],body:[{list:{items:i}}]})})}function N(a){return a?.flags?{...a,flags:Object.fromEntries(Object.entries(a.flags).map(([n,r])=>{let e={...r};return delete e.default,[n,e]}))}:a}function W(a,n,r){let e=[];for(let[t,i]of Object.entries(a)){let o=C(n?.flags,t),s=r.flags&&Object.prototype.hasOwnProperty.call(r.flags,t);if(o&&!s)if(typeof i=="boolean")if(i)e.push(`--${t}`);else throw new d(g`Environments can only specify true for boolean flags. Attempted to set ${h.yellow(t)} to false.`);else Array.isArray(i)?i.forEach(m=>e.push(`--${t}`,`${m}`)):e.push(`--${t}`,`${i}`)}return e}function C(a,n){return!!a&&Object.prototype.hasOwnProperty.call(a,n)}async function x(a){let n=Array.from(a.plugins.values()),r=["@shopify/app","@shopify/plugin-cloudflare"],e=n.filter(i=>r.includes(i.name));if(e.length>0){let i=e.map(s=>` - shopify plugins remove ${s.name}`).join(`
|
|
10
|
+
`),{renderWarning:o}=await import("./ui-AXZBGWIQ.js");o({headline:`Unsupported plugins detected: ${e.map(s=>s.name).join(", ")}`,body:["They are already included in the CLI and installing them as custom plugins can cause conflicts.",`You can fix it by running:
|
|
11
11
|
${i}`]})}let t=n.filter(i=>!r.includes(i.name));a.plugins=new Map(t.map(i=>[i.name,i]))}var q=p;export{N as a,q as b};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{a as ww,b as l4,c as f4}from"./chunk-F3TMLDLC.js";import{a as xw}from"./chunk-IWOTLFOY.js";import{Aa as Sw,i as bw,za as c4}from"./chunk-
|
|
1
|
+
import{a as ww,b as l4,c as f4}from"./chunk-F3TMLDLC.js";import{a as xw}from"./chunk-IWOTLFOY.js";import{Aa as Sw,i as bw,za as c4}from"./chunk-3EQY5B4S.js";import{b as u4}from"./chunk-NJOO5XJV.js";import{p as vw}from"./chunk-T6CC5WUU.js";import{a as ae,b as Ae,c as T,d as Ym,e as ia,f as Xm,g as y}from"./chunk-VKWPEFWQ.js";var eg=T(Zm=>{"use strict";y();Object.defineProperty(Zm,"__esModule",{value:!0});Zm.deepGet=p4;function p4(t,e){return e.reduce((r,i)=>r?.[i],t)}});var kw=T(rs=>{"use strict";y();Object.defineProperty(rs,"__esModule",{value:!0});rs.first=h4;rs.last=d4;rs.findLast=m4;rs.findLastIndex=tg;rs.findLastAndIndex=g4;function h4(t){return t[0]}function d4(t,e=0){return t[t.length-1+e]}function m4(t,e){return t[tg(t,e)]}function tg(t,e){for(let r=t.length-1;r>=0;r--)if(e(t[r]))return r;return-1}function g4(t,e){let r=tg(t,e);return[t[r],r]}});var Aw=T((Rie,Iw)=>{"use strict";y();var y4=ww();Iw.exports=function(e){return e!=null&&typeof e=="object"&&y4(e)===!1}});var rg=T((Fie,Tw)=>{"use strict";y();var _4=ww(),v4=Aw(),Die=Array.prototype.slice;Tw.exports=na;function na(t,e){if(!(this instanceof na))return typeof e=="number"?new na(t).fromIndex(e):new na(t,e);this.str=t||"",this.lineToIndex=b4(this.str),e=e||{},this.origin=typeof e.origin>"u"?1:e.origin}na.prototype.fromIndex=function(t){if(t<0||t>=this.str.length||isNaN(t))return null;var e=S4(t,this.lineToIndex);return{line:e+this.origin,col:t-this.lineToIndex[e]+this.origin}};na.prototype.toIndex=function(t,e){if(typeof e>"u")return _4(t)&&t.length>=2?this.toIndex(t[0],t[1]):v4(t)&&"line"in t&&("col"in t||"column"in t)?this.toIndex(t.line,"col"in t?t.col:t.column):-1;if(isNaN(t)||isNaN(e))return-1;if(t-=this.origin,e-=this.origin,t>=0&&e>=0&&t<this.lineToIndex.length){var r=this.lineToIndex[t],i=t===this.lineToIndex.length-1?this.str.length:this.lineToIndex[t+1];if(e<i-r)return r+e}return-1};function b4(t){for(var e=t.split(`
|
|
2
2
|
`),r=new Array(e.length),i=0,n=0,s=e.length;n<s;n++)r[n]=i,i+=e[n].length+1;return r}function S4(t,e){if(t>=e[e.length-1])return e.length-1;for(var r=0,i=e.length-2,n;r<i;)if(n=r+(i-r>>1),t<e[n])i=n-1;else if(t>=e[n+1])r=n+1;else{r=n;break}return r}});var Ow=T(sa=>{"use strict";y();var w4=sa&&sa.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(sa,"__esModule",{value:!0});sa.getPosition=x4;sa.getOffset=k4;var Ew=w4(rg());function x4(t,e){let r=(0,Ew.default)(t,{origin:0}).fromIndex(Math.min(e,t.length-1));return{index:e,line:r?r.line:-1,character:r?r.col:-1}}function k4(t,e,r){return(0,Ew.default)(t,{origin:1}).toIndex(e,r)}});var pl=T(fl=>{"use strict";y();Object.defineProperty(fl,"__esModule",{value:!0});fl.isError=A4;fl.asError=T4;var I4={1:"Invalid symbol found in the input.",2:"Invalid number format detected.",3:"Property name expected but not found.",4:"A value was expected but not found.",5:"Colon `:` expected after the property name.",6:"Comma `,` expected between elements and properties.",7:"Closing brace `}` expected.",8:"Closing bracket `]` expected.",9:"End of file expected.",10:"Invalid comment token found.",11:"Unexpected end of comment.",12:"Unexpected end of string.",13:"Unexpected end of number.",14:"Invalid Unicode escape sequence.",15:"Invalid escape character found.",16:"Invalid character found in the input."};function A4(t){return t instanceof Error}function T4(t){return t instanceof Error?t:typeof t=="string"?new Error(t):t&&typeof t=="object"&&"error"in t?new Error(E4(t)):t&&typeof t.toString=="function"?new Error(t.toString()):new Error("An unknown error occurred")}function E4(t){return I4[t.error]||"Unknown parse error."}});var ng=T(ig=>{"use strict";y();Object.defineProperty(ig,"__esModule",{value:!0});ig.assertNever=O4;function O4(t){throw new Error(`We should never reach this code, you are missing a case for ${t}`)}});var ag=T(hl=>{"use strict";y();Object.defineProperty(hl,"__esModule",{value:!0});hl.memo=N4;hl.memoize=L4;var sg=Symbol("Unset");function N4(t){let e=sg,r=(...i)=>(e===sg&&(e=t(...i)),e);return r.clearCache=()=>{e=sg},r}function L4(t,e){let r={},i=(...n)=>{let s=e(...n);return r[s]||(r[s]=t(...n)),r[s]};return i.force=(...n)=>(i.invalidate(...n),i(...n)),i.invalidate=(...n)=>{let s=e(...n);delete r[s]},i.clearCache=()=>{r={}},i}});var ug=T(og=>{"use strict";y();Object.defineProperty(og,"__esModule",{value:!0});og.indexBy=P4;function P4(t,e){let r={};for(let i of e)r[t(i)]=i;return r}});function is(t,e=!1){let r=t.length,i=0,n="",s=0,a=16,o=0,u=0,l=0,f=0,h=0;function p(w,_){let A=0,E=0;for(;A<w||!_;){let O=t.charCodeAt(i);if(O>=48&&O<=57)E=E*16+O-48;else if(O>=65&&O<=70)E=E*16+O-65+10;else if(O>=97&&O<=102)E=E*16+O-97+10;else break;i++,A++}return A<w&&(E=-1),E}function m(w){i=w,n="",s=0,a=16,h=0}function v(){let w=i;if(t.charCodeAt(i)===48)i++;else for(i++;i<t.length&&aa(t.charCodeAt(i));)i++;if(i<t.length&&t.charCodeAt(i)===46)if(i++,i<t.length&&aa(t.charCodeAt(i)))for(i++;i<t.length&&aa(t.charCodeAt(i));)i++;else return h=3,t.substring(w,i);let _=i;if(i<t.length&&(t.charCodeAt(i)===69||t.charCodeAt(i)===101))if(i++,(i<t.length&&t.charCodeAt(i)===43||t.charCodeAt(i)===45)&&i++,i<t.length&&aa(t.charCodeAt(i))){for(i++;i<t.length&&aa(t.charCodeAt(i));)i++;_=i}else h=3;return t.substring(w,_)}function S(){let w="",_=i;for(;;){if(i>=r){w+=t.substring(_,i),h=2;break}let A=t.charCodeAt(i);if(A===34){w+=t.substring(_,i),i++;break}if(A===92){if(w+=t.substring(_,i),i++,i>=r){h=2;break}switch(t.charCodeAt(i++)){case 34:w+='"';break;case 92:w+="\\";break;case 47:w+="/";break;case 98:w+="\b";break;case 102:w+="\f";break;case 110:w+=`
|
|
3
3
|
`;break;case 114:w+="\r";break;case 116:w+=" ";break;case 117:let O=p(4,!0);O>=0?w+=String.fromCharCode(O):h=4;break;default:h=5}_=i;continue}if(A>=0&&A<=31)if(qo(A)){w+=t.substring(_,i),h=2;break}else h=6;i++}return w}function b(){if(n="",h=0,s=i,u=o,f=l,i>=r)return s=r,a=17;let w=t.charCodeAt(i);if(cg(w)){do i++,n+=String.fromCharCode(w),w=t.charCodeAt(i);while(cg(w));return a=15}if(qo(w))return i++,n+=String.fromCharCode(w),w===13&&t.charCodeAt(i)===10&&(i++,n+=`
|
|
4
4
|
`),o++,l=i,a=14;switch(w){case 123:return i++,a=1;case 125:return i++,a=2;case 91:return i++,a=3;case 93:return i++,a=4;case 58:return i++,a=6;case 44:return i++,a=5;case 34:return i++,n=S(),a=10;case 47:let _=i-1;if(t.charCodeAt(i+1)===47){for(i+=2;i<r&&!qo(t.charCodeAt(i));)i++;return n=t.substring(_,i),a=12}if(t.charCodeAt(i+1)===42){i+=2;let A=r-1,E=!1;for(;i<A;){let O=t.charCodeAt(i);if(O===42&&t.charCodeAt(i+1)===47){i+=2,E=!0;break}i++,qo(O)&&(O===13&&t.charCodeAt(i)===10&&i++,o++,l=i)}return E||(i++,h=1),n=t.substring(_,i),a=13}return n+=String.fromCharCode(w),i++,a=16;case 45:if(n+=String.fromCharCode(w),i++,i===r||!aa(t.charCodeAt(i)))return a=16;case 48:case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:return n+=v(),a=11;default:for(;i<r&&g(w);)i++,w=t.charCodeAt(i);if(s!==i){switch(n=t.substring(s,i),n){case"true":return a=8;case"false":return a=9;case"null":return a=7}return a=16}return n+=String.fromCharCode(w),i++,a=16}}function g(w){if(cg(w)||qo(w))return!1;switch(w){case 125:case 93:case 123:case 91:case 34:case 58:case 44:case 47:return!1}return!0}function k(){let w;do w=b();while(w>=12&&w<=15);return w}return{setPosition:m,getPosition:()=>i,scan:e?k:b,getToken:()=>a,getTokenValue:()=>n,getTokenOffset:()=>s,getTokenLength:()=>i-s,getTokenStartLine:()=>u,getTokenStartCharacter:()=>s-f,getTokenError:()=>h}}function cg(t){return t===32||t===9}function qo(t){return t===10||t===13}function aa(t){return t>=48&&t<=57}var Nw,dl=Ae(()=>{"use strict";y();(function(t){t[t.lineFeed=10]="lineFeed",t[t.carriageReturn=13]="carriageReturn",t[t.space=32]="space",t[t._0=48]="_0",t[t._1=49]="_1",t[t._2=50]="_2",t[t._3=51]="_3",t[t._4=52]="_4",t[t._5=53]="_5",t[t._6=54]="_6",t[t._7=55]="_7",t[t._8=56]="_8",t[t._9=57]="_9",t[t.a=97]="a",t[t.b=98]="b",t[t.c=99]="c",t[t.d=100]="d",t[t.e=101]="e",t[t.f=102]="f",t[t.g=103]="g",t[t.h=104]="h",t[t.i=105]="i",t[t.j=106]="j",t[t.k=107]="k",t[t.l=108]="l",t[t.m=109]="m",t[t.n=110]="n",t[t.o=111]="o",t[t.p=112]="p",t[t.q=113]="q",t[t.r=114]="r",t[t.s=115]="s",t[t.t=116]="t",t[t.u=117]="u",t[t.v=118]="v",t[t.w=119]="w",t[t.x=120]="x",t[t.y=121]="y",t[t.z=122]="z",t[t.A=65]="A",t[t.B=66]="B",t[t.C=67]="C",t[t.D=68]="D",t[t.E=69]="E",t[t.F=70]="F",t[t.G=71]="G",t[t.H=72]="H",t[t.I=73]="I",t[t.J=74]="J",t[t.K=75]="K",t[t.L=76]="L",t[t.M=77]="M",t[t.N=78]="N",t[t.O=79]="O",t[t.P=80]="P",t[t.Q=81]="Q",t[t.R=82]="R",t[t.S=83]="S",t[t.T=84]="T",t[t.U=85]="U",t[t.V=86]="V",t[t.W=87]="W",t[t.X=88]="X",t[t.Y=89]="Y",t[t.Z=90]="Z",t[t.asterisk=42]="asterisk",t[t.backslash=92]="backslash",t[t.closeBrace=125]="closeBrace",t[t.closeBracket=93]="closeBracket",t[t.colon=58]="colon",t[t.comma=44]="comma",t[t.dot=46]="dot",t[t.doubleQuote=34]="doubleQuote",t[t.minus=45]="minus",t[t.openBrace=123]="openBrace",t[t.openBracket=91]="openBracket",t[t.plus=43]="plus",t[t.slash=47]="slash",t[t.formFeed=12]="formFeed",t[t.tab=9]="tab"})(Nw||(Nw={}))});var Or,oa,lg,Lw,Pw=Ae(()=>{y();Or=new Array(20).fill(0).map((t,e)=>" ".repeat(e)),oa=200,lg={" ":{"\n":new Array(oa).fill(0).map((t,e)=>`
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as k}from"./chunk-
|
|
1
|
+
import{a as k}from"./chunk-Z2Y6G2QF.js";import{a as g}from"./chunk-KZDI2BXR.js";import{a as y}from"./chunk-6V37CHBZ.js";import{Ga as w,g as b}from"./chunk-KJQAJUDU.js";import{b as h}from"./chunk-S5JJL3BP.js";import{O as u,t as m,v as f}from"./chunk-YYLEWVO6.js";import{d}from"./chunk-N5U5Q2MG.js";import{r as S}from"./chunk-T6CC5WUU.js";import{e as A,g as o}from"./chunk-VKWPEFWQ.js";o();o();o();async function r(e,{web:i,stdout:t,stderr:a,signal:s,env:p={}}){let l=i.configuration.commands[e];if(!l)return;let[_,...v]=l.split(" ");await u(_,v,{cwd:i.directory,stdout:t,stderr:a,signal:s,env:p}),t.write("Web successfully built.")}async function P(e){!e.skipDependenciesInstallation&&!e.project.usesWorkspaces&&await g(e.project);let i={};e.apiKey&&(i.SHOPIFY_API_KEY=e.apiKey),await b(e.app),await m({processes:[...e.app.webs.map(t=>({prefix:["web",...t.configuration.roles].join("-"),action:async(a,s,p)=>{await r("build",{web:t,stdout:a,stderr:s,signal:p,env:i})}})),...e.app.allExtensions.map(t=>({prefix:t.localIdentifier,action:async(a,s,p)=>{await t.build({stdout:a,stderr:s,signal:p,app:e.app,environment:"production"})}}))],showTimestamps:!1}),f({headline:[{userInput:e.app.name},"built!"]})}var x=P;var I=A(S(),1);var c,n=class extends k{async run(){let{flags:i}=await this.parse(c),t=i["client-id"];await d(()=>({cmd_app_dependency_installation_skipped:i["skip-dependencies-installation"]}));let{app:a,project:s}=await w({directory:i.path,userProvidedConfigName:i.config});return await x({app:a,project:s,skipDependenciesInstallation:i["skip-dependencies-installation"],apiKey:t}),{app:a}}};c=n;n.summary="Build the app, including extensions.";n.descriptionWithMarkdown="This command executes the build script specified in the element's TOML file. You can specify a custom script in the file. To learn about configuration files in Shopify apps, refer to [App configuration](https://shopify.dev/docs/apps/tools/cli/configuration).\n\n If you're building a [theme app extension](https://shopify.dev/docs/apps/online-store/theme-app-extensions), then running the `build` command runs [Theme Check](https://shopify.dev/docs/themes/tools/theme-check) against your extension to ensure that it's valid.";n.description=c.descriptionWithoutMarkdown();n.flags={...h,...y,"skip-dependencies-installation":I.Flags.boolean({hidden:!1,description:"Skips the installation of dependencies. Deprecated, use workspaces instead.",env:"SHOPIFY_FLAG_SKIP_DEPENDENCIES_INSTALLATION",default:!1})};var J=n;export{J as a};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as n}from"./chunk-
|
|
1
|
+
import{a as n}from"./chunk-4EYTWWYF.js";import{b as i}from"./chunk-74IG3ZE3.js";import{g as e}from"./chunk-VKWPEFWQ.js";e();var t=class extends i{static{this.description="Generate a notifications.json file for the the CLI, appending a new notification to the current file."}static{this.hidden=!0}async run(){await n()}};export{t as a};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{Pb as m}from"./chunk-
|
|
1
|
+
import{Pb as m}from"./chunk-BXDZX3BS.js";import{g as p}from"./chunk-VKWPEFWQ.js";p();import{spawn as h}from"child_process";function g(e=process.pid,i="SIGTERM",r=!0,s){k(e,i,r,s??(n=>{n&&m(`Failed to kill process ${e}: ${n}`)}))}function k(e,i,r,s){let t=typeof e=="number"?e.toString():e;if(!/^\d+$/.test(t))if(s){s(new Error("pid must be a number"));return}else throw new Error("pid must be a number");let n={};n[t]=[];let o=new Set;switch(o.add(t),process.platform){case"win32":{h("taskkill",["/pid",t,"/T","/F"]).on("close",u=>{s&&(u===0?s():s(new Error(`taskkill exited with code ${u}`)))});break}case"darwin":l(t,n,o,function(f){return h("pgrep",["-lfP",f])},function(){w(n,i,t,r,s)});break;default:l(t,n,o,function(f){return h("ps",["-o","pid command","--no-headers","--ppid",f])},function(){w(n,i,t,r,s)});break}}function w(e,i,r,s,t){let n=new Set;try{Object.keys(e).forEach(function(o){e[o].forEach(function(f){n.has(f)||(E(f,i),n.add(f))}),o===r&&s&&!n.has(o)&&(E(o,i),n.add(o))})}catch(o){if(t){t(o);return}else throw o}t&&t()}function E(e,i){try{process.kill(parseInt(e,10),i)}catch(r){if(r.code!=="ESRCH")throw r}}function l(e,i,r,s,t){let n=s(e),o="";n.stdout?.on("data",function(u){let a=u.toString("ascii");o+=a});let f=u=>{if(r.delete(e),u!==0){if(r.size===0){t();return}return}o.trim().split(`
|
|
2
2
|
`).forEach(function(a){let d=a.match(/^(\d+)\s(.*)$/);if(d){let c=d[1],$=d[2];i[e].push(c),i[c]=[],m(`Killing process ${c}: ${$}`),r.add(c),l(c,i,r,s,t)}})};n.on("close",f)}export{g as a};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as m,d as f,e as p}from"./chunk-
|
|
1
|
+
import{c as m,d as f,e as p}from"./chunk-J2ZES5K5.js";import{d as c,f as w,j as T}from"./chunk-7ZIO3X22.js";import{g as d}from"./chunk-JGN7YG5X.js";import{B as u}from"./chunk-YYLEWVO6.js";import{d as l}from"./chunk-AUZCENYI.js";import{U as i}from"./chunk-BXDZX3BS.js";import{g as s}from"./chunk-VKWPEFWQ.js";s();async function A(e,r){let n=await m(e),t=new p(r.filter),a=e.storeFqdn;if(t.any())return f(a,n,t)[0];let y=r.header??"",h=n.map(o=>{let S=o.id.toString()===d()?" [current]":"";return{value:async()=>o,label:`${o.name}${S}`,group:i(o.role)}});return r.create&&h.unshift(g(e)),(await u({message:y,choices:h}))()}async function B(e,r){return(await m(e)).find(t=>t.id.toString()===r)}async function C(e,r){let n=await m(e),t=new p(r),a=e.storeFqdn;return t.any()?f(a,n,t):[]}function g(e){return{value:async()=>{let r=c,n=await w("Name of the new theme"),t=await T({name:n,role:r},e);if(!t)throw new l("The theme could not be created.");return t},label:"[Create a new theme]",group:i(c)}}export{A as a,B as b,C as c};
|