From 142c2aeabbb9a0f2057807dbe75f537e2fad6623 Mon Sep 17 00:00:00 2001 From: Bryan Kendall Date: Fri, 11 Oct 2019 14:51:35 -0700 Subject: [PATCH] add dev tsconfig for scripts directory --- .eslintrc.js | 2 +- .gitignore | 1 + tsconfig.dev.json | 17 +++++++++++++++++ tsconfig.json | 5 +---- 4 files changed, 20 insertions(+), 5 deletions(-) create mode 100644 tsconfig.dev.json diff --git a/.eslintrc.js b/.eslintrc.js index 1114b72e50f..bdd077ff041 100644 --- a/.eslintrc.js +++ b/.eslintrc.js @@ -56,7 +56,7 @@ module.exports = { "globals": {}, "parserOptions": { "ecmaVersion": "2017", - "project": ["tsconfig.json"], + "project": ["tsconfig.json", "tsconfig.dev.json"], "sourceType": "module", }, "plugins": [ diff --git a/.gitignore b/.gitignore index d5ef1af4397..3a700b82e88 100644 --- a/.gitignore +++ b/.gitignore @@ -14,3 +14,4 @@ yarn.lock scripts/*.json lib/ +dev/ diff --git a/tsconfig.dev.json b/tsconfig.dev.json new file mode 100644 index 00000000000..ba3664a4548 --- /dev/null +++ b/tsconfig.dev.json @@ -0,0 +1,17 @@ +{ + "compilerOptions": { + "allowJs": true, + "checkJs": false, + "module": "commonjs", + "strict": true, + "outDir": "dev", + "removeComments": false, + "target": "es2015", + "sourceMap": true, + "typeRoots": [ + "node_modules/@types", + "src/types" + ] + }, + "include": ["scripts/**/*"] +} diff --git a/tsconfig.json b/tsconfig.json index bc6a1bc02be..6215a1898be 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -13,8 +13,5 @@ "src/types" ] }, - "include": [ - "src/**/*", - "scripts/**/*" - ] + "include": ["src/**/*"] }