From cff7b53b2b018fdd192c54a1591605d05ce04584 Mon Sep 17 00:00:00 2001 From: Justin Poehnelt Date: Mon, 22 Nov 2021 15:36:10 -0700 Subject: [PATCH] fix: broken declarations (#267) --- rollup.config.js | 3 ++- tsconfig.json | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/rollup.config.js b/rollup.config.js index f12bb0fe..1da15c62 100644 --- a/rollup.config.js +++ b/rollup.config.js @@ -28,7 +28,8 @@ const GLOBALS = { }; const PLUGINS = [ - typescript(), + typescript({tsconfig: './tsconfig.json', declarationDir: './'}), + , resolve({ browser: true, resolveOnly: [/^(?!react$)/], diff --git a/tsconfig.json b/tsconfig.json index 297995e4..61e2021e 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -16,5 +16,6 @@ "src/index.tsx", "src/index.test.tsx", "examples/**/*.tsx" - ] + ], + "exclude": ["node_modules", "./dist"] }