0.0.1 • Published 5 months ago

@obergodmar/nx-tsc v0.0.1

Weekly downloads
-
License
MIT
Repository
-
Last release
5 months ago

nx-tsc

Nx executor to check types of project source files using tsc --noEmit

Installation

npm install -D @obergodmar/nx-tsc

Configuration

Add a types-check target to each project.json:

{
  "$schema": "../../node_modules/nx/schemas/project-schema.json",
  "sourceRoot": "libs/my-lib/src",
  "targets": {
    "types-check": {
      "executor": "@obergodmar/nx-tsc:types-check",
      "options": {
        "tsConfig": ["tsconfig.json"]
      }
    }
  }
}

Run types-check

This enables the tsc target in the Nx workspace:

nx types-check my-lib

Run types-check for every single app/lib

Add a types-check script to global package.json:

{
  "scripts": {
    "types-check": "nx run-many --target=types-check --all=true --verbose"
  }
}
npm run types-check
0.0.1

5 months ago