From 9c92ec3a55e37ca2bd4c5aa10f41d757a2521202 Mon Sep 17 00:00:00 2001 From: zhengbli Date: Thu, 19 May 2016 16:10:04 -0700 Subject: [PATCH] exclude outDir and add more default excludes --- src/compiler/commandLineParser.ts | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/compiler/commandLineParser.ts b/src/compiler/commandLineParser.ts index d9f9b040ac6..a8d955d3b16 100644 --- a/src/compiler/commandLineParser.ts +++ b/src/compiler/commandLineParser.ts @@ -701,11 +701,11 @@ namespace ts { } else { // by default exclude node_modules, and any specificied output directory - exclude = ["node_modules"]; - const outDir = json["compilerOptions"] && json["compilerOptions"]["outDir"]; - if (outDir) { - exclude.push(outDir); - } + exclude = ["node_modules", "bower_components", "jspm_packages"]; + } + const outDir = json["compilerOptions"] && json["compilerOptions"]["outDir"]; + if (outDir) { + exclude.push(outDir); } exclude = map(exclude, normalizeSlashes);