hasRootFile() — astro Function Reference
Architecture documentation for the hasRootFile() function in searchRoot.ts from the astro codebase.
Entity Profile
Dependency Diagram
graph TD 1a343d52_2690_8cfd_6c70_17c7dd892681["hasRootFile()"] f146dc60_74d2_b1d6_cb66_a8216ff4ea82["searchRoot.ts"] 1a343d52_2690_8cfd_6c70_17c7dd892681 -->|defined in| f146dc60_74d2_b1d6_cb66_a8216ff4ea82 d8111c96_abe6_3306_3d6d_efb817cc311e["searchForWorkspaceRoot()"] d8111c96_abe6_3306_3d6d_efb817cc311e -->|calls| 1a343d52_2690_8cfd_6c70_17c7dd892681 style 1a343d52_2690_8cfd_6c70_17c7dd892681 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
packages/integrations/vercel/src/lib/searchRoot.ts lines 66–68
function hasRootFile(root: string): boolean {
return ROOT_FILES.some((file) => fs.existsSync(join(root, file)));
}
Domain
Subdomains
Called By
Source
Frequently Asked Questions
What does hasRootFile() do?
hasRootFile() is a function in the astro codebase, defined in packages/integrations/vercel/src/lib/searchRoot.ts.
Where is hasRootFile() defined?
hasRootFile() is defined in packages/integrations/vercel/src/lib/searchRoot.ts at line 66.
What calls hasRootFile()?
hasRootFile() is called by 1 function(s): searchForWorkspaceRoot.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free