Module

x/ts_morph/mod.ts>ProjectOptions

TypeScript Compiler API wrapper for static analysis and programmatic code changes.
Very Popular
Go to Latest
interface ProjectOptions
import { type ProjectOptions } from "https://dotland.deno.dev/x/ts_morph@20.0.0/mod.ts";

Options for creating a project.

Properties

optional
compilerOptions: CompilerOptions

Compiler options

optional
tsConfigFilePath: string

File path to the tsconfig.json file.

optional
skipAddingFilesFromTsConfig: boolean

Whether to skip adding the source files from the specified tsconfig.json.

optional
skipFileDependencyResolution: boolean

Skip resolving file dependencies when providing a ts config file path and adding the files from tsconfig.

optional
skipLoadingLibFiles: boolean

Skip loading the lib files. Unlike the compiler API, ts-morph does not load these from the node_modules folder, but instead loads them from some other JS code and uses a fake path for their existence. If you want to use a custom lib files folder path, then provide one using the libFolderPath options.

optional
libFolderPath: string

The folder to use for loading lib files.

optional
manipulationSettings: Partial<ManipulationSettings>

Manipulation settings

optional
useInMemoryFileSystem: boolean

Whether to use an in-memory file system.

optional
fileSystem: FileSystemHost

Optional file system host. Useful for mocking access to the file system.

optional
resolutionHost: ResolutionHostFactory

Creates a resolution host for specifying custom module and/or type reference directive resolution.