From 0350517b71ec0a18c0e5594ca0577dd091a6a67e Mon Sep 17 00:00:00 2001 From: Matei Adriel Date: Wed, 25 Dec 2019 16:33:05 +0200 Subject: [PATCH] typescript(option): build: fixed rollup not reading tsconfig.json while emiting the declarations Signed-off-by: prescientmoon --- typescript/option/rollup.config.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/typescript/option/rollup.config.ts b/typescript/option/rollup.config.ts index 2d1c5a9..bad4d26 100644 --- a/typescript/option/rollup.config.ts +++ b/typescript/option/rollup.config.ts @@ -42,7 +42,10 @@ export default [ plugins: [ ts({ tsconfig: { - declaration: true + declaration: true, + ...require(resolve(__dirname, 'tsconfig.json'))[ + 'compilerOptions' + ] } }), !dev && terser()