Module

x/ts_morph/bootstrap/ts_morph_bootstrap.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://dotland.deno.dev/x/ts_morph@18.0.0/bootstrap/ts_morph_bootstrap.d.ts";

Options for creating a project.

Properties

optional
compilerOptions: ts.CompilerOptions

Compiler options

optional
tsConfigFilePath: string

File path to the tsconfig.json file.

optional
skipAddingFilesFromTsConfig: boolean

Whether to skip adding 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
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.

optional
isKnownTypesPackageName: ts.LanguageServiceHost["isKnownTypesPackageName"]

Unstable and will probably be removed in the future. I believe this option should be internal to the library and if you know how to achieve that then please consider submitting a PR.