Skip to content

Commit c34c42e

Browse files
committed
Adjust the TS setup
1 parent 97b31b9 commit c34c42e

File tree

3 files changed

+17
-16
lines changed

3 files changed

+17
-16
lines changed

Diff for: Makefile

+4-7
Original file line numberDiff line numberDiff line change
@@ -4,21 +4,18 @@
44
BIN = $(shell yarn bin)
55

66
types:
7-
npx tsc --build
7+
npx tsc --build tsconfig.build.json
88

99
types-watch:
10-
npx tsc --build --watch
10+
npx tsc --build tsconfig.build.json --watch
1111

1212
types-diagnoze:
13-
npx tsc --build --extendedDiagnostics
13+
npx tsc --extendedDiagnostics
1414

1515
types-trace:
16-
npx tsc --build --generateTrace tmp/trace
16+
npx tsc --generateTrace tmp/trace
1717
npx analyze-trace tmp/trace
1818

19-
types-profile:
20-
node --trace-ic ./node_modules/typescript/lib/tsc.js --generateCpuProfile tmp/profile.cpuprofile --build
21-
2219
test: test-node test-browser
2320
.PHONY: test
2421

Diff for: tsconfig.build.json

+12
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
{
2+
"extends": "./tsconfig.base",
3+
"files": [],
4+
"references": [
5+
{
6+
"path": "./tsconfig.dev.json"
7+
},
8+
{
9+
"path": "./src/tysts/loose/tsconfig.json"
10+
}
11+
]
12+
}

Diff for: tsconfig.json

+1-9
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,4 @@
11
{
22
"extends": "./tsconfig.base",
3-
"files": [],
4-
"references": [
5-
{
6-
"path": "./tsconfig.dev.json"
7-
},
8-
{
9-
"path": "./src/tysts/loose/tsconfig.json"
10-
}
11-
]
3+
"include": ["src/**/*.ts"]
124
}

0 commit comments

Comments
 (0)