How to exclude some files from TypeScript build

If you are using TypeScript nightly (and only with TypeScript 1.6 up) you can use in your tsconfig.json new property exclude which will mostly be used for node_modules like this

(more on this here :


"compilerOptions": {
"out": "../../built/local/tsc.js",
"sourceMap": true
"exclude": [

More on exclude property here :


This site uses Akismet to reduce spam. Learn how your comment data is processed.