Skip to content

Commit

Permalink
build: exclude tests and stories related only in rollup
Browse files Browse the repository at this point in the history
  • Loading branch information
YossiSaadi committed May 21, 2024
1 parent c5dbbdf commit e6397db
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
6 changes: 5 additions & 1 deletion packages/core/rollup.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
3 changes: 1 addition & 2 deletions packages/core/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,5 @@
"allowSyntheticDefaultImports": true,
"plugins": [{ "name": "typescript-plugin-css-modules" }]
},
"include": ["src/**/*", "types/**/*"],
"exclude": ["**/__tests__", "**/__stories__"]
"include": ["src/**/*", "types/**/*"]
}

0 comments on commit e6397db

Please sign in to comment.