pub fn analyze_dir(
path: impl AsRef<Path>,
) -> Result<JavaScriptAnalysis, JavaScriptAnalysisError>Expand description
Analyzes JavaScript or TypeScript source without executing the project or its dependencies.
The analyzed directory must have a locally resolvable typescript package. The embedded
analyzer loads that compiler through Node’s module resolver anchored at the directory.
§Errors
Returns JavaScriptAnalysisError when the directory is invalid, Node or TypeScript cannot
be used, or the analyzer reports an actionable source-resolution failure.