Skip to main content

Role - Scripts

Use role-scripts for maintenance, generation, and automation scripts that run directly from the repository.

Why Use This Preset?

  1. Checks both JavaScript and TypeScript scripts through the same strict compiler contract.
  2. Avoids producing copied script output or declaration files.
  3. Removes the repeated allowJs, checkJs, declaration, and emit overrides from every root TSConfig.

Usage

tsconfig.scripts.json
json
{
  "extends": [
    "@cbnventures/nova/presets/tsconfig/dx-essentials.json",
    "@cbnventures/nova/presets/tsconfig/dx-strict.json",
    "@cbnventures/nova/presets/tsconfig/role-scripts.json",
    "@cbnventures/nova/presets/tsconfig/runtime-node.json"
  ],
  "include": [
    "./scripts/**/*.mjs"
  ]
}

What This Preset Configures

SettingValueDescription
allowJstrueIncludes JavaScript scripts in the compiler input.
checkJstrueType-checks included JavaScript files.
declarationfalseDoes not create declaration files for scripts.
declarationMapfalseDoes not create declaration maps.
noEmittrueChecks scripts without writing build output.