var f=Object.defineProperty;var t=(a,o)=>f(a,"name",{value:o,configurable:!0});import{R as d,a as g}from"../packem_shared/pm-runner-DmKT2FqF.js";import{o as v}from"../packem_shared/utils-DrNg0XTR.js";var u=Object.defineProperty,b=t((a,o)=>u(a,"name",{value:o,configurable:!0}),"n");const w=b(async({argument:a,logger:o,options:e,process:c,visConfig:l,workspaceRoot:i})=>{const s=a;if(!s||s.length===0)throw new Error("No packages specified. Usage: vis why <package...>");const n=i??c.cwd,p=d(n,{configBackend:l?.install?.backend,configCorepack:l?.install?.corepack}),r=g(p,{depth:e.depth===void 0?void 0:Number(e.depth),dev:e.dev||!1,filter:v(e.filter),global:e.global||!1,json:e.json||!1,long:e.long||!1,noOptional:e.optional===!1,packages:s,parseable:e.parseable||!1,prod:e.prod||!1,recursive:e.recursive||!1},n,o);r!==0&&r!==1&&(process.exitCode=r)},"execute");export{w as default};
