checkCwd() — astro Function Reference
Architecture documentation for the checkCwd() function in project-name.ts from the astro codebase.
Entity Profile
Dependency Diagram
graph TD f2449e0b_de03_10e2_7f57_53b44cbe293a["checkCwd()"] 5e62c00c_3931_b38d_250d_e3ed87297fa7["project-name.ts"] f2449e0b_de03_10e2_7f57_53b44cbe293a -->|defined in| 5e62c00c_3931_b38d_250d_e3ed87297fa7 dfcc9a2d_0cef_59c9_1637_e2cf041cb1c2["projectName()"] dfcc9a2d_0cef_59c9_1637_e2cf041cb1c2 -->|calls| f2449e0b_de03_10e2_7f57_53b44cbe293a style f2449e0b_de03_10e2_7f57_53b44cbe293a fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
packages/create-astro/src/actions/project-name.ts lines 65–73
async function checkCwd(cwd: string | undefined) {
const empty = cwd && isEmpty(cwd);
if (empty) {
log('');
await info('dir', `Using ${color.reset(cwd)}${color.dim(' as project directory')}`);
}
return empty;
}
Domain
Subdomains
Called By
Source
Frequently Asked Questions
What does checkCwd() do?
checkCwd() is a function in the astro codebase, defined in packages/create-astro/src/actions/project-name.ts.
Where is checkCwd() defined?
checkCwd() is defined in packages/create-astro/src/actions/project-name.ts at line 65.
What calls checkCwd()?
checkCwd() is called by 1 function(s): projectName.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free