mirror of
https://github.com/prymitive/karma
synced 2026-05-07 03:26:52 +00:00
fix(ui): exclude storybook stories from typescript builds
This commit is contained in:
committed by
Łukasz Mierzwa
parent
42e6678b68
commit
313634424f
@@ -72,7 +72,7 @@ addDecorator((story) => {
|
||||
);
|
||||
});
|
||||
|
||||
const req = require.context("../src/Components", true, /\.stories\.(js|tsx)$/);
|
||||
const req = require.context("../src/Components", true, /\.stories\.tsx$/);
|
||||
|
||||
function loadStories() {
|
||||
req.keys().forEach((filename) => req(filename));
|
||||
|
||||
@@ -16,5 +16,6 @@
|
||||
"noEmit": true,
|
||||
"jsx": "react"
|
||||
},
|
||||
"include": ["src"]
|
||||
"include": ["src"],
|
||||
"exclude": ["**/*.stories.tsx"]
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user