Skip to main content
Module

x/ts_morph/bootstrap/mod.ts>Project#addSourceFilesFromTsConfigSync

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

Synchronously adds all the source files from the specified tsconfig.json.

Note that this is done by default when specifying a tsconfig file in the constructor and not explicitly setting the skipAddingSourceFilesFromTsConfig option to true.

Parameters

tsConfigFilePath: string
  • File path to the tsconfig.json file.

Returns

ts.SourceFile[]