@shopify/cli 3.94.3 → 4.1.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/README.md +2 -2
- package/bin/run.js +5 -1
- package/dist/analytics-5TEIW43T.js +1 -0
- package/dist/analytics-GG7CYCGL.js +1 -0
- package/dist/bootstrap.d.ts +5 -0
- package/dist/bootstrap.js +3 -0
- package/dist/chunk-2AJ5FI2K.js +7 -0
- package/dist/chunk-2GK56X53.js +1 -0
- package/dist/chunk-3D4JXJPS.js +2 -0
- package/dist/chunk-3NBK56IK.js +1 -0
- package/dist/chunk-3TNEIDOD.js +1 -0
- package/dist/chunk-3VZEETAV.js +1 -0
- package/dist/chunk-4DCQNGUV.js +19 -0
- package/dist/chunk-4IC626OL.js +1 -0
- package/dist/chunk-4LNCYIS3.js +1 -0
- package/dist/chunk-4ZGSSQC6.js +1 -0
- package/dist/chunk-54CAKCYR.js +144 -0
- package/dist/chunk-5CH3B62S.js +2 -0
- package/dist/chunk-5UHQVR2Z.js +1 -0
- package/dist/chunk-5WVAHE5E.js +1 -0
- package/dist/chunk-5Y7GIF2W.js +1 -0
- package/dist/chunk-67MH4AXG.js +1 -0
- package/dist/chunk-6CYMJ76C.js +9 -0
- package/dist/chunk-6G6TMKXF.js +28 -0
- package/dist/chunk-6HBRBQAN.js +6 -0
- package/dist/chunk-6ITDI2SD.js +1 -0
- package/dist/chunk-6M3ZYNGO.js +451 -0
- package/dist/chunk-6RE2SNCU.js +6 -0
- package/dist/chunk-6SF3ZETE.js +1 -0
- package/dist/chunk-6WL4GA2M.js +15 -0
- package/dist/chunk-75VPUOC5.js +1 -0
- package/dist/chunk-76R52ODR.js +1 -0
- package/dist/chunk-7ESSIN27.js +567 -0
- package/dist/chunk-7NH7CHVI.js +6 -0
- package/dist/chunk-7QIOUDCX.js +8 -0
- package/dist/chunk-7UYZQN4V.js +18 -0
- package/dist/chunk-7ZT57XT7.js +2 -0
- package/dist/chunk-AGNMOFJS.js +1 -0
- package/dist/chunk-BS3BKORT.js +16 -0
- package/dist/chunk-C2IK2HY3.js +4 -0
- package/dist/chunk-C7BTJ32Z.js +1 -0
- package/dist/chunk-CBXSPL4W.js +1 -0
- package/dist/chunk-CEIQFLCN.js +1 -0
- package/dist/chunk-CERXUPGC.js +14 -0
- package/dist/chunk-DCPBRWVC.js +1 -0
- package/dist/chunk-DN2IE3VY.js +1 -0
- package/dist/chunk-DRFGABEB.js +1 -0
- package/dist/chunk-E3EMHAJB.js +1 -0
- package/dist/chunk-EKXY5COY.js +1 -0
- package/dist/chunk-EQU4MUQJ.js +1 -0
- package/dist/chunk-F2QU6WWX.js +1 -0
- package/dist/chunk-FFQ5EWII.js +294 -0
- package/dist/chunk-FKMC5OFF.js +1 -0
- package/dist/chunk-FQWB2F75.js +3 -0
- package/dist/chunk-FUOIGXI4.js +1 -0
- package/dist/chunk-FYFNUDOC.js +19 -0
- package/dist/chunk-G4BPGWJC.js +1 -0
- package/dist/chunk-GVQIPEZT.js +1 -0
- package/dist/chunk-GZS44BUW.js +102 -0
- package/dist/chunk-HIBX234C.js +6 -0
- package/dist/chunk-HRUGYZZ4.js +2 -0
- package/dist/chunk-HUIJMGVJ.js +586 -0
- package/dist/chunk-HZA6IAA4.js +1 -0
- package/dist/chunk-IU2ZQ6TE.js +2 -0
- package/dist/chunk-IX5ICOBV.js +7 -0
- package/dist/chunk-IZ3C5J7G.js +5 -0
- package/dist/chunk-JAO53IH2.js +1 -0
- package/dist/chunk-JCL2RRU6.js +1 -0
- package/dist/chunk-JQJBBXMX.js +17 -0
- package/dist/chunk-JUVAGMIH.js +1 -0
- package/dist/chunk-JXW374CL.js +359 -0
- package/dist/chunk-K2WUCOQJ.js +32 -0
- package/dist/chunk-K6CTUBFC.js +12 -0
- package/dist/chunk-KHSYW7I4.js +1 -0
- package/dist/chunk-KHTV6PBV.js +12 -0
- package/dist/chunk-KKTW6ZCA.js +5 -0
- package/dist/chunk-KLMDWDT2.js +1 -0
- package/dist/chunk-KN3WTTHZ.js +1 -0
- package/dist/chunk-KR6QDE7D.js +2 -0
- package/dist/chunk-KZOBF55B.js +1 -0
- package/dist/chunk-L2MGAEV3.js +6 -0
- package/dist/chunk-LDGAHMS7.js +159 -0
- package/dist/chunk-M2D7USAX.js +1 -0
- package/dist/chunk-M2ZHFKPN.js +6 -0
- package/dist/chunk-M3RYUB22.js +1 -0
- package/dist/chunk-M56NDIMD.js +1 -0
- package/dist/chunk-MCVRONUY.js +1 -0
- package/dist/chunk-MHWV5RQV.js +10 -0
- package/dist/chunk-MOA33ZFO.js +1 -0
- package/dist/chunk-MWGBTOO3.js +1 -0
- package/dist/chunk-MWY3A7O3.js +4 -0
- package/dist/chunk-N5PQPIBF.js +374 -0
- package/dist/chunk-NF2ABOOU.js +1 -0
- package/dist/chunk-NMBBTTIH.js +2 -0
- package/dist/chunk-NPEVESCV.js +3 -0
- package/dist/chunk-OBEWZXOQ.js +2 -0
- package/dist/chunk-OCOY5MV2.js +1 -0
- package/dist/chunk-OLZHWPZP.js +1 -0
- package/dist/chunk-OTY24J2W.js +1 -0
- package/dist/chunk-OY3PNHPZ.js +103 -0
- package/dist/chunk-P6XE4MH5.js +1 -0
- package/dist/chunk-PAP22IQO.js +264 -0
- package/dist/chunk-PD5ZHJWI.js +1 -0
- package/dist/chunk-PIBY5DDZ.js +1 -0
- package/dist/chunk-PYVAWAUO.js +5 -0
- package/dist/chunk-Q33IBIVJ.js +1 -0
- package/dist/chunk-Q4T2T2QE.js +15 -0
- package/dist/chunk-QA23HIH4.js +1 -0
- package/dist/chunk-QBSKKQBN.js +1 -0
- package/dist/chunk-QFWIDATO.js +1 -0
- package/dist/chunk-QSTEVZFQ.js +1 -0
- package/dist/chunk-S6EJHWJL.js +1 -0
- package/dist/chunk-SIMFNECG.js +1 -0
- package/dist/chunk-SXTMSGUE.js +1 -0
- package/dist/chunk-T542UQBY.js +1 -0
- package/dist/chunk-TQ6HYDVC.js +1 -0
- package/dist/chunk-TYZXGSHO.js +3 -0
- package/dist/chunk-UHJYPEY2.js +1 -0
- package/dist/chunk-UJVH7FZS.js +1 -0
- package/dist/chunk-UJXUSRQK.js +1 -0
- package/dist/chunk-ULFWK45W.js +64 -0
- package/dist/chunk-ULQG3XQS.js +1 -0
- package/dist/chunk-URZPVSJZ.js +559 -0
- package/dist/chunk-UWJ73J4B.js +1 -0
- package/dist/chunk-UXVZ2P63.js +1411 -0
- package/dist/chunk-UYXEA3Y6.js +1 -0
- package/dist/chunk-VBUZWRUL.js +1 -0
- package/dist/chunk-VICYNG2W.js +1 -0
- package/dist/chunk-WDC3KIZT.js +2 -0
- package/dist/chunk-WFXRSKRK.js +1 -0
- package/dist/chunk-WSDN25F5.js +1 -0
- package/dist/chunk-XEFQQPL4.js +1 -0
- package/dist/chunk-XITQULK4.js +3 -0
- package/dist/chunk-XONFGLJQ.js +847 -0
- package/dist/chunk-XOTA6JTZ.js +11 -0
- package/dist/chunk-XR6GMMEU.js +1 -0
- package/dist/chunk-XULPJ6UG.js +1 -0
- package/dist/chunk-XXVEHDVO.js +1 -0
- package/dist/chunk-Y7JGYGV7.js +1 -0
- package/dist/chunk-YOZNRLFC.js +1 -0
- package/dist/chunk-YTNDFQJT.js +3 -0
- package/dist/chunk-Z35BTAM6.js +2 -0
- package/dist/chunk-ZBRRJDGW.js +1 -0
- package/dist/chunk-ZGK3LGCH.js +4 -0
- package/dist/chunk-ZR76GGZ6.js +5 -0
- package/dist/chunk-ZSBA6VIC.js +1 -0
- package/dist/chunk-ZTMSBSYD.js +1 -0
- package/dist/cli/commands/app/app-logs/sources.js +2 -0
- package/dist/cli/commands/app/build.js +1 -0
- package/dist/cli/commands/app/bulk/cancel.js +1 -0
- package/dist/cli/commands/app/bulk/execute.js +9 -0
- package/dist/cli/commands/app/bulk/status.js +5 -0
- package/dist/cli/commands/app/config/link.js +4 -0
- package/dist/cli/commands/app/config/pull.js +1 -0
- package/dist/cli/commands/app/config/use.js +1 -0
- package/dist/cli/commands/app/config/validate.js +3 -0
- package/dist/cli/commands/app/demo/watcher.js +1 -0
- package/dist/cli/commands/app/deploy.js +22 -0
- package/dist/cli/commands/app/dev/clean.js +5 -0
- package/dist/cli/commands/app/dev.js +320 -0
- package/dist/cli/commands/app/env/pull.js +11 -0
- package/dist/cli/commands/app/env/show.js +1 -0
- package/dist/cli/commands/app/execute.js +1 -0
- package/dist/cli/commands/app/function/build.js +1 -0
- package/dist/cli/commands/app/function/info.js +16 -0
- package/dist/cli/commands/app/function/replay.js +5 -0
- package/dist/cli/commands/app/function/run.js +1 -0
- package/dist/cli/commands/app/function/schema.js +1 -0
- package/dist/cli/commands/app/function/typegen.js +1 -0
- package/dist/cli/commands/app/generate/extension.js +5 -0
- package/dist/cli/commands/app/import-custom-data-definitions.js +4 -0
- package/dist/cli/commands/app/import-extensions.js +1 -0
- package/dist/cli/commands/app/info.js +11 -0
- package/dist/cli/commands/app/init.js +10 -0
- package/dist/cli/commands/app/logs.js +2 -0
- package/dist/cli/commands/app/release.js +4 -0
- package/dist/cli/commands/app/versions/list.js +1 -0
- package/dist/cli/commands/app/webhook/trigger.js +25 -0
- package/dist/cli/commands/auth/login.js +1 -20
- package/dist/cli/commands/auth/logout.js +1 -12
- package/dist/cli/commands/cache/clear.js +1 -11
- package/dist/cli/commands/config/autoupgrade/constants.d.ts +0 -1
- package/dist/cli/commands/config/autoupgrade/constants.js +1 -6
- package/dist/cli/commands/config/autoupgrade/off.js +1 -22
- package/dist/cli/commands/config/autoupgrade/on.js +1 -22
- package/dist/cli/commands/config/autoupgrade/status.js +1 -30
- package/dist/cli/commands/debug/command-flags.js +1 -79
- package/dist/cli/commands/docs/generate.d.ts +0 -8
- package/dist/cli/commands/docs/generate.js +1 -157
- package/dist/cli/commands/doctor-release/doctor-release.js +1 -25
- package/dist/cli/commands/doctor-release/theme/index.js +1 -56
- package/dist/cli/commands/help.js +1 -26
- package/dist/cli/commands/kitchen-sink/async.js +1 -16
- package/dist/cli/commands/kitchen-sink/index.js +1 -21
- package/dist/cli/commands/kitchen-sink/prompts.js +1 -16
- package/dist/cli/commands/kitchen-sink/static.js +1 -16
- package/dist/cli/commands/notifications/generate.js +1 -11
- package/dist/cli/commands/notifications/list.js +1 -33
- package/dist/cli/commands/organization/list.js +1 -0
- package/dist/cli/commands/search.js +1 -27
- package/dist/cli/commands/theme/check.js +1 -0
- package/dist/cli/commands/theme/console.js +15 -0
- package/dist/cli/commands/theme/delete.js +7 -0
- package/dist/cli/commands/theme/dev.js +26 -0
- package/dist/cli/commands/theme/duplicate.js +32 -0
- package/dist/cli/commands/theme/info.js +1 -0
- package/dist/cli/commands/theme/init.js +8 -0
- package/dist/cli/commands/theme/language-server.js +1 -0
- package/dist/cli/commands/theme/list.js +1 -0
- package/dist/cli/commands/theme/metafields/pull.js +3 -0
- package/dist/cli/commands/theme/open.js +8 -0
- package/dist/cli/commands/theme/package.js +7 -0
- package/dist/cli/commands/theme/preview.js +1 -0
- package/dist/cli/commands/theme/profile.js +3 -0
- package/dist/cli/commands/theme/publish.js +7 -0
- package/dist/cli/commands/theme/pull.js +3 -0
- package/dist/cli/commands/theme/push.js +28 -0
- package/dist/cli/commands/theme/rename.js +6 -0
- package/dist/cli/commands/theme/share.js +3 -0
- package/dist/cli/commands/upgrade.js +1 -17
- package/dist/cli/commands/version.js +1 -10
- package/dist/command-registry.d.ts +8 -0
- package/dist/command-registry.js +1 -0
- package/dist/conf-store-BMZFATRQ.js +1 -0
- package/dist/custom-oclif-loader-DVFFWCBV.js +1 -0
- package/dist/deprecations-7LHRXPXU.js +1 -0
- package/dist/dist-LDXPBYSZ.js +1 -0
- package/dist/dist-V63ILV6L.js +1 -0
- package/dist/environments-5X7S2O5U.js +1 -0
- package/dist/error-ZRLNNGIQ.js +1 -0
- package/dist/error-handler-PRZFHPRG.js +1 -0
- package/dist/fs-H7V6IRSH.js +1 -0
- package/dist/hooks/app-init.d.ts +9 -0
- package/dist/hooks/app-init.js +1 -0
- package/dist/hooks/did-you-mean.d.ts +1 -0
- package/dist/hooks/did-you-mean.js +1 -0
- package/dist/hooks/hydrogen-init.d.ts +7 -0
- package/dist/hooks/hydrogen-init.js +1 -0
- package/dist/hooks/plugin-plugins.d.ts +1 -0
- package/dist/hooks/plugin-plugins.js +1 -0
- package/dist/hooks/postrun.js +1 -1
- package/dist/hooks/prerun.js +1 -1
- package/dist/hooks/public-metadata.d.ts +1 -0
- package/dist/hooks/public-metadata.js +1 -0
- package/dist/hooks/sensitive-metadata.d.ts +1 -0
- package/dist/hooks/sensitive-metadata.js +1 -0
- package/dist/hooks/tunnel-provider.d.ts +1 -0
- package/dist/hooks/tunnel-provider.js +1 -0
- package/dist/hooks/tunnel-start.d.ts +1 -0
- package/dist/hooks/tunnel-start.js +1 -0
- package/dist/http-proxy-node16-Q5DZMBHC.js +38 -0
- package/dist/index.js +254 -3668
- package/dist/is-global-IOWPCT2U.js +1 -0
- package/dist/latest-version-EFWBOTWM.js +49 -0
- package/dist/lib-5L7UKDEK.js +1 -0
- package/dist/lib-C3VO2BQW.js +1 -0
- package/dist/lib-QB6I6CTC.js +1 -0
- package/dist/local-MTKXSZ3I.js +1 -0
- package/dist/local-storage-CYEL4MXF.js +1 -0
- package/dist/metadata-NOVBMKLM.js +1 -0
- package/dist/{morph-DQREIZD2.js → morph-EMYAITFM.js} +1 -1
- package/dist/node-package-manager-N5CVNHA3.js +1 -0
- package/dist/notifications-system-YX2GPLDW.js +1 -0
- package/dist/npa-ICFSA3NL.js +1 -0
- package/dist/output-Q46DT46U.js +1 -0
- package/dist/{path-HUAU3YBW.js → path-CWUNINMX.js} +1 -1
- package/dist/{prettier-PGDJ5B7I.js → prettier-NVRHEAFO.js} +1 -1
- package/dist/system-E6Q3OBX3.js +1 -0
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/dist/typescript-K5CWIA4V.js +1 -0
- package/dist/ui-WRS2IDPP.js +1 -0
- package/dist/upgrade-TKUN2M5P.js +1 -0
- package/dist/version-5W5RVAPA.js +1 -0
- package/dist/version-BQJ3FPXD.js +1 -0
- package/dist/workerd-GOK6GWEX.js +18 -0
- package/oclif.manifest.json +5136 -5945
- package/package.json +17 -41
- package/dist/chunk-45T5XUIM.js +0 -1
- package/dist/chunk-52KHWFYF.js +0 -1
- package/dist/chunk-66TIGB4U.js +0 -415
- package/dist/chunk-675GKVCB.js +0 -3
- package/dist/chunk-7ES6PV7M.js +0 -847
- package/dist/chunk-BF7JM4FH.js +0 -396
- package/dist/chunk-FU2Y2M3M.js +0 -5
- package/dist/chunk-IDQ4X47Z.js +0 -3
- package/dist/chunk-JBSYWYIP.js +0 -2
- package/dist/chunk-PBKIXB7L.js +0 -63
- package/dist/chunk-SVA22NZQ.js +0 -607
- package/dist/error-handler-LC7FITE7.js +0 -1
- package/dist/http-proxy-node16-TTURN6MD.js +0 -38
- package/dist/lib-3WHF5XD3.js +0 -1
- package/dist/local-TWIGLQ7X.js +0 -1
- package/dist/node-package-manager-3UCLJPGW.js +0 -1
- package/dist/npa-OKDXXRCU.js +0 -1
- package/dist/ui-UYE67X4Y.js +0 -1
- package/dist/workerd-37BZZEVW.js +0 -18
- /package/dist/{chunk-KADPE3PY.js → chunk-7MUKLZOL.js} +0 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{b as n}from"./chunk-XULPJ6UG.js";import{l as i}from"./chunk-M56NDIMD.js";import{g as t}from"./chunk-VPRTJUIN.js";t();t();var o=class extends i.ExtendableError{constructor(e,p){super(p),this.type=e}},d=r=>async()=>r,f=r=>async e=>e.provider!==r.provider?n(new o("invalid-provider")):r.action(e.port);var a="cloudflare",l=d({name:a});export{o as a,f as b,a as c,l as d};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{c as N,g}from"./chunk-VPRTJUIN.js";var B=N((V,L)=>{g();function d(e){return Array.isArray(e)?e:[e]}var a="",R=" ",u="\\",v=/^\s+$/,G=/(?:[^\\]|^)\\$/,I=/^\\!/,O=/^\\#/,T=/\r?\n/g,x=/^\.*\/|^\.+$/,l="/",C="node-ignore";typeof Symbol<"u"&&(C=Symbol.for("node-ignore"));var A=C,y=(e,t,s)=>Object.defineProperty(e,t,{value:s}),X=/([0-z])-([0-z])/g,P=()=>!1,b=e=>e.replace(X,(t,s,r)=>s.charCodeAt(0)<=r.charCodeAt(0)?t:a),m=e=>{let{length:t}=e;return e.slice(0,t-t%2)},w=[[/^\uFEFF/,()=>a],[/((?:\\\\)*?)(\\?\s+)$/,(e,t,s)=>t+(s.indexOf("\\")===0?R:a)],[/(\\+?)\s/g,(e,t)=>{let{length:s}=t;return t.slice(0,s-s%2)+R}],[/[\\$.|*+(){^]/g,e=>`\\${e}`],[/(?!\\)\?/g,()=>"[^/]"],[/^\//,()=>"^"],[/\//g,()=>"\\/"],[/^\^*\\\*\\\*\\\//,()=>"^(?:.*\\/)?"],[/^(?=[^^])/,function(){return/\/(?!$)/.test(this)?"^":"(?:^|\\/)"}],[/\\\/\\\*\\\*(?=\\\/|$)/g,(e,t,s)=>t+6<s.length?"(?:\\/[^\\/]+)*":"\\/.+"],[/(^|[^\\]+)(\\\*)+(?=.+)/g,(e,t,s)=>{let r=s.replace(/\\\*/g,"[^\\/]*");return t+r}],[/\\\\\\(?=[$.|*+(){^])/g,()=>u],[/\\\\/g,()=>u],[/(\\)?\[([^\]/]*?)(\\*)($|\])/g,(e,t,s,r,n)=>t===u?`\\[${s}${m(r)}${n}`:n==="]"&&r.length%2===0?`[${b(s)}${r}]`:"[]"],[/(?:[^*])$/,e=>/\/$/.test(e)?`${e}$`:`${e}(?=$|\\/$)`],[/(\^|\\\/)?\\\*$/,(e,t)=>`${t?`${t}[^/]+`:"[^/]*"}(?=$|\\/$)`]],$=Object.create(null),F=(e,t)=>{let s=$[e];return s||(s=w.reduce((r,[n,i])=>r.replace(n,i.bind(e)),e),$[e]=s),t?new RegExp(s,"i"):new RegExp(s)},f=e=>typeof e=="string",D=e=>e&&f(e)&&!v.test(e)&&!G.test(e)&&e.indexOf("#")!==0,H=e=>e.split(T),E=class{constructor(t,s,r,n){this.origin=t,this.pattern=s,this.negative=r,this.regex=n}},k=(e,t)=>{let s=e,r=!1;e.indexOf("!")===0&&(r=!0,e=e.substr(1)),e=e.replace(I,"!").replace(O,"#");let n=F(e,t);return new E(s,e,r,n)},p=(e,t)=>{throw new t(e)},o=(e,t,s)=>f(e)?e?o.isNotRelative(e)?s(`path should be a \`path.relative()\`d string, but got "${t}"`,RangeError):!0:s("path must not be empty",TypeError):s(`path must be a string, but got \`${t}\``,TypeError),S=e=>x.test(e);o.isNotRelative=S;o.convert=e=>e;var h=class{constructor({ignorecase:t=!0,ignoreCase:s=t,allowRelativePaths:r=!1}={}){y(this,A,!0),this._rules=[],this._ignoreCase=s,this._allowRelativePaths=r,this._initCache()}_initCache(){this._ignoreCache=Object.create(null),this._testCache=Object.create(null)}_addPattern(t){if(t&&t[A]){this._rules=this._rules.concat(t._rules),this._added=!0;return}if(D(t)){let s=k(t,this._ignoreCase);this._added=!0,this._rules.push(s)}}add(t){return this._added=!1,d(f(t)?H(t):t).forEach(this._addPattern,this),this._added&&this._initCache(),this}addPattern(t){return this.add(t)}_testOne(t,s){let r=!1,n=!1;return this._rules.forEach(i=>{let{negative:c}=i;if(n===c&&r!==n||c&&!r&&!n&&!s)return;i.regex.test(t)&&(r=!c,n=c)}),{ignored:r,unignored:n}}_test(t,s,r,n){let i=t&&o.convert(t);return o(i,t,this._allowRelativePaths?P:p),this._t(i,s,r,n)}_t(t,s,r,n){if(t in s)return s[t];if(n||(n=t.split(l)),n.pop(),!n.length)return s[t]=this._testOne(t,r);let i=this._t(n.join(l)+l,s,r,n);return s[t]=i.ignored?i:this._testOne(t,r)}ignores(t){return this._test(t,this._ignoreCache,!1).ignored}createFilter(){return t=>!this.ignores(t)}filter(t){return d(t).filter(this.createFilter())}test(t){return this._test(t,this._testCache,!0)}},_=e=>new h(e),z=e=>o(e&&o.convert(e),e,P);_.isPathValid=z;_.default=_;L.exports=_;if(typeof process<"u"&&(process.env&&process.env.IGNORE_TEST_WIN32||process.platform==="win32")){let e=s=>/^\\\\\?\\/.test(s)||/["<>|\u0000-\u001F]+/u.test(s)?s:s.replace(/\\/g,"/");o.convert=e;let t=/^[a-z]:\//i;o.isNotRelative=s=>t.test(s)||S(s)}});export{B as a};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{d as i,i as r,p as s}from"./chunk-IU2ZQ6TE.js";import{g as c}from"./chunk-VPRTJUIN.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-V63ILV6L.js");return o?.[n]}if(t==="@oclif/plugin-commands"){let{commands:o}=await import("./lib-5L7UKDEK.js");return o[n]}if(t==="@oclif/plugin-plugins"){let{commands:o}=await import("./lib-QB6I6CTC.js");return o[n]}if(t==="@shopify/plugin-did-you-mean"){let{DidYouMeanCommands:o}=await import("./dist-LDXPBYSZ.js");return o[n]}}export{D as a};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{g as W}from"./chunk-VPRTJUIN.js";W();function v(){}v.prototype={diff:function(e,r){var i,o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},t=o.callback;typeof o=="function"&&(t=o,o={}),this.options=o;var l=this;function f(u){return t?(setTimeout(function(){t(void 0,u)},0),!0):u}e=this.castInput(e),r=this.castInput(r),e=this.removeEmpty(this.tokenize(e)),r=this.removeEmpty(this.tokenize(r));var s=r.length,d=e.length,p=1,a=s+d;o.maxEditLength&&(a=Math.min(a,o.maxEditLength));var m=(i=o.timeout)!==null&&i!==void 0?i:1/0,N=Date.now()+m,c=[{oldPos:-1,lastComponent:void 0}],w=this.extractCommon(c[0],r,e,0);if(c[0].oldPos+1>=d&&w+1>=s)return f([{value:this.join(r),count:r.length}]);var L=-1/0,g=1/0;function E(){for(var u=Math.max(L,-p);u<=Math.min(g,p);u+=2){var h=void 0,y=c[u-1],x=c[u+1];y&&(c[u-1]=void 0);var O=!1;if(x){var A=x.oldPos-u;O=x&&0<=A&&A<s}var z=y&&y.oldPos+1<d;if(!O&&!z){c[u]=void 0;continue}if(!z||O&&y.oldPos+1<x.oldPos?h=l.addToPath(x,!0,void 0,0):h=l.addToPath(y,void 0,!0,1),w=l.extractCommon(h,r,e,u),h.oldPos+1>=d&&w+1>=s)return f(D(l,h.lastComponent,r,e,l.useLongestToken));c[u]=h,h.oldPos+1>=d&&(g=Math.min(g,u-1)),w+1>=s&&(L=Math.max(L,u+1))}p++}if(t)(function u(){setTimeout(function(){if(p>a||Date.now()>N)return t();E()||u()},0)})();else for(;p<=a&&Date.now()<=N;){var T=E();if(T)return T}},addToPath:function(e,r,i,o){var t=e.lastComponent;return t&&t.added===r&&t.removed===i?{oldPos:e.oldPos+o,lastComponent:{count:t.count+1,added:r,removed:i,previousComponent:t.previousComponent}}:{oldPos:e.oldPos+o,lastComponent:{count:1,added:r,removed:i,previousComponent:t}}},extractCommon:function(e,r,i,o){for(var t=r.length,l=i.length,f=e.oldPos,s=f-o,d=0;s+1<t&&f+1<l&&this.equals(r[s+1],i[f+1]);)s++,f++,d++;return d&&(e.lastComponent={count:d,previousComponent:e.lastComponent}),e.oldPos=f,s},equals:function(e,r){return this.options.comparator?this.options.comparator(e,r):e===r||this.options.ignoreCase&&e.toLowerCase()===r.toLowerCase()},removeEmpty:function(e){for(var r=[],i=0;i<e.length;i++)e[i]&&r.push(e[i]);return r},castInput:function(e){return e},tokenize:function(e){return e.split("")},join:function(e){return e.join("")}};function D(n,e,r,i,o){for(var t=[],l;e;)t.push(e),l=e.previousComponent,delete e.previousComponent,e=l;t.reverse();for(var f=0,s=t.length,d=0,p=0;f<s;f++){var a=t[f];if(a.removed){if(a.value=n.join(i.slice(p,p+a.count)),p+=a.count,f&&t[f-1].added){var N=t[f-1];t[f-1]=t[f],t[f]=N}}else{if(!a.added&&o){var m=r.slice(d,d+a.count);m=m.map(function(w,L){var g=i[p+L];return g.length>w.length?g:w}),a.value=n.join(m)}else a.value=n.join(r.slice(d,d+a.count));d+=a.count,a.added||(p+=a.count)}}var c=t[s-1];return s>1&&typeof c.value=="string"&&(c.added||c.removed)&&n.equals("",c.value)&&(t[s-2].value+=c.value,t.pop()),t}var P=new v;var C=/^[A-Za-z\xC0-\u02C6\u02C8-\u02D7\u02DE-\u02FF\u1E00-\u1EFF]+$/,M=/\S/,q=new v;q.equals=function(n,e){return this.options.ignoreCase&&(n=n.toLowerCase(),e=e.toLowerCase()),n===e||this.options.ignoreWhitespace&&!M.test(n)&&!M.test(e)};q.tokenize=function(n){for(var e=n.split(/([^\S\r\n]+|[()[\]{}'"\r\n]|\b)/),r=0;r<e.length-1;r++)!e[r+1]&&e[r+2]&&C.test(e[r])&&C.test(e[r+2])&&(e[r]+=e[r+2],e.splice(r+1,2),r--);return e};var I=new v;I.tokenize=function(n){this.options.stripTrailingCr&&(n=n.replace(/\r\n/g,`
|
|
2
|
+
`));var e=[],r=n.split(/(\n|\r\n)/);r[r.length-1]||r.pop();for(var i=0;i<r.length;i++){var o=r[i];i%2&&!this.options.newlineIsToken?e[e.length-1]+=o:(this.options.ignoreWhitespace&&(o=o.trim()),e.push(o))}return e};function j(n,e,r){return I.diff(n,e,r)}var R=new v;R.tokenize=function(n){return n.split(/(\S.+?[.!?])(?=\s+|$)/)};var $=new v;$.tokenize=function(n){return n.split(/([{}:;,]|\s+)/)};function H(n){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?H=function(e){return typeof e}:H=function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},H(n)}var J=Object.prototype.toString,F=new v;F.useLongestToken=!0;F.tokenize=I.tokenize;F.castInput=function(n){var e=this.options,r=e.undefinedReplacement,i=e.stringifyReplacer,o=i===void 0?function(t,l){return typeof l>"u"?r:l}:i;return typeof n=="string"?n:JSON.stringify(b(n,null,null,o),o," ")};F.equals=function(n,e){return v.prototype.equals.call(F,n.replace(/,([\r\n])/g,"$1"),e.replace(/,([\r\n])/g,"$1"))};function b(n,e,r,i,o){e=e||[],r=r||[],i&&(n=i(o,n));var t;for(t=0;t<e.length;t+=1)if(e[t]===n)return r[t];var l;if(J.call(n)==="[object Array]"){for(e.push(n),l=new Array(n.length),r.push(l),t=0;t<n.length;t+=1)l[t]=b(n[t],e,r,i,o);return e.pop(),r.pop(),l}if(n&&n.toJSON&&(n=n.toJSON()),H(n)==="object"&&n!==null){e.push(n),l={},r.push(l);var f=[],s;for(s in n)n.hasOwnProperty(s)&&f.push(s);for(f.sort(),t=0;t<f.length;t+=1)s=f[t],l[s]=b(n[s],e,r,i,s);e.pop(),r.pop()}else l=n;return l}var S=new v;S.tokenize=function(n){return n.slice()};S.join=S.removeEmpty=function(n){return n};export{j as a};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{g as t}from"./chunk-VPRTJUIN.js";t();function n(){return process.hrtime()}function i(r){let e=process.hrtime(r);return(e[0]*1e3+e[1]/1e6).toFixed(2)}export{n as a,i as b};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{f as b}from"./chunk-YTNDFQJT.js";import{g as m}from"./chunk-VPRTJUIN.js";m();import{performance as u}from"node:perf_hooks";function w(){return b()?"bubble":"mute-and-report"}function h(g={}){let i={sensitive:{},public:{...g}},p=t=>{Object.assign(i.public,t)},M=t=>{Object.assign(i.sensitive,t)},l=async(t,e,n)=>{let r=n==="auto"?w():n,s=async()=>{let c=await e();t(c)};if(r==="bubble")await s();else try{await s()}catch(c){let{sendErrorToBugsnag:o}=await import("./error-handler-PRZFHPRG.js");await o(c,"unexpected_error")}},a=[];return{getAllPublicMetadata:()=>({...i.public}),getAllSensitiveMetadata:()=>({...i.sensitive}),addPublicMetadata:async(t,e="auto")=>l(p,t,e),addSensitiveMetadata:async(t,e="auto")=>l(M,t,e),runWithTimer:t=>async e=>{a.push(0);let n=u.now();try{return await e()}finally{let r=u.now();r=Math.max(n,r);let s=Math.max(r-n,0),c=a.pop(),o=Math.max(s-c,0);a.length>0&&(a[a.length-1]=(a[a.length-1]??0)+s),u.measure(`${t}#measurable`,{start:n,duration:o}),u.measure(`${t}#wall`,{start:n,end:r});let d=i.public[t]||0;d+=o,i.public[t]=d}}}}var y=h({cmd_all_timing_network_ms:0,cmd_all_timing_prompts_ms:0}),{getAllPublicMetadata:S,getAllSensitiveMetadata:f,addPublicMetadata:x,addSensitiveMetadata:A,runWithTimer:P}=y;export{h as a,S as b,f as c,x as d,A as e,P as f};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{g as r}from"./chunk-VPRTJUIN.js";r();
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import{a as K}from"./chunk-UJVH7FZS.js";import{O as H,va as W,xa as _,ya as Y,z as b}from"./chunk-XONFGLJQ.js";import{b as L}from"./chunk-MHWV5RQV.js";import{a as X,b as Z}from"./chunk-XOTA6JTZ.js";import{a as j}from"./chunk-JUVAGMIH.js";import{A as B,a as k,t as U,w as C,x as T}from"./chunk-6G6TMKXF.js";import{d as z,e as J}from"./chunk-WSDN25F5.js";import{d as E,g as Q}from"./chunk-M56NDIMD.js";import{r as pe}from"./chunk-LDGAHMS7.js";import{Fa as M,Gb as $,Ib as l,Qb as g,Ua as F}from"./chunk-N5PQPIBF.js";import{d as G,f as x,i as V,q as A}from"./chunk-IU2ZQ6TE.js";import{e as ce,g as d}from"./chunk-VPRTJUIN.js";d();var y=ce(pe(),1);var R={path:y.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=x(t);return F(e)?M(e)?e:(T({headline:"The path must be a directory, not a file.",body:[`The provided path is not a directory: ${e}`,`Did you mean: ${V(e)}`]}),process.exit(1)):(T({headline:"A path was explicitly provided but doesn't exist.",body:[`Please check the path and try again: ${e}`]}),process.exit(1))},default:async()=>A(),noCacheDefault:!0}),password:y.Flags.string({description:"Password generated from the Theme Access app or an Admin API token.",env:"SHOPIFY_CLI_THEME_TOKEN"}),store:y.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=>b(t)}),environment:y.Flags.string({char:"e",description:"The environment to apply to the current command.",env:"SHOPIFY_FLAG_ENVIRONMENT",multiple:!0})},ee="Wrap the value in double quotes if you're using wildcards.",Se=t=>({only:y.Flags.string({char:"o",multiple:!0,description:`${t.charAt(0).toUpperCase()+t.slice(1)} only the specified files (Multiple flags allowed). ${ee}`,env:"SHOPIFY_FLAG_ONLY"}),ignore:y.Flags.string({char:"x",multiple:!0,description:`Skip ${t}ing the specified files (Multiple flags allowed). ${ee}`,env:"SHOPIFY_FLAG_IGNORE"})});d();d();import{AsyncLocalStorage as he}from"node:async_hooks";var se=new he,te,oe,re,ne;function c(){return te??=new L({projectName:"shopify-cli-theme-conf"}),te}function O(){return oe??=new L({projectName:"shopify-cli-development-theme-config"}),oe}function N(){return re??=new L({projectName:"shopify-cli-repl-theme-config"}),re}function I(){return ne??=new L({projectName:"shopify-cli-theme-store-password"}),ne}function D(t=c()){return se.getStore()?.store??t.get("themeStore")}function ae(t,e=c()){e.set("themeStore",t)}function Ee(t=c()){return g(l`Getting development theme...`),O().get(u(t))}function xe(t,e=c()){g(l`Setting development theme...`),O().set(u(e),t)}function Ae(t=c()){g(l`Removing development theme...`),O().delete(u(t))}function be(t=c()){return g(l`Getting REPL theme...`),N().get(u(t))}function Pe(t,e=c()){g(l`Setting REPL theme to ${t}...`),N().set(u(e),t)}function _e(t=c()){g(l`Removing REPL theme...`),N().delete(u(t))}function Ce(t=c()){let e=u(t);return g(l`Getting storefront password for shop ${e}...`),I().get(e)}function $e(t,e=c()){let o=u(e);g(l`Setting storefront password for shop ${o}...`),I().set(o,t)}function Re(t=c()){let e=u(t);g(l`Removing storefront password for ${e}...`),I().delete(e)}function u(t=c()){let e=D(t);if(!e)throw new Q("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 ie(t,e){return se.run({store:t},e)}function me(t){let e=t.store??D();if(!e)throw W(new E("A store is required",`Specify the store passing ${l`${$.genericShellCommand(`--${R.store.name}=example.myshopify.com`)}`.value} or set the ${l`${$.genericShellCommand(R.store.env)}`.value} environment variable.`));return ae(e),e}d();d();var le="shopify.theme.toml",je=new Intl.DateTimeFormat(void 0,{hour12:!1,hour:"2-digit",minute:"2-digit",second:"2-digit"}),He=["**/.git","**/.vscode","**/.hg","**/.bzr","**/.svn","**/_darcs","**/CVS","**/*.sublime-(project|workspace)","**/.DS_Store","**/.sass-cache","**/Thumbs.db","**/desktop.ini","**/config.yml","**/node_modules/",".prettierrc.json"],We=50;var q=class extends Z{environmentsFilename(){return le}async command(e,o,s=!1,i,r){}async run(e){let o=this.constructor,s=o.multiEnvironmentsFlags,{args:i,flags:r}=await this.parse(o),n="password"in o.flags,h=(Array.isArray(r.environment)?r.environment:[r.environment]).filter(Boolean),p=s!==null&&s.some(a=>Array.isArray(a)?a.includes("store"):a==="store");if(h.length<=1){if(h[0]&&!r.store&&p)throw new E("Please provide a valid environment.");let a=n?await this.createSession(r):void 0,w=this.constructor.name.toLowerCase();if(_(`theme-command:${w}:single-env:authenticated`),r.path&&!F(r.path))throw new E(`Path does not exist: ${r.path}`);try{await this.command(r,a,!1,i)}finally{await this.logAnalyticsData(a)}return}if(s===null){C({body:"This command does not support multiple environments."});return}let{flags:m}=await this.parse(X(o),this.argv);if("path"in m){this.errorOnGlobalPath();return}let S=await this.loadEnvironments(h,r,m),f=await this.validateEnvironments(S,s,n);"force"in o.flags&&!r.force&&!await this.showConfirmation(this.constructor.name,s,f)||await this.runConcurrent(f.valid)}async loadEnvironments(e,o,s){let i=new Map;for(let r of e){let n=await K(r,"shopify.theme.toml",{from:o.path,silent:!0});n?.store&&typeof n.store=="string"&&(n.store=b(n.store)),n?.path&&typeof n.path=="string"&&(n.path=x(n.path)),i.set(r,{flags:{...o,...n,...s,environment:[r]},validationFlags:{...n,...s}})}return i}async validateEnvironments(e,o,s){let i=[],r=[];for(let[n,{flags:h,validationFlags:p}]of e){let m=this.validConfig(p,o,n);if(m!==!0){let S=m.join(", ");r.push({environment:n,reason:`Missing flags: ${S}`});continue}i.push({environment:n,flags:h,requiresAuth:s})}return{valid:i,invalid:r}}async showConfirmation(e,o,s){let n={message:[`Run ${e.toLowerCase()} in the following environments?`],confirmationMessage:"Yes, proceed",cancellationMessage:"Cancel"},h=[...s.valid.map(({environment:p,flags:m})=>{let S=o.map(f=>{let v=Array.isArray(f)?f.find(a=>m[a]):f;if(v==="password")return"password";if(v==="path"&&typeof m.path=="string"){let a=m.path.split(/[/\\]/);if(a.length===1)return`path: ${m.path}`;let w=a[0]===""?`/${a[1]}`:a[0],P=a.at(-1);return`path: ${w}/.../${P}`}return v&&`${v}: ${m[v]}`}).join(", ");return[p,{subdued:S||"No flags required"}]}),...s.invalid.map(({environment:p,reason:m})=>[p,{error:`Skipping | ${m}`}])];return n.infoTable={Environment:h},s.invalid.length>0&&(n.confirmationMessage="Proceed anyway (will skip invalid environments)"),B(n)}async runConcurrent(e){let o=new k,s=e.map(n=>n.flags.store),i=new Set(s),r=s.length===i.size?[e]:this.createSequentialGroups(e);for(let n of r)await U({processes:n.map(({environment:h,flags:p,requiresAuth:m})=>({prefix:h,action:async(S,f,v)=>{try{let a=p.store;await ie(a,async()=>{let w=m?await this.createSession(p):void 0,P=this.constructor.name.toLowerCase();_(`theme-command:${P}:multi-env:authenticated`);try{await this.command(p,w,!0,{},{stdout:S,stderr:f})}finally{await this.logAnalyticsData(w)}})}catch(a){a instanceof Error&&(a.message=`Environment ${h} failed:
|
|
2
|
+
|
|
3
|
+
${a.message}`,T({body:[a.message]}))}}})),abortSignal:o.signal,showTimestamps:!0,renderOptions:{stdout:process.stderr}})}createSequentialGroups(e){let o=[];return e.forEach(s=>{let i=o.find(r=>!r.some(n=>n.flags.store===s.flags.store));i?i.push(s):o.push([s])}),o}async createSession(e){let o=e.store,s=e.password;return await H(me({store:o}),s)}validConfig(e,o,s){let i=o.filter(r=>Array.isArray(r)?!r.some(n=>e[n]):!e[r]).map(r=>Array.isArray(r)?r.join(" or "):r);return i.length>0?(C({body:[`Missing required flags in environment configuration${s?` for ${s}`:""}:`,{list:{items:i}}]}),i):!0}errorOnGlobalPath(){let e=G(A(),"shopify.theme.toml"),o=F(e);T({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=Y();await z(()=>({store_fqdn_hash:j(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 J(()=>({store_fqdn:e.storeFqdn}))}};export{D as a,Ee as b,xe as c,Ae as d,be as e,Pe as f,_e as g,Ce as h,$e as i,Re as j,R as k,Se as l,me as m,je as n,He as o,We as p,q};
|