fixImportPath() — drizzle-orm Function Reference
Architecture documentation for the fixImportPath() function in fix-imports.ts from the drizzle-orm codebase.
Entity Profile
Dependency Diagram
graph TD a3240399_f77a_77a7_1e23_52bf3a858ac0["fixImportPath()"] f8e97c50_cfe8_108a_dbb6_73828c892bc9["fix-imports.ts"] a3240399_f77a_77a7_1e23_52bf3a858ac0 -->|defined in| f8e97c50_cfe8_108a_dbb6_73828c892bc9 e245a77f_66a9_0a53_ba2c_9875ca210e00["resolvePathAlias()"] a3240399_f77a_77a7_1e23_52bf3a858ac0 -->|calls| e245a77f_66a9_0a53_ba2c_9875ca210e00 style a3240399_f77a_77a7_1e23_52bf3a858ac0 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
drizzle-typebox/scripts/fix-imports.ts lines 17–25
function fixImportPath(importPath: string, file: string, ext: string) {
importPath = resolvePathAlias(importPath, file);
if (!/\..*\.(js|ts)$/.test(importPath)) {
return importPath;
}
return importPath.replace(/\.(js|ts)$/, ext);
}
Domain
Subdomains
Defined In
Calls
Source
Frequently Asked Questions
What does fixImportPath() do?
fixImportPath() is a function in the drizzle-orm codebase, defined in drizzle-typebox/scripts/fix-imports.ts.
Where is fixImportPath() defined?
fixImportPath() is defined in drizzle-typebox/scripts/fix-imports.ts at line 17.
What does fixImportPath() call?
fixImportPath() calls 1 function(s): resolvePathAlias.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free