From 7757accdb34f3de6e26199ed285964b47fcc5691 Mon Sep 17 00:00:00 2001 From: Basarat Ali Syed Date: Wed, 3 Feb 2016 05:22:31 +1100 Subject: [PATCH] :memo: prefer exclude --- README.md | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index e3b8f73f2..a34e1762b 100644 --- a/README.md +++ b/README.md @@ -75,17 +75,15 @@ you experience with the nightly so that they can be fixed promptly. "target": "es5", "sourceMap": true }, - "files": [ - "path/to/declaration.d.ts" + "exclude": [ + "node_modules" ] } ``` The [tsconfig.json](https://github.com/Microsoft/TypeScript/wiki/tsconfig.json) file controls TypeScript-related options so that your IDE, the `tsc` command, and this loader all share the -same options. The `files` property should generally be specified even if its just an empty array. -If the `files` property is not specified, then **all** TypeScript files in the directory and -subdirectories will be included, possibly even ones that should not be. +same options. TypeScript files from all subdirectories will get included except the ones matching `exclude`. #### Options