From 00b2436636e0bc904b4b5737a0d51ec5f493ee30 Mon Sep 17 00:00:00 2001 From: Ali Ijaz Sheikh Date: Tue, 3 Apr 2018 16:07:25 -0700 Subject: [PATCH] fix: exclude section is not necessary (#143) tsconfig.json doesn't need an exclude section when an include section is present. Fixes: https://github.com/google/ts-style/issues/70 --- src/init.ts | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/init.ts b/src/init.ts index 632e1d5a..acb68c02 100644 --- a/src/init.ts +++ b/src/init.ts @@ -155,8 +155,7 @@ async function generateTsConfig(options: Options): Promise { const tsconfig = formatJson({ extends: './node_modules/gts/tsconfig-google.json', compilerOptions: {rootDir: '.', outDir: 'build'}, - include: ['src/*.ts', 'src/**/*.ts', 'test/*.ts', 'test/**/*.ts'], - exclude: ['node_modules'] + include: ['src/*.ts', 'src/**/*.ts', 'test/*.ts', 'test/**/*.ts'] }); let writeTsConfig = true;