https://github.com/webpro/nx-tsc
Nx executor to type-check project source files using `tsc --noEmit`
https://github.com/webpro/nx-tsc
nx tsc tsconfig type-check typescript
Last synced: 11 months ago
JSON representation
Nx executor to type-check project source files using `tsc --noEmit`
- Host: GitHub
- URL: https://github.com/webpro/nx-tsc
- Owner: webpro
- License: mit
- Created: 2022-08-23T07:39:02.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2024-10-21T07:32:22.000Z (over 1 year ago)
- Last Synced: 2025-02-03T18:52:03.454Z (about 1 year ago)
- Topics: nx, tsc, tsconfig, type-check, typescript
- Language: JavaScript
- Homepage:
- Size: 4.88 KB
- Stars: 14
- Watchers: 2
- Forks: 4
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# nx-tsc
Nx executor to type-check project source files using tsc --noEmit
## Installation
```bash
npm install -D @webpro/nx-tsc
```
## Configuration
Add a `tsc` target to each `project.json`:
```json
{
"$schema": "../../node_modules/nx/schemas/project-schema.json",
"sourceRoot": "libs/my-lib/src",
"targets": {
"tsc": {
"executor": "@webpro/nx-tsc:tsc",
"options": {
"tsConfig": ["tsconfig.json"]
}
}
}
}
```
## Run type-checker
This enables the `tsc` target in the Nx workspace:
```bash
nx tsc my-lib
```