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