Skip to main content

TypeScriptConfig

Configures and enables the TypeScript platform. Docs: https://moonrepo.dev/docs/config/toolchain#typescript

Index

Properties

optionalcreateMissingConfig

createMissingConfig?: boolean = ```ts true ```

When syncProjectReferences is enabled, will create a tsconfig.json in referenced projects if it does not exist.

includeProjectReferenceSources

includeProjectReferenceSources: boolean

Appends sources of project reference to include in tsconfig.json, for each project.

includeSharedTypes

includeSharedTypes: boolean

Appends shared types to include in tsconfig.json, for each project.

optionalprojectConfigFileName

projectConfigFileName?: string = ```ts 'tsconfig.json' ```

Name of the tsconfig.json file within each project.

optionalroot

root?: string = ```ts '.' ```

The relative root to the TypeScript root. Primarily used for resolving project references.

optionalrootConfigFileName

rootConfigFileName?: string = ```ts 'tsconfig.json' ```

Name of the tsconfig.json file at the workspace root.

optionalrootOptionsConfigFileName

rootOptionsConfigFileName?: string = ```ts 'tsconfig.options.json' ```

Name of the shared compiler options tsconfig.json file at the workspace root.

routeOutDirToCache

routeOutDirToCache: boolean

Updates and routes outDir in tsconfig.json to moon's cache, for each project.

optionalsyncProjectReferences

syncProjectReferences?: boolean = ```ts true ```

Syncs all project dependencies as references in tsconfig.json, for each project.

syncProjectReferencesToPaths

syncProjectReferencesToPaths: boolean

Syncs all project dependencies as paths in tsconfig.json, for each project.