UNPKG

@shopify/cli

Version:

A CLI tool to build for the Shopify platform

2 lines (1 loc) 732 B
import{r as e}from"./chunk-LDGAHMS7.js";import"./chunk-ZR76GGZ6.js";import"./chunk-EENHXSWU.js";import"./chunk-FUOIGXI4.js";import"./chunk-6M3ZYNGO.js";import"./chunk-QYR5VPQA.js";import"./chunk-PIBY5DDZ.js";import{e as d,g as r}from"./chunk-VPRTJUIN.js";r();var u=d(e(),1),i=class extends u.Config{setLazyCommandLoader(n){this.lazyCommandLoader=n}async runCommand(n,a=[],t=null){if(this.lazyCommandLoader){let m=t??this.findCommand(n);if(m){let o=await this.lazyCommandLoader(n);if(o){o.id=n,o.plugin=m.plugin??this.rootPlugin,await this.runHook("prerun",{argv:a,Command:o});let s=await o.run(a,this);return await this.runHook("postrun",{argv:a,Command:o,result:s}),s}}}return super.runCommand(n,a,t)}};export{i as ShopifyConfig};