Skip to content

Commit 168bc0d

Browse files
committed
chore: speed up tsc
we enable the incremental-flag here. because of the reasoning here microsoft/TypeScript#30661, we need to also need to emit stuff. we'll have an __out-dir until there's a better option. we want to call tsc before running jest to not have to deal with tsc's output regarding newly emitted files.
1 parent 2abe58f commit 168bc0d

File tree

3 files changed

+9
-2
lines changed

3 files changed

+9
-2
lines changed

.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
.idea/*
44
!dist/
55
dist/*
6+
__out/
67
cypress/*
78
results/
89
build/

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -214,7 +214,7 @@
214214
"test:system:local": "PLUGINS_PATH=\"${npm_config_externalplugins}\" ./scripts/run-system-tests -hnds",
215215
"test:validate": "PLUGINS_PATH=\"${npm_config_externalplugins}\" ./scripts/validate-tests",
216216
"test:watch": "npm test -- --watch",
217-
"test": "./scripts/lingui-compile && jest --no-cache",
217+
"test": "./scripts/lingui-compile && tsc > /dev/null; jest --no-cache",
218218
"typecheck": "jest typecheck",
219219
"updateTSSnapshots": "jest typecheck -u; jest tslint -u",
220220
"util:env:validate": "node ./scripts/validate-engine-versions.js",

tsconfig.json

+7-1
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,15 @@
66
"emitDecoratorMetadata": true,
77
"esModuleInterop": true,
88
"experimentalDecorators": true,
9+
"incremental": true,
910
"jsx": "preserve",
1011
"lib": ["es5", "es6", "esnext", "dom"],
1112
"listEmittedFiles": true,
1213
"module": "ESNext",
1314
"moduleResolution": "node",
14-
"noEmit": true,
15+
16+
"noEmit": false,
17+
1518
"noFallthroughCasesInSwitch": true,
1619

1720
"noImplicitAny": false,
@@ -20,6 +23,9 @@
2023
"noImplicitThis": true,
2124
"noUnusedLocals": true,
2225
"noUnusedParameters": true,
26+
27+
"outDir": "__out",
28+
2329
"resolveJsonModule": true,
2430
"skipLibCheck": true,
2531
"sourceMap": true,

0 commit comments

Comments
 (0)