Skip to main content
Module

x/ts_morph/mod.ts>Project#addSourceFileAtPath

TypeScript Compiler API wrapper for static analysis and programmatic code changes.
Very Popular
Go to Latest
method Project.prototype.addSourceFileAtPath
import { Project } from "https://deno.land/x/ts_morph@15.1.0/mod.ts";

Adds an existing source file from a file path or throws if it doesn't exist.

Will return the source file if it was already added.

Parameters

filePath: string
  • File path to get the file from.