-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathtypecheck.ts
42 lines (35 loc) · 924 Bytes
/
typecheck.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
import { TypeChecker } from "esbuild-helpers";
/**
* This runs typechecking on all ts files
* One for common files
* One for backend
* One for frontend
* -> these also check ts config files running backend and frontend
*/
const frontend = TypeChecker({
basePath: "./frontend",
name: "checker_frontend",
tsConfig: "./tsconfig.json",
throwOnSemantic: true,
throwOnSyntactic: true
});
frontend.printSettings();
frontend.inspectAndPrint();
const backend = TypeChecker({
basePath: "./backend",
name: "checker_backend",
tsConfig: "./tsconfig.json",
throwOnSemantic: true,
throwOnSyntactic: true
});
backend.printSettings();
backend.inspectAndPrint();
const common = TypeChecker({
basePath: "./common",
name: "checker_common",
tsConfig: "./tsconfig.json",
throwOnSemantic: true,
throwOnSyntactic: true
});
common.printSettings();
common.inspectAndPrint();