OptionalcompilerCompiler options
OptionaldefaultCan be overriden by tsConfigFilePath or compilerOptions.
OptionalfileOptional file system host. Useful for mocking access to the file system.
OptionallibThe folder to use for loading lib files.
OptionalmanipulationManipulation settings
OptionalresolutionCreates a resolution host for specifying custom module and/or type reference directive resolution.
OptionalskipWhether to skip adding the source files from the specified tsconfig.json.
OptionalskipSkip resolving file dependencies when providing a ts config file path and adding the files from tsconfig.
OptionalskipSkip 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.
OptionaltsFile path to the tsconfig.json file.
OptionaluseWhether to use an in-memory file system.
Options for creating a project.