From 33fd9beb2e083e04f9547ba34b4f6bd038cf43a5 Mon Sep 17 00:00:00 2001 From: Rebecca Stevens Date: Thu, 19 Nov 2020 12:11:52 +1300 Subject: [PATCH] build: strip comments from dist files type files still keep their comments --- tsconfig.json | 1 + tsconfig.test.json | 1 + tsconfig.typedef.json | 3 ++- 3 files changed, 4 insertions(+), 1 deletion(-) diff --git a/tsconfig.json b/tsconfig.json index bea8e37..a4ec8c4 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -10,6 +10,7 @@ "strict": true, "skipLibCheck": true, "forceConsistentCasingInFileNames": true, + "removeComments": true, "baseUrl": ".", "paths": { "deepmerge": [ diff --git a/tsconfig.test.json b/tsconfig.test.json index 5b973be..9cb74ce 100644 --- a/tsconfig.test.json +++ b/tsconfig.test.json @@ -2,6 +2,7 @@ "extends": "./tsconfig.json", "compilerOptions": { "module": "commonjs", + "removeComments": false, "noFallthroughCasesInSwitch": false, "noImplicitAny": false, "noImplicitReturns": false, diff --git a/tsconfig.typedef.json b/tsconfig.typedef.json index 0d40075..8cd68ed 100644 --- a/tsconfig.typedef.json +++ b/tsconfig.typedef.json @@ -3,7 +3,8 @@ "compilerOptions": { "declaration": true, "declarationDir": "types/", - "emitDeclarationOnly": true + "emitDeclarationOnly": true, + "removeComments": false }, "include": ["./src"] }