From 09b21adc1bfb5b0e7a96b2dd420dd89052f7cdd9 Mon Sep 17 00:00:00 2001 From: Kohei Watanabe Date: Fri, 7 Feb 2020 14:38:54 +0900 Subject: [PATCH] enable esModuleInterop, allowJs --- tsconfig.base.json | 1 + tsconfig.cjs.json | 3 ++- tsconfig.esm.json | 1 - 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/tsconfig.base.json b/tsconfig.base.json index 1c399df..01ac0f6 100644 --- a/tsconfig.base.json +++ b/tsconfig.base.json @@ -4,6 +4,7 @@ "target": "esnext", "moduleResolution": "node", "allowJs": true, + "checkJs": true, "declaration": true, "noImplicitThis": true, "alwaysStrict": true, diff --git a/tsconfig.cjs.json b/tsconfig.cjs.json index 6072d70..c9fa405 100644 --- a/tsconfig.cjs.json +++ b/tsconfig.cjs.json @@ -1,7 +1,8 @@ { "extends": "./tsconfig.base.json", "compilerOptions": { + "outDir": "cjs", "module": "commonjs", - "outDir": "cjs" + "esModuleInterop": true } } diff --git a/tsconfig.esm.json b/tsconfig.esm.json index 321584b..f6fd47d 100644 --- a/tsconfig.esm.json +++ b/tsconfig.esm.json @@ -1,7 +1,6 @@ { "extends": "./tsconfig.base.json", "compilerOptions": { - "module": "esnext", "outDir": "esm" } }