Home / Function/ fixImportPath() — drizzle-orm Function Reference

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
  77d85c4c_bf3d_83d1_6ee1_a43a039b26c6["fixImportPath()"]
  c45688c2_fd9e_4aee_4c14_289358d104b7["fix-imports.ts"]
  77d85c4c_bf3d_83d1_6ee1_a43a039b26c6 -->|defined in| c45688c2_fd9e_4aee_4c14_289358d104b7
  06f53484_2999_b284_36a5_ac22727e6e81["resolvePathAlias()"]
  77d85c4c_bf3d_83d1_6ee1_a43a039b26c6 -->|calls| 06f53484_2999_b284_36a5_ac22727e6e81
  style 77d85c4c_bf3d_83d1_6ee1_a43a039b26c6 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

drizzle-arktype/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

Frequently Asked Questions

What does fixImportPath() do?
fixImportPath() is a function in the drizzle-orm codebase, defined in drizzle-arktype/scripts/fix-imports.ts.
Where is fixImportPath() defined?
fixImportPath() is defined in drizzle-arktype/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