From dd58d6ed763f08e255d6a002216a095b121e0e74 Mon Sep 17 00:00:00 2001 From: Adria Navarro Date: Mon, 22 May 2023 12:31:49 +0200 Subject: [PATCH] Optimise check types --- packages/worker/package.json | 2 +- packages/worker/project.json | 8 +++++++- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/packages/worker/package.json b/packages/worker/package.json index 3c94b50555..a7b964eb8b 100644 --- a/packages/worker/package.json +++ b/packages/worker/package.json @@ -14,7 +14,7 @@ "scripts": { "prebuild": "rimraf dist/", "build": "cd ../.. && nx build @budibase/worker", - "check:types": "tsc -p tsconfig.build.json --noEmit", + "check:types": "yarn build --configuration=production", "build:dev": "yarn prebuild && tsc --build --watch --preserveWatchOutput", "run:docker": "node dist/index.js", "debug": "yarn build && node --expose-gc --inspect=9223 dist/index.js", diff --git a/packages/worker/project.json b/packages/worker/project.json index f5c439f489..3202350a3a 100644 --- a/packages/worker/project.json +++ b/packages/worker/project.json @@ -25,7 +25,13 @@ "sourcemap": true }, "minify": true, - "generatePackageJson": true + "generatePackageJson": true, + "skipTypeCheck": true + }, + "configurations": { + "production": { + "skipTypeCheck": false + } } } }