resolvePathAlias() — drizzle-orm Function Reference
Architecture documentation for the resolvePathAlias() function in fix-imports.ts from the drizzle-orm codebase.
Entity Profile
Dependency Diagram
graph TD 97220c15_5a23_978d_e458_67b7b1ae525f["resolvePathAlias()"] 6936d81a_3aea_7810_a6c4_754fa3012c40["fix-imports.ts"] 97220c15_5a23_978d_e458_67b7b1ae525f -->|defined in| 6936d81a_3aea_7810_a6c4_754fa3012c40 fbf9a2b5_45c6_3141_7674_b85b9a39248f["fixImportPath()"] fbf9a2b5_45c6_3141_7674_b85b9a39248f -->|calls| 97220c15_5a23_978d_e458_67b7b1ae525f style 97220c15_5a23_978d_e458_67b7b1ae525f fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
drizzle-orm/scripts/fix-imports.ts lines 8–15
function resolvePathAlias(importPath: string, file: string) {
if (importPath.startsWith('~/')) {
const relativePath = path.relative(path.dirname(file), path.resolve('dist.new', importPath.slice(2)));
importPath = relativePath.startsWith('.') ? relativePath : './' + relativePath;
}
return importPath;
}
Domain
Subdomains
Defined In
Called By
Source
Frequently Asked Questions
What does resolvePathAlias() do?
resolvePathAlias() is a function in the drizzle-orm codebase, defined in drizzle-orm/scripts/fix-imports.ts.
Where is resolvePathAlias() defined?
resolvePathAlias() is defined in drizzle-orm/scripts/fix-imports.ts at line 8.
What calls resolvePathAlias()?
resolvePathAlias() is called by 1 function(s): fixImportPath.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free