From 84e6d6738b6c777f5f1b72e7d0bf02e570514880 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=F0=9F=91=A8=F0=9F=8F=BC=E2=80=8D=F0=9F=92=BB=20Romain=20M?= =?UTF-8?q?arcadier-Muller?= Date: Fri, 23 Oct 2020 10:27:56 +0200 Subject: [PATCH] feat(jsii): turn off 'stripInternal' in generated tsconfig.json Stop setting 'stipInternal: true' in tsconfig.json files, as this makes it impossible to mark intentionally unexported types as @internal without causing downstream compilation failures due to missing type declarations. --- packages/jsii/lib/compiler.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/jsii/lib/compiler.ts b/packages/jsii/lib/compiler.ts index f1a26e041c..377a647575 100644 --- a/packages/jsii/lib/compiler.ts +++ b/packages/jsii/lib/compiler.ts @@ -32,7 +32,7 @@ const BASE_COMPILER_OPTIONS: ts.CompilerOptions = { strict: true, strictNullChecks: true, strictPropertyInitialization: true, - stripInternal: true, + stripInternal: false, target: ts.ScriptTarget.ES2018, };