Skip to content

Commit e5b3670

Browse files
committed
StoryBook is separated from the root folder
1 parent 6d1fc78 commit e5b3670

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

.storybook/main.ts

+3-3
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@ import type { StorybookConfig } from '@storybook/nextjs';
22

33
const config: StorybookConfig = {
44
stories: [
5-
'../src/**/*.mdx',
6-
'../src/**/*.stories.@(js|jsx|mjs|ts|tsx)',
7-
'../src/stories/components/**/*.stories.@(js|jsx|mjs|ts|tsx)',
5+
'../storybook/**/*.mdx',
6+
'../storybook/**/*.stories.@(js|jsx|mjs|ts|tsx)',
7+
'../storybook/stories/components/**/*.stories.@(js|jsx|mjs|ts|tsx)',
88
],
99
addons: [
1010
'@storybook/addon-links',

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
"start": "next start",
1313
"lint:check": "eslint --max-warnings 0 --config .eslintrc .",
1414
"lint:fix": "eslint --max-warnings 0 --config .eslintrc . --fix",
15-
"format:fix": "prettier --write \"src/**/*.{ts,tsx,json}\"",
15+
"format:fix": "prettier --write \"**/*.{ts,tsx,json}\"",
1616
"format:check": "prettier --check \"**/*.{ts,tsx,json}\"",
1717
"prisma:docker": "npm run prisma:migrate && npm run db:seed && npm run studio",
1818
"dev:docker": "npm run prisma:docker & next dev",

src/stories/components/CourseCard.stories.ts renamed to storybook/stories/components/CourseCard.stories.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1+
import { CourseCard } from '@/components/CourseCard';
12
import { Meta, StoryObj } from '@storybook/react';
2-
import { CourseCard } from '../../components/CourseCard';
33

44
const meta: Meta<typeof CourseCard> = {
55
title: 'CourseCard',

0 commit comments

Comments
 (0)