Home / Function/ getPrettierPluginPath() — astro Function Reference

getPrettierPluginPath() — astro Function Reference

Architecture documentation for the getPrettierPluginPath() function in importPackage.ts from the astro codebase.

Entity Profile

Dependency Diagram

graph TD
  439a1b66_5cf5_548a_a61c_a6e91bfb6e5c["getPrettierPluginPath()"]
  e0c225c9_e989_934d_19e8_8e80b7a6857f["importPackage.ts"]
  439a1b66_5cf5_548a_a61c_a6e91bfb6e5c -->|defined in| e0c225c9_e989_934d_19e8_8e80b7a6857f
  495034c4_630b_8d19_14b5_3d1a1a8fdcd7["getPackageInfo()"]
  439a1b66_5cf5_548a_a61c_a6e91bfb6e5c -->|calls| 495034c4_630b_8d19_14b5_3d1a1a8fdcd7
  style 439a1b66_5cf5_548a_a61c_a6e91bfb6e5c fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

packages/language-tools/language-server/src/importPackage.ts lines 106–117

export function getPrettierPluginPath(fromPath: string): string | undefined {
	const prettierPluginPath = getPackageInfo('prettier-plugin-astro', [
		fromPath,
		__dirname,
	])?.entrypoint;

	if (!prettierPluginPath) {
		return undefined;
	}

	return prettierPluginPath;
}

Domain

Subdomains

Frequently Asked Questions

What does getPrettierPluginPath() do?
getPrettierPluginPath() is a function in the astro codebase, defined in packages/language-tools/language-server/src/importPackage.ts.
Where is getPrettierPluginPath() defined?
getPrettierPluginPath() is defined in packages/language-tools/language-server/src/importPackage.ts at line 106.
What does getPrettierPluginPath() call?
getPrettierPluginPath() calls 1 function(s): getPackageInfo.

Analyze Your Own Codebase

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

Try Supermodel Free