Skip to main content
Module

x/ts_morph/ts_morph.d.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://deno.land/x/ts_morph@15.1.0/ts_morph.d.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. @default false

optional
skipFileDependencyResolution: boolean

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

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. @default false

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.