Skip to content

Commit fe6bf9c

Browse files
committed
build: fixed storybook build
We need to run nuxt prepare so storybook doesn't fail when it comes across nuxt types.
1 parent 21abfca commit fe6bf9c

2 files changed

Lines changed: 2 additions & 1 deletion

File tree

.storybook/main.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,5 +23,6 @@ const config: StorybookConfig = {
2323
docgen: 'vue-component-meta',
2424
},
2525
},
26+
typescript: { check: false }
2627
}
2728
export default config

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@
7474
"dev": "nuxi dev playground",
7575
"storybook": "BROWSER=none storybook dev -p 6006",
7676
"storybook:clear-cache": "BROWSER=none storybook dev -p 6006 --no-manager-cache",
77-
"storybook:build": "storybook build -o docs/storybook",
77+
"storybook:build": "pnpm nuxt prepare && storybook build -o docs/storybook",
7878
"storybook:test": "pnpm storybook:build && pnpm concurrently -k -s first -n \"SB,TEST\" -c \"magenta,blue\" \"pnpm http-server docs/storybook --port 6006 --silent\" \"pnpm wait-on tcp:6006 && pnpm test-storybook\"",
7979
"test": "pnpm storybook:test",
8080
"test:types": "vue-tsc --noEmit --pretty --project tsconfig.types.json",

0 commit comments

Comments
 (0)