Skip to content

Commit b2406fe

Browse files
Exclude some dirs in tsconfig.json
In `tsconfig.json` we have to exclude `node_modules`, `coverage` and `scratch` dirs. When they are huge (in my case scratch dir was 1.5 GB), TypeScript is not working at all in VS Code.
1 parent f2ed563 commit b2406fe

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

tsconfig.json

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,5 +3,10 @@
33
"target": "ES5",
44
"module": "commonjs",
55
"sourceMap": true
6-
}
7-
}
6+
},
7+
"exclude": [
8+
"node_modules",
9+
"scratch",
10+
"coverage"
11+
]
12+
}

0 commit comments

Comments
 (0)