Skip to content

Commit

Permalink
chore: speed up tsc
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
pierrebeitz committed Dec 24, 2019
1 parent 7592b9a commit 340187e
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 2 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
.idea/*
!dist/
dist/*
__out/
cypress/*
results/
build/
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -214,7 +214,7 @@
"test:system:local": "PLUGINS_PATH=\"${npm_config_externalplugins}\" ./scripts/run-system-tests -hnds",
"test:validate": "PLUGINS_PATH=\"${npm_config_externalplugins}\" ./scripts/validate-tests",
"test:watch": "npm test -- --watch",
"test": "./scripts/lingui-compile && jest --config=jest.config.js --no-cache",
"test": "./scripts/lingui-compile && tsc && jest --config=jest.config.js --no-cache",
"typecheck": "jest typecheck",
"updateTSSnapshots": "jest typecheck -u; jest tslint -u",
"util:env:validate": "node ./scripts/validate-engine-versions.js",
Expand Down
8 changes: 7 additions & 1 deletion tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,15 @@
"emitDecoratorMetadata": true,
"esModuleInterop": true,
"experimentalDecorators": true,
"incremental": true,
"jsx": "preserve",
"lib": ["es5", "es6", "esnext", "dom"],
"listEmittedFiles": true,
"module": "ESNext",
"moduleResolution": "node",
"noEmit": true,

"noEmit": false,

"noFallthroughCasesInSwitch": true,

"noImplicitAny": false,
Expand All @@ -20,6 +23,9 @@
"noImplicitThis": true,
"noUnusedLocals": true,
"noUnusedParameters": true,

"outDir": "__out",

"resolveJsonModule": true,
"skipLibCheck": true,
"sourceMap": true,
Expand Down

0 comments on commit 340187e

Please sign in to comment.