Skip to content
This repository has been archived by the owner on Feb 24, 2024. It is now read-only.

Commit

Permalink
Disable TypeScript incremental build
Browse files Browse the repository at this point in the history
It seems that incremental build doesn't work correctly with ts-node or
ts-jest. Sometimes, probably after unit test failure, lib directory
contains src and test directories, but only content of src should be
there, because baseUrl is set to "src" in tsconfig.json.

Disabling the incremental build fix this issue. Since this project is
quite small I don't think disabling this feature will have major impact
on build time.

Following issue in ts-node project might be related:
TypeStrong/ts-node#817
  • Loading branch information
FastAlien committed Sep 24, 2020
1 parent 2d7f476 commit d7322d5
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,9 @@
"extends": "@tsconfig/node10/tsconfig.json",
"compilerOptions": {
"baseUrl": "src",
"incremental": true,
"declaration": true,
"sourceMap": true,
"outDir": "lib",
"tsBuildInfoFile": "./build/tsconfig.tsbuildinfo"
"outDir": "lib"
},
"include": [
"src/**/*"
Expand Down

0 comments on commit d7322d5

Please sign in to comment.