detectJSConfigPath() — tailwindcss Function Reference
Architecture documentation for the detectJSConfigPath() function in migrate-postcss.ts from the tailwindcss codebase.
Entity Profile
Dependency Diagram
graph TD 9b400cc0_c561_f305_42a2_61c2c7cb8b6e["detectJSConfigPath()"] 32e1ecdd_6093_f556_114f_ec3d5663975f["migratePostCSSConfig()"] 32e1ecdd_6093_f556_114f_ec3d5663975f -->|calls| 9b400cc0_c561_f305_42a2_61c2c7cb8b6e style 9b400cc0_c561_f305_42a2_61c2c7cb8b6e fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
packages/@tailwindcss-upgrade/src/codemods/config/migrate-postcss.ts lines 306–315
async function detectJSConfigPath(base: string): Promise<null | string> {
for (let file of JS_CONFIG_FILE_LOCATIONS) {
let fullPath = path.resolve(base, file)
try {
await fs.access(fullPath)
return fullPath
} catch {}
}
return null
}
Domain
Subdomains
Called By
Source
Frequently Asked Questions
What does detectJSConfigPath() do?
detectJSConfigPath() is a function in the tailwindcss codebase.
What calls detectJSConfigPath()?
detectJSConfigPath() is called by 1 function(s): migratePostCSSConfig.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free