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 c122d189_eed9_1fb3_b78f_067bf5f5c933["fixImportPath()"] 2f5e9e14_c063_bf83_8ef1_37a740ee091a["fix-imports.ts"] c122d189_eed9_1fb3_b78f_067bf5f5c933 -->|defined in| 2f5e9e14_c063_bf83_8ef1_37a740ee091a 51d49a57_d5c1_fa32_a589_5ef1d6cacb27["resolvePathAlias()"] c122d189_eed9_1fb3_b78f_067bf5f5c933 -->|calls| 51d49a57_d5c1_fa32_a589_5ef1d6cacb27 style c122d189_eed9_1fb3_b78f_067bf5f5c933 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
drizzle-zod/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-zod/scripts/fix-imports.ts.
Where is fixImportPath() defined?
fixImportPath() is defined in drizzle-zod/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