0.0.3 • Published 1 year ago

@obergodmar/nx-tsc v0.0.3

Weekly downloads
-
License
MIT
Repository
-
Last release
1 year 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 typecheck target to each project.json:

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

Run typecheck

This enables the tsc target in the Nx workspace:

nx typecheck my-lib

Run typecheck for every single app/lib

Add a typecheck script to global package.json:

{
  "scripts": {
    "typecheck": "nx run-many -t=typecheck --verbose"
  }
}
npm run typecheck
0.0.3

1 year ago

0.0.2

1 year ago

0.0.1

2 years ago