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