Skip to main content

Role - Source

Use role-source when TypeScript or nova utility transpile owns the emitted source output.

Why Use This Preset?

  1. Makes the source-emission contract explicit instead of inheriting it accidentally from a baseline.
  2. Produces declaration files and declaration maps for published packages and directly compiled applications.
  3. Keeps runtime, framework, output-directory, and ambient-type decisions in their appropriate later layers or local config.

Usage

tsconfig.source.json
json
{
  "extends": [
    "@cbnventures/nova/presets/tsconfig/dx-essentials.json",
    "@cbnventures/nova/presets/tsconfig/dx-strict.json",
    "@cbnventures/nova/presets/tsconfig/role-source.json",
    "@cbnventures/nova/presets/tsconfig/runtime-node.json"
  ],
  "compilerOptions": {
    "outDir": "./build",
    "rootDir": "./src"
  }
}

What This Preset Configures

SettingValueDescription
declarationtrueEmits declarations with compiled source.
declarationMaptrueMaps declarations back to their TypeScript source.
noEmitfalseAllows TypeScript to write the configured build output.