From e6397db9b7e1a05cd756cef6aa53ad4f3bc85e4a Mon Sep 17 00:00:00 2001 From: Yossi Saadi Date: Tue, 21 May 2024 12:50:00 +0300 Subject: [PATCH] build: exclude tests and stories related only in rollup --- packages/core/rollup.config.js | 6 +++++- packages/core/tsconfig.json | 3 +-- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/packages/core/rollup.config.js b/packages/core/rollup.config.js index c599839c7f..50cf4fd6ee 100644 --- a/packages/core/rollup.config.js +++ b/packages/core/rollup.config.js @@ -76,7 +76,11 @@ export default { nodeResolve({ extensions: [...EXTENSIONS, ".json", ".css"] }), - typescript(), + typescript({ + tsconfigOverride: { + exclude: ["**/__tests__", "**/__stories__", path.join(SRC_PATH, "storybook")] + } + }), babel({ babelHelpers: "bundled", extensions: EXTENSIONS diff --git a/packages/core/tsconfig.json b/packages/core/tsconfig.json index 51a01c8530..0aa0351c29 100644 --- a/packages/core/tsconfig.json +++ b/packages/core/tsconfig.json @@ -10,6 +10,5 @@ "allowSyntheticDefaultImports": true, "plugins": [{ "name": "typescript-plugin-css-modules" }] }, - "include": ["src/**/*", "types/**/*"], - "exclude": ["**/__tests__", "**/__stories__"] + "include": ["src/**/*", "types/**/*"] }