Optimise check types

This commit is contained in:
Adria Navarro 2023-05-22 12:31:49 +02:00
parent 5fd32618be
commit dd58d6ed76
2 changed files with 8 additions and 2 deletions

View File

@ -14,7 +14,7 @@
"scripts": { "scripts": {
"prebuild": "rimraf dist/", "prebuild": "rimraf dist/",
"build": "cd ../.. && nx build @budibase/worker", "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", "build:dev": "yarn prebuild && tsc --build --watch --preserveWatchOutput",
"run:docker": "node dist/index.js", "run:docker": "node dist/index.js",
"debug": "yarn build && node --expose-gc --inspect=9223 dist/index.js", "debug": "yarn build && node --expose-gc --inspect=9223 dist/index.js",

View File

@ -25,7 +25,13 @@
"sourcemap": true "sourcemap": true
}, },
"minify": true, "minify": true,
"generatePackageJson": true "generatePackageJson": true,
"skipTypeCheck": true
},
"configurations": {
"production": {
"skipTypeCheck": false
}
} }
} }
} }