Skip to content

Commit

Permalink
fix(build): omit story files
Browse files Browse the repository at this point in the history
  • Loading branch information
MiroslavPetrik committed Mar 5, 2024
1 parent 2e12409 commit 26b76df
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 5 deletions.
9 changes: 5 additions & 4 deletions src/components/list/List.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,9 @@ import {
} from "form-atoms";

import { AddButtonProps, List, ListProps, RemoveButtonProps } from "./List";
import { ListField } from "./ListField.mock";
import { listAtom } from "../../atoms";
import { PicoFieldName } from "../../scenarios/PicoFieldName";
import { StoryForm } from "../../scenarios/StoryForm";
import { PicoFieldName } from "../../story/PicoFieldName";
import { StoryForm } from "../../story/StoryForm";

const RemoveButton = ({ remove }: RemoveButtonProps) => (
<button type="button" className="outline secondary" onClick={remove}>
Expand All @@ -35,7 +34,9 @@ const meta = {

export default meta;

const AddHobbyButton = ({ add }: AddButtonProps<any>) => (
const AddHobbyButton = ({
add,
}: AddButtonProps<{ hobby: FieldAtom<string> }>) => (
<button type="button" className="outline" onClick={() => add()}>
Add hobby
</button>
Expand Down
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion tsconfig.build.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
},
"exclude": [
"setup.ts",
"src/showcase/*",
"src/story/*",
"src/**/*.stories.tsx",
"src/**/*.test.tsx",
"src/**/*.test.ts",
Expand Down

0 comments on commit 26b76df

Please sign in to comment.