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

analyzeImports() — drizzle-orm Function Reference

Architecture documentation for the analyzeImports() function in checker.ts from the drizzle-orm codebase.

Entity Profile

Dependency Diagram

graph TD
  a87d49b4_c045_d938_1292_d565a3172d59["analyzeImports()"]
  c2197456_e6cc_1614_c507_f516244187b1["checker.ts"]
  a87d49b4_c045_d938_1292_d565a3172d59 -->|defined in| c2197456_e6cc_1614_c507_f516244187b1
  style a87d49b4_c045_d938_1292_d565a3172d59 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

drizzle-kit/imports-checker/checker.ts lines 272–296

export function analyzeImports(cfg: AnalyzeImportsConfig) {
	const {
		basePath,
		blackList,
		whiteList,
		entry,
		localPaths: localImports,
		ignoreTypes,
		logger,
	} = cfg as AnyAnalyzeImportsConfig;
	const mode = whiteList ? 'whitelist' : 'blacklist';
	const wantedList = blackList ?? whiteList!;

	const analyzer = new ImportAnalyzer(
		joinPath(basePath),
		joinPath(entry),
		mode,
		wantedList,
		localImports ?? [],
		logger,
		ignoreTypes,
	);

	return analyzer.analyzeImports();
}

Domain

Subdomains

Frequently Asked Questions

What does analyzeImports() do?
analyzeImports() is a function in the drizzle-orm codebase, defined in drizzle-kit/imports-checker/checker.ts.
Where is analyzeImports() defined?
analyzeImports() is defined in drizzle-kit/imports-checker/checker.ts at line 272.

Analyze Your Own Codebase

Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.

Try Supermodel Free