Module

x/ts_morph/mod.ts>Directory#addSourceFileAtPath

TypeScript Compiler API wrapper for static analysis and programmatic code changes.
Very Popular
Latest
method Directory.prototype.addSourceFileAtPath
import { Directory } from "https://dotland.deno.dev/x/ts_morph@22.0.0/mod.ts";

Adds an existing source file, relative to this directory, or throws if it doesn't exist.

Will return the source file if it was already added.

Parameters

relativeFilePath: string
  • Relative file path to add.