@shopify/cli 4.8.0 → 4.8.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/analytics-32PK45SE.js +1 -0
- package/dist/{analytics-OOT5AB52.js → analytics-TQHJN5PY.js} +1 -1
- package/dist/bootstrap.js +1 -1
- package/dist/{chunk-GRSF7456.js → chunk-22JJHQVU.js} +1 -1
- package/dist/{chunk-T4AA6TSF.js → chunk-2BHYBR2F.js} +1 -1
- package/dist/{chunk-DASVZTAX.js → chunk-2R6KOKWG.js} +1 -1
- package/dist/{chunk-A6BMJISP.js → chunk-32IIURQB.js} +1 -1
- package/dist/{chunk-G5XIGN5D.js → chunk-33PLVLCE.js} +1 -1
- package/dist/{chunk-YESGYUEL.js → chunk-36OXWMXZ.js} +1 -1
- package/dist/{chunk-TEY4LRY7.js → chunk-3A2HLI4D.js} +1 -1
- package/dist/{chunk-ZH44BDUR.js → chunk-3ACZB27E.js} +1 -1
- package/dist/{chunk-XUYVJEZG.js → chunk-3FTP36HH.js} +1 -1
- package/dist/{chunk-QERQARMC.js → chunk-3GAN6KS6.js} +1 -1
- package/dist/{chunk-OV6SRRXR.js → chunk-3LBHSZSR.js} +1 -1
- package/dist/chunk-3NVQXPTU.js +1 -0
- package/dist/{chunk-T7PJDT5O.js → chunk-3NYK63U4.js} +1 -1
- package/dist/{chunk-FUYDGK33.js → chunk-3R7OHZ4C.js} +1 -1
- package/dist/{chunk-T4QWK5GG.js → chunk-4ARQFW35.js} +1 -1
- package/dist/{chunk-OVV5YGKN.js → chunk-4ASQQTCD.js} +1 -1
- package/dist/chunk-4IG7WG6V.js +1 -0
- package/dist/{chunk-FJ6F4XRV.js → chunk-4QAM7ROJ.js} +1 -1
- package/dist/{chunk-O7DZXO3O.js → chunk-4QXDDAMD.js} +2 -2
- package/dist/{chunk-NW6NUGN7.js → chunk-562EV2EJ.js} +1 -1
- package/dist/{chunk-UAETNFN4.js → chunk-565SON6A.js} +1 -1
- package/dist/{chunk-E6N4PZZR.js → chunk-5AMPXLKT.js} +1 -1
- package/dist/{chunk-VD4XJ6BX.js → chunk-5CC4QYN4.js} +1 -1
- package/dist/{chunk-P57P7UAN.js → chunk-5G2W7QKA.js} +1 -1
- package/dist/{chunk-OZL5FTT7.js → chunk-5PWJTOWK.js} +1 -1
- package/dist/{chunk-IKUSLRGD.js → chunk-5THZTE44.js} +1 -1
- package/dist/{chunk-6RQOEPEC.js → chunk-5U4UTFA4.js} +1 -1
- package/dist/{chunk-7ISJRIPT.js → chunk-6633X2JU.js} +1 -1
- package/dist/{chunk-MYQUYU4U.js → chunk-6HMTAB2V.js} +1 -1
- package/dist/{chunk-2AK44UYM.js → chunk-6JC2PM43.js} +1 -1
- package/dist/{chunk-BZ73NV3L.js → chunk-6T5AZZUI.js} +1 -1
- package/dist/{chunk-CIWKN4HF.js → chunk-6U4BOZ73.js} +1 -1
- package/dist/{chunk-YSAFHVV6.js → chunk-6USL7BKQ.js} +1 -1
- package/dist/{chunk-YD2VQEN5.js → chunk-7CPYFKFK.js} +1 -1
- package/dist/{chunk-72ZY3KTF.js → chunk-7DGVNVW3.js} +1 -1
- package/dist/{chunk-GNBRCK7L.js → chunk-7DJNASBC.js} +1 -1
- package/dist/{chunk-YNDIZCD2.js → chunk-7DLMETRR.js} +1 -1
- package/dist/{chunk-CULTZLC4.js → chunk-7JG3CKDE.js} +1 -1
- package/dist/{chunk-SYLHT42O.js → chunk-7USNGNVI.js} +1 -1
- package/dist/{chunk-HP64ZTEJ.js → chunk-AICVQH4V.js} +1 -1
- package/dist/{chunk-3JXPOOFV.js → chunk-AINDVTMY.js} +3 -3
- package/dist/{chunk-NNZXKFOS.js → chunk-AVX7CIDJ.js} +1 -1
- package/dist/{chunk-CEYIZC3M.js → chunk-AXLLN6DZ.js} +1 -1
- package/dist/{chunk-PATTG7YZ.js → chunk-AXMSJ46T.js} +1 -1
- package/dist/{chunk-Q5KVMLBK.js → chunk-B3I7OMRN.js} +1 -1
- package/dist/{chunk-7HFHL5SO.js → chunk-BHDFVO2R.js} +1 -1
- package/dist/{chunk-2CIZE537.js → chunk-BKYTBTQ5.js} +1 -1
- package/dist/{chunk-7LWUHQIF.js → chunk-BMDCOBUR.js} +1 -1
- package/dist/{chunk-VSDRNYA5.js → chunk-CKZOLGWI.js} +1 -1
- package/dist/{chunk-S2TLBBSS.js → chunk-CSAVYME2.js} +1 -1
- package/dist/{chunk-XUUAKGEX.js → chunk-D2R7HPCT.js} +1 -1
- package/dist/{chunk-QOV43E26.js → chunk-DQVNW6EQ.js} +1 -1
- package/dist/{chunk-VXEYO3ZP.js → chunk-DS7OKDQN.js} +1 -1
- package/dist/chunk-E3FZRPNL.js +1 -0
- package/dist/{chunk-AWUX36VG.js → chunk-E7I5YT53.js} +1 -1
- package/dist/{chunk-HFSCXTJQ.js → chunk-EDHR546O.js} +1 -1
- package/dist/{chunk-IBI5UCJO.js → chunk-EIBQRJTQ.js} +1 -1
- package/dist/{chunk-Q6ADIMJM.js → chunk-F2DO3R6R.js} +1 -1
- package/dist/{chunk-WYBTC356.js → chunk-F5BTQI5W.js} +1 -1
- package/dist/{chunk-7T6M7FAC.js → chunk-FH36PGZH.js} +12 -12
- package/dist/{chunk-MNOQAXJW.js → chunk-FM6VJLE7.js} +1 -1
- package/dist/{chunk-HB347DXT.js → chunk-FZUPL5YO.js} +1 -1
- package/dist/{chunk-YKL3BLWC.js → chunk-GCTCRKET.js} +1 -1
- package/dist/{chunk-WBYAGS6B.js → chunk-GTIBT4V6.js} +1 -1
- package/dist/{chunk-K42WBNJQ.js → chunk-GVEJO3WM.js} +1 -1
- package/dist/{chunk-VFM2KQRM.js → chunk-GYFRTLML.js} +4 -4
- package/dist/{chunk-Z5WPP6ME.js → chunk-GZEPWYMP.js} +1 -1
- package/dist/{chunk-JX7FYWPO.js → chunk-H6HILX7D.js} +1 -1
- package/dist/{chunk-Z65E4UAP.js → chunk-H7IQZNKR.js} +1 -1
- package/dist/{chunk-TFBRVLDN.js → chunk-HEIZ3RSD.js} +1 -1
- package/dist/{chunk-2XDUJQQN.js → chunk-HEWKCSY7.js} +3 -3
- package/dist/{chunk-5N6HNQQ5.js → chunk-HFRWZQOF.js} +1 -1
- package/dist/{chunk-N65F7ET2.js → chunk-HKSRCMQ7.js} +1 -1
- package/dist/{chunk-Q5JX23QU.js → chunk-HZDEDEAS.js} +1 -1
- package/dist/{chunk-OEG3N5PG.js → chunk-ILHEVBNU.js} +1 -1
- package/dist/{chunk-6BDAJ6UD.js → chunk-IMSPA67L.js} +1 -1
- package/dist/{chunk-OMHR423H.js → chunk-IPSY5EEL.js} +1 -1
- package/dist/{chunk-NGLMZYS7.js → chunk-J3PS4JF2.js} +2 -2
- package/dist/{chunk-OGBZTY2G.js → chunk-JDEOBIXA.js} +1 -1
- package/dist/{chunk-Y5PRPHLQ.js → chunk-JLR6X5NA.js} +1 -1
- package/dist/{chunk-KWVOJWO7.js → chunk-JVXKDM2E.js} +1 -1
- package/dist/{chunk-KDU7VW3L.js → chunk-KAAC4VIW.js} +1 -1
- package/dist/{chunk-36ROOKQB.js → chunk-KEUMU5TQ.js} +1 -1
- package/dist/{chunk-ULRJDKWQ.js → chunk-KPJRLS53.js} +1 -1
- package/dist/{chunk-VYDSOAV4.js → chunk-L6OBJDYK.js} +1 -1
- package/dist/{chunk-PG5YNPJB.js → chunk-LC2BDU4B.js} +1 -1
- package/dist/{chunk-LANUJ7LX.js → chunk-LEPENRGG.js} +1 -1
- package/dist/{chunk-TUVDJ3PG.js → chunk-LH7KQZDD.js} +1 -1
- package/dist/{chunk-YFINLODF.js → chunk-LIH7CQO7.js} +1 -1
- package/dist/{chunk-EX5GVHGE.js → chunk-LJO22Z6S.js} +1 -1
- package/dist/{chunk-FOREMLFZ.js → chunk-LQGF3RKX.js} +1 -1
- package/dist/{chunk-NILETICC.js → chunk-LTRJWOI6.js} +1 -1
- package/dist/chunk-MA6QRENS.js +1 -0
- package/dist/{chunk-N75VOJHO.js → chunk-MNTJZ6JO.js} +1 -1
- package/dist/{chunk-F3NYCSXT.js → chunk-NQRSFMS7.js} +1 -1
- package/dist/{chunk-4ZNV5YSL.js → chunk-NV4SPMQS.js} +1 -1
- package/dist/{chunk-2EAFYCCS.js → chunk-O2X6EVXQ.js} +1 -1
- package/dist/{chunk-HHN6KZXX.js → chunk-OBRMBYTG.js} +1 -1
- package/dist/{chunk-6MWWJZFN.js → chunk-ODFOSJU3.js} +1 -1
- package/dist/{chunk-GAYKYEIM.js → chunk-OJE7S6D4.js} +1 -1
- package/dist/{chunk-742XXXGL.js → chunk-OTVZU5AQ.js} +1 -1
- package/dist/{chunk-EB574SY6.js → chunk-OYFNB5RY.js} +1 -1
- package/dist/{chunk-QTFUYKMF.js → chunk-PCL4UWAE.js} +1 -1
- package/dist/{chunk-OZMQ2EJB.js → chunk-PGBXHL2G.js} +1 -1
- package/dist/{chunk-F6X6OXXB.js → chunk-PJTRZSH4.js} +1 -1
- package/dist/{chunk-FDBHQLFK.js → chunk-PPC3RJDZ.js} +1 -1
- package/dist/{chunk-XH5YGJQR.js → chunk-PROWADZL.js} +1 -1
- package/dist/{chunk-S5FOQY35.js → chunk-PSH4QKUX.js} +1 -1
- package/dist/{chunk-BWJIZYAG.js → chunk-PSUNX2YX.js} +1 -1
- package/dist/{chunk-RXQJCJDV.js → chunk-PSYQTFPK.js} +1 -1
- package/dist/{chunk-XF2KTEID.js → chunk-PVZE65R7.js} +1 -1
- package/dist/{chunk-OBYQSIYU.js → chunk-QH7QOLZK.js} +1 -1
- package/dist/{chunk-UAFEFKAQ.js → chunk-QMYCJ2TM.js} +1 -1
- package/dist/{chunk-H6XEESUN.js → chunk-QPT6DUMC.js} +1 -1
- package/dist/{chunk-E55KS3GZ.js → chunk-R4YJM7KY.js} +1 -1
- package/dist/{chunk-2KGPH7YG.js → chunk-RAOMLN5A.js} +1 -1
- package/dist/{chunk-NROVZETL.js → chunk-RHJLAYNK.js} +1 -1
- package/dist/{chunk-3DCN3N23.js → chunk-RNFZJQVV.js} +1 -1
- package/dist/{chunk-FX3L344E.js → chunk-RRQYOGEA.js} +1 -1
- package/dist/{chunk-LUKQ5HLC.js → chunk-S5FGFQHD.js} +1 -1
- package/dist/{chunk-5L63PRJL.js → chunk-SAKMJGXL.js} +1 -1
- package/dist/{chunk-ZYX7UHCQ.js → chunk-SEGZQCXZ.js} +1 -1
- package/dist/{chunk-NQK2VCDA.js → chunk-SIVRBIKH.js} +1 -1
- package/dist/{chunk-H2TQ4ODI.js → chunk-T24RA3WI.js} +1 -1
- package/dist/{chunk-U2DWBZK2.js → chunk-T74ECTO7.js} +1 -1
- package/dist/{chunk-NE3ZFSMS.js → chunk-TBEG57SV.js} +1 -1
- package/dist/{chunk-IT4HYLTY.js → chunk-TCP4OG3D.js} +1 -1
- package/dist/{chunk-J4T73EAS.js → chunk-TQNGFSCI.js} +1 -1
- package/dist/{chunk-CX75OKZK.js → chunk-TVQVZHNP.js} +1 -1
- package/dist/{chunk-6CXG3XLP.js → chunk-U42P3F7Y.js} +1 -1
- package/dist/{chunk-YLXPYXQP.js → chunk-U63A4OUA.js} +1 -1
- package/dist/{chunk-GCY7LPEF.js → chunk-U7ELUEH2.js} +1 -1
- package/dist/{chunk-R7T3LYJL.js → chunk-UBJYXNCN.js} +1 -1
- package/dist/{chunk-YPWHD3NL.js → chunk-UBX3HUMH.js} +1 -1
- package/dist/{chunk-QTJCCOAG.js → chunk-UCJ3NHJH.js} +1 -1
- package/dist/{chunk-FEDVVYK2.js → chunk-UMZG254H.js} +1 -1
- package/dist/{chunk-2O224ZPO.js → chunk-UPTF2HK6.js} +1 -1
- package/dist/{chunk-GRPKF5ZB.js → chunk-UXL2A5UK.js} +1 -1
- package/dist/chunk-V6UCVTJT.js +7 -0
- package/dist/{chunk-R6ICQT2D.js → chunk-VFQW2QL2.js} +1 -1
- package/dist/{chunk-DX3JLOUA.js → chunk-VM6EBNGR.js} +1 -1
- package/dist/{chunk-67Z34HN5.js → chunk-VPRDI4TT.js} +1 -1
- package/dist/{chunk-NHAUJWEG.js → chunk-VRO6QBVN.js} +1 -1
- package/dist/{chunk-Q5LIJGT7.js → chunk-WIBPVYPN.js} +1 -1
- package/dist/{chunk-YEVGLC5X.js → chunk-WJEVB67Y.js} +1 -1
- package/dist/{chunk-XHKWITLA.js → chunk-WLGEAJBU.js} +1 -1
- package/dist/{chunk-PP4L2JJ6.js → chunk-WSJ5PUK6.js} +1 -1
- package/dist/{chunk-XOCB4KNX.js → chunk-WT2KJHUO.js} +1 -1
- package/dist/{chunk-ZDRIQC7O.js → chunk-WVQZOLZJ.js} +1 -1
- package/dist/{chunk-JWRK5KLD.js → chunk-X3KYRBGE.js} +1 -1
- package/dist/{chunk-FDYW3UQC.js → chunk-X4JCATEE.js} +1 -1
- package/dist/{chunk-C4YLE3NS.js → chunk-XH66VYZA.js} +1 -1
- package/dist/{chunk-M2XHIN57.js → chunk-XNKAPGJD.js} +1 -1
- package/dist/{chunk-C3RUVXG2.js → chunk-XNP7PMGC.js} +1 -1
- package/dist/{chunk-E5FXOLQO.js → chunk-XRVMKP53.js} +3 -3
- package/dist/{chunk-IARCMH7G.js → chunk-XSUX2XAW.js} +1 -1
- package/dist/{chunk-VVZSYHDG.js → chunk-XZUL2HVC.js} +1 -1
- package/dist/{chunk-YZMY2CTU.js → chunk-Y6DYQWQK.js} +1 -1
- package/dist/{chunk-ZZRFG6ME.js → chunk-YAA7OGRM.js} +1 -1
- package/dist/{chunk-NBFMP5XQ.js → chunk-YMS6RVE5.js} +1 -1
- package/dist/{chunk-Z4AFEO36.js → chunk-YUNINHOR.js} +1 -1
- package/dist/{chunk-ZL5LU4U2.js → chunk-YY2JHCIG.js} +1 -1
- package/dist/{chunk-Y47C3LSX.js → chunk-YZKBG7UZ.js} +1 -1
- package/dist/{chunk-U53OLUOE.js → chunk-ZJ6DWT36.js} +1 -1
- package/dist/{chunk-JIYSCWCG.js → chunk-ZLMXR2XV.js} +1 -1
- package/dist/{chunk-5SEEDOQ5.js → chunk-ZYEGQSF5.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/doctor/instructions.js +1 -1
- package/dist/cli/commands/app/doctor.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/subscription-migrations/cancel.js +1 -1
- package/dist/cli/commands/app/subscription-migrations/list.js +1 -1
- package/dist/cli/commands/app/subscription-migrations/schedule.js +1 -1
- package/dist/cli/commands/app/subscription-migrations/status.js +1 -1
- package/dist/cli/commands/app/subscription-migrations/unschedule.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/send-analytics.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-ASDCTDQ4.js → conf-store-K65PEQF6.js} +1 -1
- package/dist/{deprecations-VBQV7Q4O.js → deprecations-2SG4PB2W.js} +1 -1
- package/dist/dist-L4A3SGNF.js +1 -0
- package/dist/dist-XXCZFNRC.js +1 -0
- package/dist/{environments-HSTNEQRG.js → environments-B4OWPMPR.js} +1 -1
- package/dist/{error-2LZYKRMA.js → error-5YQYW3V2.js} +1 -1
- package/dist/error-handler-3PBXTHYY.js +1 -0
- package/dist/{fs-BJHNJDDK.js → fs-FM6YDE2U.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 +1 -1
- package/dist/{is-global-6SCOAJVG.js → is-global-3FFDTC2G.js} +1 -1
- package/dist/{local-PZWPRFU7.js → local-W73VIWHZ.js} +1 -1
- package/dist/{metadata-VVBHB3HL.js → metadata-OGQEI47Y.js} +1 -1
- package/dist/{node-package-manager-ETYQN7OM.js → node-package-manager-GSHLPD5X.js} +1 -1
- package/dist/notifications-system-HQNQUKLF.js +1 -0
- package/dist/os-6HP4QG7V.js +1 -0
- package/dist/{output-74VDGYJD.js → output-MG7RJ37P.js} +1 -1
- package/dist/{system-P5QIJALL.js → system-3HTWCGQH.js} +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/dist/{ui-H5I5YVKV.js → ui-T22J7MQF.js} +1 -1
- package/dist/upgrade-FZ35KTBW.js +1 -0
- package/dist/{version-J2PYO6M5.js → version-KWF3XRSN.js} +1 -1
- package/dist/version-LJOGYA5H.js +1 -0
- package/dist/{workerd-X4TGHEG3.js → workerd-RB5ZS43X.js} +1 -1
- package/oclif.manifest.json +1 -1
- package/package.json +7 -7
- package/dist/analytics-3IIUBZ3B.js +0 -1
- package/dist/chunk-JG4HH54Q.js +0 -1
- package/dist/chunk-N6RBRPGW.js +0 -7
- package/dist/chunk-UZARYOLN.js +0 -1
- package/dist/chunk-VASGXHYA.js +0 -1
- package/dist/chunk-WGAFCKGD.js +0 -1
- package/dist/dist-FZLOAKU7.js +0 -1
- package/dist/dist-HTY6UHG5.js +0 -1
- package/dist/error-handler-PIGEJ7BT.js +0 -1
- package/dist/notifications-system-652OG5KL.js +0 -1
- package/dist/os-7D6NT4O3.js +0 -1
- package/dist/upgrade-34HSYBXI.js +0 -1
- package/dist/version-EKXEAF6Q.js +0 -1
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import{a as oe}from"./chunk-7ISJRIPT.js";import{d as ie}from"./chunk-YEVGLC5X.js";import{a as ne,b as se}from"./chunk-2XDUJQQN.js";import{Aa as U,Ba as V,D as w,K as C,T as L,b as K,ya as Q}from"./chunk-3JXPOOFV.js";import{A as N,B as I,E as te,a as W,x as ee}from"./chunk-YFINLODF.js";import{e as x}from"./chunk-YZMY2CTU.js";import{d as X,e as Z}from"./chunk-NHAUJWEG.js";import{h as F,k as re}from"./chunk-BWJIZYAG.js";import{a as Ie}from"./chunk-CTNBSUVU.js";import{Ab as h,Fa as J,Ua as _,qb as R,sb as l}from"./chunk-VFM2KQRM.js";import{d as z,f as k,i as Y,q as $}from"./chunk-773TIA5M.js";import{e as Te,g as f}from"./chunk-VKWPEFWQ.js";f();var T=Te(Ie(),1);var q={path:T.Flags.string({description:"The path where you want to run the command. Defaults to the current working directory.",env:"SHOPIFY_FLAG_PATH",parse:async t=>{let e=k(t);return _(e)?J(e)?e:(I({headline:"The path must be a directory, not a file.",body:[`The provided path is not a directory: ${e}`,`Did you mean: ${Y(e)}`]}),process.exit(1)):(I({headline:"A path was explicitly provided but doesn't exist.",body:[`Please check the path and try again: ${e}`]}),process.exit(1))},default:async()=>$(),noCacheDefault:!0}),password:T.Flags.string({description:"Password generated from the Theme Access app or an Admin API token.",env:"SHOPIFY_CLI_THEME_TOKEN"}),store:T.Flags.string({char:"s",description:"Store URL. It can be the store prefix (example) or the full myshopify.com URL (example.myshopify.com, https://example.myshopify.com).",env:"SHOPIFY_FLAG_STORE",parse:async t=>w(t)}),environment:T.Flags.string({char:"e",description:"The environment to apply to the current command.",env:"SHOPIFY_FLAG_ENVIRONMENT",multiple:!0})},ae="Wrap the value in double quotes if you're using wildcards.",qe=t=>({only:T.Flags.string({char:"o",multiple:!0,description:`${t.charAt(0).toUpperCase()+t.slice(1)} only the specified files (Multiple flags allowed). ${ae}`,env:"SHOPIFY_FLAG_ONLY"}),ignore:T.Flags.string({char:"x",multiple:!0,description:`Skip ${t}ing the specified files (Multiple flags allowed). ${ae}`,env:"SHOPIFY_FLAG_IGNORE"})});f();f();import{AsyncLocalStorage as _e}from"node:async_hooks";var pe=new _e,ce,ue,me,de;function S(){return ce??=new x({projectName:"shopify-cli-theme-conf"}),ce}function O(){return ue??=new x({projectName:"shopify-cli-development-theme-config"}),ue}function j(){return me??=new x({projectName:"shopify-cli-repl-theme-config"}),me}function D(){return de??=new x({projectName:"shopify-cli-theme-store-password"}),de}function M(t=S()){return pe.getStore()?.store??t.get("themeStore")}function fe(t,e=S()){e.set("themeStore",t)}function He(t=S()){return h(l`Getting development theme...`),O().get(v(t))}function ze(t,e=S()){h(l`Setting development theme...`),O().set(v(e),t)}function Ye(t=S()){h(l`Removing development theme...`),O().delete(v(t))}function Je(t=S()){return h(l`Getting REPL theme...`),j().get(v(t))}function We(t,e=S()){h(l`Setting REPL theme to ${t}...`),j().set(v(e),t)}function Ke(t=S()){h(l`Removing REPL theme...`),j().delete(v(t))}function Qe(t=S()){let e=v(t);return h(l`Getting storefront password for shop ${e}...`),D().get(e)}function Ve(t,e=S()){let o=v(e);h(l`Setting storefront password for shop ${o}...`),D().set(o,t)}function Xe(t=S()){let e=v(t);h(l`Removing storefront password for ${e}...`),D().delete(e)}function v(t=S()){let e=M(t);if(!e)throw new re("Theme store is not set. This indicates an unexpected issue with the CLI. Please report this to the Shopify CLI team.",["It may be possible to recover by running",{command:"shopify theme list --store <store>"},"(setting the store flag to the store you wish to use) and then running the command again."]);return e}async function he(t,e){return pe.run({store:t},e)}function le(t){let e=t.store??M();if(!e)throw Q(new F("A store is required",`Specify the store passing ${l`${R.genericShellCommand(`--${q.store.name}=example.myshopify.com`)}`.value} or set the ${l`${R.genericShellCommand(q.store.env)}`.value} environment variable.`));return fe(e),e}f();f();var Se="shopify.theme.toml",ct=new Intl.DateTimeFormat(void 0,{hour12:!1,hour:"2-digit",minute:"2-digit",second:"2-digit"}),ut=["**/.git","**/.vscode","**/.hg","**/.bzr","**/.svn","**/_darcs","**/CVS","**/*.sublime-(project|workspace)","**/.DS_Store","**/.sass-cache","**/Thumbs.db","**/desktop.ini","**/config.yml","**/node_modules/",".prettierrc.json","**/{blocks,layout,snippets}/**/*.liquid.tmp.*","**/{config,locales}/**/*.json.tmp.*","**/{sections,templates}/**/*.{liquid,json}.tmp.*"],mt=50;f();f();var B="7e9cb568cfd431c538f36d1ad3f2b4f6";var Fe="shopify-cli-store",be=240*1e3,ge;function P(){return ge??=new x({projectName:Fe}),ge}function b(t){return`${B}::${Ee(t)}`}function Ee(t){return t.replace(/\\/g,"\\\\").replace(/\./g,"\\.")}function d(t){return typeof t=="string"}function ke(t){if(!t||typeof t!="object")return;let e=t;if(typeof e.id=="number")return{id:e.id,...d(e.email)?{email:e.email}:{},...d(e.firstName)?{firstName:e.firstName}:{},...d(e.lastName)?{lastName:e.lastName}:{},...typeof e.accountOwner=="boolean"?{accountOwner:e.accountOwner}:{}}}function $e(t){if(!t||typeof t!="object")return;let e=t;if(!(!d(e.shopId)||!d(e.name)||!d(e.createdAt)))return{shopId:e.shopId,name:e.name,createdAt:e.createdAt,...d(e.placeholderAccountUuid)?{placeholderAccountUuid:e.placeholderAccountUuid}:{},...d(e.country)?{country:e.country}:{},...d(e.accessUrl)?{accessUrl:e.accessUrl}:{}}}function Pe(t){if(!t||typeof t!="object")return;let e=t;if(!d(e.store)||!d(e.clientId)||!d(e.userId)||!d(e.accessToken)||!Array.isArray(e.scopes)||!e.scopes.every(d)||!d(e.acquiredAt))return;let o=ke(e.associatedUser),r=e.kind==="preview"?"preview":"standard",n=r==="preview"?$e(e.preview):void 0;if(!(r==="preview"&&!n))return{store:e.store,clientId:e.clientId,userId:e.userId,accessToken:e.accessToken,scopes:e.scopes,acquiredAt:e.acquiredAt,...d(e.refreshToken)?{refreshToken:e.refreshToken}:{},...d(e.expiresAt)?{expiresAt:e.expiresAt}:{},...d(e.refreshTokenExpiresAt)?{refreshTokenExpiresAt:e.refreshTokenExpiresAt}:{},...o?{associatedUser:o}:{},...r==="preview"?{kind:r}:{},...n?{preview:n}:{}}}function ye(t,e,o){if(!e||typeof e!="object")return;let{sessionsByUserId:r,currentUserId:n}=e;if(!(r!==void 0||n!==void 0))return;let s=b(t);if(!r||typeof r!="object"||Array.isArray(r)||typeof n!="string"){o.delete(s);return}let a=Object.fromEntries(Object.entries(r).flatMap(([u,c])=>{let p=Pe(c);return p?[[u,p]]:[]}));if(Object.keys(a).length!==Object.keys(r).length)if(a[n])o.set(s,{currentUserId:n,sessionsByUserId:a});else{o.delete(s);return}return{currentUserId:n,sessionsByUserId:a}}function G(t,e){return ye(t,e.get(b(t)),e)}function Ce(t){return t.config?.store??{}}function we(t=P()){let e=[],o=`${B}::`;for(let[r,n]of Object.entries(Ce(t))){if(!r.startsWith(o))continue;let i=ye(r.slice(o.length),n,t),s=i?.sessionsByUserId[i.currentUserId];s&&e.push(s)}return e}function Ae(t,e=P()){let o=w(t),r=G(o,e);if(!r)return;let n=r.sessionsByUserId[r.currentUserId];if(!n){e.delete(b(o));return}return n}function wt(t,e=P()){let o=b(t.store),r=G(t.store,e),n={currentUserId:t.userId,sessionsByUserId:{...r?.sessionsByUserId??{},[t.userId]:t}};e.set(o,n)}function At(t,e,o){let r=w(t),n=typeof e=="string"?e:void 0,i=(typeof e=="string"?o:e)??P(),s=b(r);if(!n){i.delete(s);return}let a=G(r,i);if(!a)return;let{[n]:u,...c}=a.sessionsByUserId,p=Object.keys(c);if(p.length===0){i.delete(s);return}i.set(s,{currentUserId:a.currentUserId===n?p[0]:a.currentUserId,sessionsByUserId:c})}function ve(t){if(!t.expiresAt)return!1;let e=new Date(t.expiresAt).getTime();return Number.isNaN(e)?!0:e-be<Date.now()}var H=class extends se{static baseFlags=ie;environmentsFilename(){return Se}async command(e,o,r=!1,n,i){}async run(e){let o=this.constructor,r=o.multiEnvironmentsFlags,{args:n,flags:i}=await this.parse(o),s="password"in o.flags,a=(Array.isArray(i.environment)?i.environment:[i.environment]).filter(Boolean),u=r!==null&&r.some(m=>Array.isArray(m)?m.includes("store"):m==="store");if(a.length<=1){if(a[0]&&!i.store&&u)throw new F("Please provide a valid environment.");let m=s?await this.createSession(i):void 0,A=this.constructor.name.toLowerCase();if(U(`theme-command:${A}:single-env:authenticated`),i.path&&!_(i.path))throw new F(`Path does not exist: ${i.path}`);try{await this.command(i,m,!1,n)}finally{await this.logAnalyticsData(m)}return}if(r===null){N({body:"This command does not support multiple environments."});return}let{flags:c}=await this.parse(ne(o),this.argv);if("path"in c){this.errorOnGlobalPath();return}let p=await this.loadEnvironments(a,i,c),g=await this.validateEnvironments(p,r,s);"force"in o.flags&&!i.force&&!await this.showConfirmation(this.constructor.name,r,g)||await this.runConcurrent(g.valid)}storeAuthScopes(){}async loadEnvironments(e,o,r){let n=new Map;for(let i of e){let s=await oe(i,"shopify.theme.toml",{from:o.path,silent:!0});s?.store&&typeof s.store=="string"&&(s.store=w(s.store)),s?.path&&typeof s.path=="string"&&(s.path=k(s.path)),n.set(i,{flags:{...o,...s,...r,environment:[i]},validationFlags:{...s,...r}})}return n}async validateEnvironments(e,o,r){let n=[],i=[],s=r?this.storeAuthSessionsForTheme(Array.from(e.values()).map(({validationFlags:u})=>u)):new Map,a=Array.from(e.entries()).map(([u,{flags:c,validationFlags:p}])=>({environmentName:u,flags:c,validationFlags:p,storeAuthSession:this.storeAuthSessionFromCache(p,s)}));for(let{environmentName:u,flags:c,validationFlags:p,storeAuthSession:g}of a){let y=this.validConfig(p,o,u,g);if(y!==!0){let m=y.join(", ");i.push({environment:u,reason:`Missing flags: ${m}`});continue}n.push({environment:u,flags:c,requiresAuth:r,storeAuthSession:g})}return{valid:n,invalid:i}}async showConfirmation(e,o,r){let s={message:[`Run ${e.toLowerCase()} in the following environments?`],confirmationMessage:"Yes, proceed",cancellationMessage:"Cancel"},a=[...r.valid.map(({environment:u,flags:c})=>{let p=o.map(g=>{let y=Array.isArray(g)?g.find(m=>c[m]):g;if(y==="password")return"password";if(y==="path"&&typeof c.path=="string"){let m=c.path.split(/[/\\]/);if(m.length===1)return`path: ${c.path}`;let A=m[0]===""?`/${m[1]}`:m[0],E=m.at(-1);return`path: ${A}/.../${E}`}return y&&`${y}: ${c[y]}`}).join(", ");return[u,{subdued:p||"No flags required"}]}),...r.invalid.map(({environment:u,reason:c})=>[u,{error:`Skipping | ${c}`}])];return s.infoTable={Environment:a},r.invalid.length>0&&(s.confirmationMessage="Proceed anyway (will skip invalid environments)"),te(s)}async runConcurrent(e){let o=new W,r=e.map(s=>s.flags.store),n=new Set(r),i=r.length===n.size?[e]:this.createSequentialGroups(e);for(let s of i)await ee({processes:s.map(({environment:a,flags:u,requiresAuth:c,storeAuthSession:p})=>({prefix:a,action:async(g,y,m)=>{try{let A=u.store;await he(A,async()=>{let E=c?await this.createSession(u,p):void 0,xe=this.constructor.name.toLowerCase();U(`theme-command:${xe}:multi-env:authenticated`);try{await this.command(u,E,!0,{},{stdout:g,stderr:y})}finally{await this.logAnalyticsData(E)}})}catch(A){A instanceof Error&&(A.message=`Environment ${a} failed:
|
|
1
|
+
import{a as oe}from"./chunk-6633X2JU.js";import{d as ie}from"./chunk-WJEVB67Y.js";import{a as ne,b as se}from"./chunk-HEWKCSY7.js";import{Aa as U,Ba as V,D as w,K as C,T as L,b as K,ya as Q}from"./chunk-AINDVTMY.js";import{A as N,B as I,E as te,a as W,x as ee}from"./chunk-LIH7CQO7.js";import{e as x}from"./chunk-Y6DYQWQK.js";import{d as X,e as Z}from"./chunk-VRO6QBVN.js";import{h as F,k as re}from"./chunk-PSUNX2YX.js";import{a as Ie}from"./chunk-CTNBSUVU.js";import{Ab as h,Fa as J,Ua as _,qb as R,sb as l}from"./chunk-GYFRTLML.js";import{d as z,f as k,i as Y,q as $}from"./chunk-773TIA5M.js";import{e as Te,g as f}from"./chunk-VKWPEFWQ.js";f();var T=Te(Ie(),1);var q={path:T.Flags.string({description:"The path where you want to run the command. Defaults to the current working directory.",env:"SHOPIFY_FLAG_PATH",parse:async t=>{let e=k(t);return _(e)?J(e)?e:(I({headline:"The path must be a directory, not a file.",body:[`The provided path is not a directory: ${e}`,`Did you mean: ${Y(e)}`]}),process.exit(1)):(I({headline:"A path was explicitly provided but doesn't exist.",body:[`Please check the path and try again: ${e}`]}),process.exit(1))},default:async()=>$(),noCacheDefault:!0}),password:T.Flags.string({description:"Password generated from the Theme Access app or an Admin API token.",env:"SHOPIFY_CLI_THEME_TOKEN"}),store:T.Flags.string({char:"s",description:"Store URL. It can be the store prefix (example) or the full myshopify.com URL (example.myshopify.com, https://example.myshopify.com).",env:"SHOPIFY_FLAG_STORE",parse:async t=>w(t)}),environment:T.Flags.string({char:"e",description:"The environment to apply to the current command.",env:"SHOPIFY_FLAG_ENVIRONMENT",multiple:!0})},ae="Wrap the value in double quotes if you're using wildcards.",qe=t=>({only:T.Flags.string({char:"o",multiple:!0,description:`${t.charAt(0).toUpperCase()+t.slice(1)} only the specified files (Multiple flags allowed). ${ae}`,env:"SHOPIFY_FLAG_ONLY"}),ignore:T.Flags.string({char:"x",multiple:!0,description:`Skip ${t}ing the specified files (Multiple flags allowed). ${ae}`,env:"SHOPIFY_FLAG_IGNORE"})});f();f();import{AsyncLocalStorage as _e}from"node:async_hooks";var pe=new _e,ce,ue,me,de;function S(){return ce??=new x({projectName:"shopify-cli-theme-conf"}),ce}function O(){return ue??=new x({projectName:"shopify-cli-development-theme-config"}),ue}function j(){return me??=new x({projectName:"shopify-cli-repl-theme-config"}),me}function D(){return de??=new x({projectName:"shopify-cli-theme-store-password"}),de}function M(t=S()){return pe.getStore()?.store??t.get("themeStore")}function fe(t,e=S()){e.set("themeStore",t)}function He(t=S()){return h(l`Getting development theme...`),O().get(v(t))}function ze(t,e=S()){h(l`Setting development theme...`),O().set(v(e),t)}function Ye(t=S()){h(l`Removing development theme...`),O().delete(v(t))}function Je(t=S()){return h(l`Getting REPL theme...`),j().get(v(t))}function We(t,e=S()){h(l`Setting REPL theme to ${t}...`),j().set(v(e),t)}function Ke(t=S()){h(l`Removing REPL theme...`),j().delete(v(t))}function Qe(t=S()){let e=v(t);return h(l`Getting storefront password for shop ${e}...`),D().get(e)}function Ve(t,e=S()){let o=v(e);h(l`Setting storefront password for shop ${o}...`),D().set(o,t)}function Xe(t=S()){let e=v(t);h(l`Removing storefront password for ${e}...`),D().delete(e)}function v(t=S()){let e=M(t);if(!e)throw new re("Theme store is not set. This indicates an unexpected issue with the CLI. Please report this to the Shopify CLI team.",["It may be possible to recover by running",{command:"shopify theme list --store <store>"},"(setting the store flag to the store you wish to use) and then running the command again."]);return e}async function he(t,e){return pe.run({store:t},e)}function le(t){let e=t.store??M();if(!e)throw Q(new F("A store is required",`Specify the store passing ${l`${R.genericShellCommand(`--${q.store.name}=example.myshopify.com`)}`.value} or set the ${l`${R.genericShellCommand(q.store.env)}`.value} environment variable.`));return fe(e),e}f();f();var Se="shopify.theme.toml",ct=new Intl.DateTimeFormat(void 0,{hour12:!1,hour:"2-digit",minute:"2-digit",second:"2-digit"}),ut=["**/.git","**/.vscode","**/.hg","**/.bzr","**/.svn","**/_darcs","**/CVS","**/*.sublime-(project|workspace)","**/.DS_Store","**/.sass-cache","**/Thumbs.db","**/desktop.ini","**/config.yml","**/node_modules/",".prettierrc.json","**/{blocks,layout,snippets}/**/*.liquid.tmp.*","**/{config,locales}/**/*.json.tmp.*","**/{sections,templates}/**/*.{liquid,json}.tmp.*"],mt=50;f();f();var B="7e9cb568cfd431c538f36d1ad3f2b4f6";var Fe="shopify-cli-store",be=240*1e3,ge;function P(){return ge??=new x({projectName:Fe}),ge}function b(t){return`${B}::${Ee(t)}`}function Ee(t){return t.replace(/\\/g,"\\\\").replace(/\./g,"\\.")}function d(t){return typeof t=="string"}function ke(t){if(!t||typeof t!="object")return;let e=t;if(typeof e.id=="number")return{id:e.id,...d(e.email)?{email:e.email}:{},...d(e.firstName)?{firstName:e.firstName}:{},...d(e.lastName)?{lastName:e.lastName}:{},...typeof e.accountOwner=="boolean"?{accountOwner:e.accountOwner}:{}}}function $e(t){if(!t||typeof t!="object")return;let e=t;if(!(!d(e.shopId)||!d(e.name)||!d(e.createdAt)))return{shopId:e.shopId,name:e.name,createdAt:e.createdAt,...d(e.placeholderAccountUuid)?{placeholderAccountUuid:e.placeholderAccountUuid}:{},...d(e.country)?{country:e.country}:{},...d(e.accessUrl)?{accessUrl:e.accessUrl}:{}}}function Pe(t){if(!t||typeof t!="object")return;let e=t;if(!d(e.store)||!d(e.clientId)||!d(e.userId)||!d(e.accessToken)||!Array.isArray(e.scopes)||!e.scopes.every(d)||!d(e.acquiredAt))return;let o=ke(e.associatedUser),r=e.kind==="preview"?"preview":"standard",n=r==="preview"?$e(e.preview):void 0;if(!(r==="preview"&&!n))return{store:e.store,clientId:e.clientId,userId:e.userId,accessToken:e.accessToken,scopes:e.scopes,acquiredAt:e.acquiredAt,...d(e.refreshToken)?{refreshToken:e.refreshToken}:{},...d(e.expiresAt)?{expiresAt:e.expiresAt}:{},...d(e.refreshTokenExpiresAt)?{refreshTokenExpiresAt:e.refreshTokenExpiresAt}:{},...o?{associatedUser:o}:{},...r==="preview"?{kind:r}:{},...n?{preview:n}:{}}}function ye(t,e,o){if(!e||typeof e!="object")return;let{sessionsByUserId:r,currentUserId:n}=e;if(!(r!==void 0||n!==void 0))return;let s=b(t);if(!r||typeof r!="object"||Array.isArray(r)||typeof n!="string"){o.delete(s);return}let a=Object.fromEntries(Object.entries(r).flatMap(([u,c])=>{let p=Pe(c);return p?[[u,p]]:[]}));if(Object.keys(a).length!==Object.keys(r).length)if(a[n])o.set(s,{currentUserId:n,sessionsByUserId:a});else{o.delete(s);return}return{currentUserId:n,sessionsByUserId:a}}function G(t,e){return ye(t,e.get(b(t)),e)}function Ce(t){return t.config?.store??{}}function we(t=P()){let e=[],o=`${B}::`;for(let[r,n]of Object.entries(Ce(t))){if(!r.startsWith(o))continue;let i=ye(r.slice(o.length),n,t),s=i?.sessionsByUserId[i.currentUserId];s&&e.push(s)}return e}function Ae(t,e=P()){let o=w(t),r=G(o,e);if(!r)return;let n=r.sessionsByUserId[r.currentUserId];if(!n){e.delete(b(o));return}return n}function wt(t,e=P()){let o=b(t.store),r=G(t.store,e),n={currentUserId:t.userId,sessionsByUserId:{...r?.sessionsByUserId??{},[t.userId]:t}};e.set(o,n)}function At(t,e,o){let r=w(t),n=typeof e=="string"?e:void 0,i=(typeof e=="string"?o:e)??P(),s=b(r);if(!n){i.delete(s);return}let a=G(r,i);if(!a)return;let{[n]:u,...c}=a.sessionsByUserId,p=Object.keys(c);if(p.length===0){i.delete(s);return}i.set(s,{currentUserId:a.currentUserId===n?p[0]:a.currentUserId,sessionsByUserId:c})}function ve(t){if(!t.expiresAt)return!1;let e=new Date(t.expiresAt).getTime();return Number.isNaN(e)?!0:e-be<Date.now()}var H=class extends se{static baseFlags=ie;environmentsFilename(){return Se}async command(e,o,r=!1,n,i){}async run(e){let o=this.constructor,r=o.multiEnvironmentsFlags,{args:n,flags:i}=await this.parse(o),s="password"in o.flags,a=(Array.isArray(i.environment)?i.environment:[i.environment]).filter(Boolean),u=r!==null&&r.some(m=>Array.isArray(m)?m.includes("store"):m==="store");if(a.length<=1){if(a[0]&&!i.store&&u)throw new F("Please provide a valid environment.");let m=s?await this.createSession(i):void 0,A=this.constructor.name.toLowerCase();if(U(`theme-command:${A}:single-env:authenticated`),i.path&&!_(i.path))throw new F(`Path does not exist: ${i.path}`);try{await this.command(i,m,!1,n)}finally{await this.logAnalyticsData(m)}return}if(r===null){N({body:"This command does not support multiple environments."});return}let{flags:c}=await this.parse(ne(o),this.argv);if("path"in c){this.errorOnGlobalPath();return}let p=await this.loadEnvironments(a,i,c),g=await this.validateEnvironments(p,r,s);"force"in o.flags&&!i.force&&!await this.showConfirmation(this.constructor.name,r,g)||await this.runConcurrent(g.valid)}storeAuthScopes(){}async loadEnvironments(e,o,r){let n=new Map;for(let i of e){let s=await oe(i,"shopify.theme.toml",{from:o.path,silent:!0});s?.store&&typeof s.store=="string"&&(s.store=w(s.store)),s?.path&&typeof s.path=="string"&&(s.path=k(s.path)),n.set(i,{flags:{...o,...s,...r,environment:[i]},validationFlags:{...s,...r}})}return n}async validateEnvironments(e,o,r){let n=[],i=[],s=r?this.storeAuthSessionsForTheme(Array.from(e.values()).map(({validationFlags:u})=>u)):new Map,a=Array.from(e.entries()).map(([u,{flags:c,validationFlags:p}])=>({environmentName:u,flags:c,validationFlags:p,storeAuthSession:this.storeAuthSessionFromCache(p,s)}));for(let{environmentName:u,flags:c,validationFlags:p,storeAuthSession:g}of a){let y=this.validConfig(p,o,u,g);if(y!==!0){let m=y.join(", ");i.push({environment:u,reason:`Missing flags: ${m}`});continue}n.push({environment:u,flags:c,requiresAuth:r,storeAuthSession:g})}return{valid:n,invalid:i}}async showConfirmation(e,o,r){let s={message:[`Run ${e.toLowerCase()} in the following environments?`],confirmationMessage:"Yes, proceed",cancellationMessage:"Cancel"},a=[...r.valid.map(({environment:u,flags:c})=>{let p=o.map(g=>{let y=Array.isArray(g)?g.find(m=>c[m]):g;if(y==="password")return"password";if(y==="path"&&typeof c.path=="string"){let m=c.path.split(/[/\\]/);if(m.length===1)return`path: ${c.path}`;let A=m[0]===""?`/${m[1]}`:m[0],E=m.at(-1);return`path: ${A}/.../${E}`}return y&&`${y}: ${c[y]}`}).join(", ");return[u,{subdued:p||"No flags required"}]}),...r.invalid.map(({environment:u,reason:c})=>[u,{error:`Skipping | ${c}`}])];return s.infoTable={Environment:a},r.invalid.length>0&&(s.confirmationMessage="Proceed anyway (will skip invalid environments)"),te(s)}async runConcurrent(e){let o=new W,r=e.map(s=>s.flags.store),n=new Set(r),i=r.length===n.size?[e]:this.createSequentialGroups(e);for(let s of i)await ee({processes:s.map(({environment:a,flags:u,requiresAuth:c,storeAuthSession:p})=>({prefix:a,action:async(g,y,m)=>{try{let A=u.store;await he(A,async()=>{let E=c?await this.createSession(u,p):void 0,xe=this.constructor.name.toLowerCase();U(`theme-command:${xe}:multi-env:authenticated`);try{await this.command(u,E,!0,{},{stdout:g,stderr:y})}finally{await this.logAnalyticsData(E)}})}catch(A){A instanceof Error&&(A.message=`Environment ${a} failed:
|
|
2
2
|
|
|
3
3
|
${A.message}`,I({body:[A.message]}))}}})),abortSignal:o.signal,showTimestamps:!0,renderOptions:{stdout:process.stderr}})}createSequentialGroups(e){let o=[];return e.forEach(r=>{let n=o.find(i=>!i.some(s=>s.flags.store===r.flags.store));n?n.push(r):o.push([r])}),o}async createSession(e,o){let r=le({store:e.store}),n=e.password;return n?await L(r,n):o??await this.storeAuthSessionForTheme({store:r})??await L(r,n)}async storeAuthSessionForTheme(e){let o=this.storeAuthScopes();if(!o)return;let r=typeof e.store=="string"?e.store:void 0,n=e.password;if(!r||n)return;let i=w(r),s=Ae(i);if(s)return this.adminSessionFromStoreAuthSession(s,i,o)}storeAuthSessionsForTheme(e){let o=this.storeAuthScopes();if(!o)return new Map;let r=new Set(e.filter(({store:n,password:i})=>typeof n=="string"&&!i).map(({store:n})=>w(n)));return r.size===0?new Map:new Map(we().map(n=>{let i=w(n.store);if(!r.has(i))return;let s=this.adminSessionFromStoreAuthSession(n,i,o);return s?[i,s]:void 0}).filter(n=>n!==void 0))}storeAuthSessionFromCache(e,o){let r=typeof e.store=="string"?e.store:void 0,n=e.password;if(!(!r||n))return o.get(w(r))}adminSessionFromStoreAuthSession(e,o,r){if(ve(e)){h(`Ignoring stored store auth session for ${o}: it expired at ${e.expiresAt??"unknown"}.`);return}if(!this.hasRequiredStoreAuthScopes(e.scopes,r)){h(`Ignoring stored store auth session for ${o}: it is missing required scopes (has: ${e.scopes.join(", ")}; needs: ${r.join(", ")}).`);return}return h(`Using stored store auth session for ${o} (scopes: ${e.scopes.join(", ")}).`),C(e.userId),{token:e.accessToken,storeFqdn:o}}expandImpliedStoreAuthScopes(e){let o=new Set(e);for(let r of e){let n=r.match(/^(unauthenticated_)?write_(.*)$/);n&&o.add(`${n[1]??""}read_${n[2]}`)}return o}hasRequiredStoreAuthScopes(e,o){let r=this.expandImpliedStoreAuthScopes(e);return o.every(n=>r.has(n))}validConfig(e,o,r,n){let i=o.filter(s=>Array.isArray(s)?!s.some(a=>this.hasRequiredFlag(e,a,n)):!this.hasRequiredFlag(e,s,n)).map(s=>Array.isArray(s)?s.join(" or "):s);return i.length>0?(N({body:[`Missing required flags in environment configuration${r?` for ${r}`:""}:`,{list:{items:i}}]}),i):!0}hasRequiredFlag(e,o,r){return o==="password"&&r?!0:!!e[o]}errorOnGlobalPath(){let e=z($(),"shopify.theme.toml"),o=_(e);I({body:["Can't use `--path` flag with multiple environments.",...o?["Configure each environment's theme path in your shopify.theme.toml file instead."]:["Run this command from the directory containing shopify.theme.toml.","No shopify.theme.toml found in current directory."]]})}async logAnalyticsData(e){if(!e)return;let o=V();await X(()=>({store_fqdn_hash:K(e.storeFqdn),store_domain:e.storeFqdn,cmd_theme_timings:JSON.stringify(o.timings),cmd_theme_errors:JSON.stringify(o.errors),cmd_theme_retries:JSON.stringify(o.retries),cmd_theme_events:JSON.stringify(o.events)})),await Z(()=>({store_fqdn:e.storeFqdn}))}};export{B as a,we as b,Ae as c,wt as d,At as e,M as f,He as g,ze as h,Ye as i,Je as j,We as k,Ke as l,Qe as m,Ve as n,Xe as o,q as p,qe as q,le as r,ct as s,ut as t,mt as u,H as v};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{a as d}from"./chunk-YY6TFARF.js";import{a as v}from"./chunk-
|
|
1
|
+
import{a as d}from"./chunk-YY6TFARF.js";import{a as v}from"./chunk-SEGZQCXZ.js";import{a as y}from"./chunk-UXL2A5UK.js";import{p}from"./chunk-ZYEGQSF5.js";import{p as f,v as u}from"./chunk-7DJNASBC.js";import{b as l,f as m}from"./chunk-WJEVB67Y.js";import{E as c,z as s}from"./chunk-LIH7CQO7.js";import{a as g}from"./chunk-CTNBSUVU.js";import{e as b,g as r}from"./chunk-VKWPEFWQ.js";r();r();async function w(o,t,i){let e=await v(o,{header:"Select a theme to publish",filter:{development:!1,live:!1,theme:t.theme}}),h=d({...e,role:"live"},o);!t.force&&!i&&!await c({message:`Do you want to make '${e.name}' the new live theme on ${o.storeFqdn}?`,confirmationMessage:`Yes, make '${e.name}' the new live theme`,cancellationMessage:"No, cancel publish"})||(await p(e.id,o),s({headline:t.environment?`Environment: ${t.environment}`:void 0,body:["The theme",...y(e),"is now live at",{link:{label:h,url:h}},{char:"."}]}))}var n=b(g(),1);var a=class extends u{static summary="Set a remote theme as the live theme.";static 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{a as d,b as f,c as g,d as x,g as C}from"./chunk-
|
|
1
|
+
import{a as d,b as f,c as g,d as x,g as C}from"./chunk-6HMTAB2V.js";import{a as c}from"./chunk-3NVQXPTU.js";import{a as l}from"./chunk-36OXWMXZ.js";import{wa as m}from"./chunk-YAA7OGRM.js";import{b as p}from"./chunk-WJEVB67Y.js";import{z as s}from"./chunk-LIH7CQO7.js";import{a as I}from"./chunk-CTNBSUVU.js";import{e as y,g as r}from"./chunk-VKWPEFWQ.js";r();var h=y(I(),1);var o=class u extends c{static description="Import dashboard-managed extensions into your app.";static flags={...p,...l,"client-id":h.Flags.string({hidden:!1,description:"The Client ID of your app.",env:"SHOPIFY_FLAG_CLIENT_ID",exclusive:["config"]})};async run(){let{flags:i}=await this.parse(u),e=await m({directory:i.path,clientId:i["client-id"],forceRelink:i.reset,userProvidedConfigName:i.config}),t=await C({developerPlatformClient:e.developerPlatformClient,apiKey:e.remoteApp.apiKey,organizationId:e.remoteApp.organizationId,extensionTypes:g}),n=d(t);if(n.length===0)s({headline:["No extensions to migrate."]});else{let a=await f(n);await x({...e,extensions:t,extensionTypes:a.extensionTypes,buildExtensionConfig:a.buildExtensionConfig})}return{app:e.app}}};export{o as a};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{f as y}from"./chunk-
|
|
1
|
+
import{f as y}from"./chunk-WJEVB67Y.js";import{b as g}from"./chunk-HEWKCSY7.js";import{C as u,F as l,G as f,H as m,I as d,O as p}from"./chunk-AINDVTMY.js";import{D as S,J as h}from"./chunk-LIH7CQO7.js";import{j as n}from"./chunk-Y6DYQWQK.js";import{a as v}from"./chunk-CTNBSUVU.js";import{zb as w}from"./chunk-GYFRTLML.js";import{e as N,g as i}from"./chunk-VKWPEFWQ.js";i();i();var r="NEW_LOGIN";function C(s,t){let e=[],o=s[t];if(o)for(let[c,L]of Object.entries(o))e.push({label:L.identity.alias??c,value:c});return e}async function b(){let s=await p({},{forceNewSession:!0}),t=await f(s.userId);if(!t){let e=await h({message:"Enter an alias for this account (e.g. your email or a nickname)"});return await m(s.userId,e),e}return t}async function x(){let s=await l(),t=await u(),e=[];return s&&e.push(...C(s,t)),e.length>0&&e.push({label:"Log in with a different account",value:r}),e}async function A(s){if(s){let o=await d(s);if(o)return n(o),s}let t=await x(),e=r;return t.length>0&&(e=await S({message:"Which account would you like to use?",choices:t})),e===r?b():(n(e),t.find(o=>o.value===e)?.label??e)}var I=N(v(),1);var a=class s extends g{static description="Logs you in to your Shopify account.";static flags={alias:y(I.Flags.string({description:"Alias of an existing session you want to use.",env:"SHOPIFY_FLAG_AUTH_ALIAS"}))};async run(){let{flags:t}=await this.parse(s),e=await A(t.alias);w(`Current account: ${e}.`)}};export{a};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{a as f}from"./chunk-
|
|
1
|
+
import{a as f}from"./chunk-SEGZQCXZ.js";import{a as p}from"./chunk-UXL2A5UK.js";import{f as c,o as v}from"./chunk-ZYEGQSF5.js";import{p as l,v as d}from"./chunk-7DJNASBC.js";import{b as s,f as h}from"./chunk-WJEVB67Y.js";import{z as a}from"./chunk-LIH7CQO7.js";import{a as w}from"./chunk-CTNBSUVU.js";import{e as F,g as r}from"./chunk-VKWPEFWQ.js";r();r();async function u(e,n){let m=e.name??await c("New name for the theme"),i=await f(n,{header:"Select a theme to rename",filter:{theme:e.theme,development:e.development,live:e.live}});await v(i.id,{name:m},n),a({body:[...e.environment?[{subdued:`Environment: ${e.environment}
|
|
2
2
|
|
|
3
3
|
`}]:[],"The theme",...p(i),"was renamed to",`'${m}'`]})}var t=F(w(),1);var o=class extends d{static summary="Renames an existing theme.";static descriptionWithMarkdown=`Renames a theme in your store.
|
|
4
4
|
|