Nx executor to type-check project source files using tsc --noEmit
npm install -D @webpro/nx-tscAdd a tsc target to each project.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"]
}
}
}
}This enables the tsc target in the Nx workspace:
nx tsc my-lib