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