From 399988c520a535273b9a8523488e457258778d63 Mon Sep 17 00:00:00 2001 From: Francesco Spilla Date: Thu, 6 Feb 2025 17:42:45 +0100 Subject: [PATCH] feat(repo): enable typecheck on build target --- apps/ebitemp-api/package.json | 5 +++++ nx.json | 3 +++ 2 files changed, 8 insertions(+) diff --git a/apps/ebitemp-api/package.json b/apps/ebitemp-api/package.json index 6609e65..fcf80f5 100644 --- a/apps/ebitemp-api/package.json +++ b/apps/ebitemp-api/package.json @@ -7,6 +7,11 @@ "projectType": "application", "sourceRoot": "apps/ebitemp-api/src", "targets": { + "typecheck": { + "options": { + "command": "tsc --build --emitDeclarationOnly --pretty" + } + }, "build": { "executor": "nx:run-commands", "options": { diff --git a/nx.json b/nx.json index 322cc79..e274d82 100644 --- a/nx.json +++ b/nx.json @@ -54,6 +54,9 @@ } ], "targetDefaults": { + "build": { + "dependsOn": ["^build", "typecheck"] + }, "test": { "dependsOn": ["^build"] },