import r from"path";const l=async({context:n,store:s})=>{const o=await n.fs.scan(),a={};for(const e of o){if(e.isVirtual||await n.isPathIgnored(e.relativePath))continue;let t=r.extname(e.relativePath);if(t){if(t.endsWith(".yaml")){const i=await s.getRouteByFsPath(e.relativePath);i&&["openapi","asyncapi"].includes(i.metadata?.type)&&(t=i.metadata?.type+t)}a[t]=(a[t]||0)+1}}return{version:"1",name:"fileExtensions",value:JSON.stringify(a)}};export{l as getFileExtensionsUsage};
