detectJSONConfigPath() — tailwindcss Function Reference
Architecture documentation for the detectJSONConfigPath() function in migrate-postcss.ts from the tailwindcss codebase.
Entity Profile
Dependency Diagram
graph TD 07211e82_40c2_adfa_13cf_90e15e366f06["detectJSONConfigPath()"] 9c861556_2895_9b7c_50ec_d9aa3cfc5c68["migrate-postcss.ts"] 07211e82_40c2_adfa_13cf_90e15e366f06 -->|defined in| 9c861556_2895_9b7c_50ec_d9aa3cfc5c68 18049d5a_3e65_d6cd_49d2_32e825145fa2["migratePostCSSConfig()"] 18049d5a_3e65_d6cd_49d2_32e825145fa2 -->|calls| 07211e82_40c2_adfa_13cf_90e15e366f06 style 07211e82_40c2_adfa_13cf_90e15e366f06 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
packages/@tailwindcss-upgrade/src/codemods/config/migrate-postcss.ts lines 323–332
async function detectJSONConfigPath(base: string): Promise<null | string> {
for (let file of JSON_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 detectJSONConfigPath() do?
detectJSONConfigPath() is a function in the tailwindcss codebase, defined in packages/@tailwindcss-upgrade/src/codemods/config/migrate-postcss.ts.
Where is detectJSONConfigPath() defined?
detectJSONConfigPath() is defined in packages/@tailwindcss-upgrade/src/codemods/config/migrate-postcss.ts at line 323.
What calls detectJSONConfigPath()?
detectJSONConfigPath() 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