Skip to main content

TypeScriptConfig

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

Index

Properties

createMissingConfig

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.

projectConfigFileName

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

Name of the tsconfig.json file within each project.

root

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

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

rootConfigFileName

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

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

rootOptionsConfigFileName

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.

syncProjectReferences

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.