Skip to content

Commit af43c3f

Browse files
chore: update Storybook to v10 (#5844)
1 parent 69f54db commit af43c3f

File tree

4 files changed

+157
-125
lines changed

4 files changed

+157
-125
lines changed

1st-gen/package.json

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -391,6 +391,9 @@
391391
},
392392
"prestorybook": {
393393
"command": "cem analyze --outdir storybook/",
394+
"dependencies": [
395+
"build:ts"
396+
],
394397
"files": [
395398
"packages/**/*.ts",
396399
"tools/**/*.ts"
@@ -409,9 +412,8 @@
409412
"storybook": {
410413
"command": "storybook dev -p 8080 -c storybook",
411414
"dependencies": [
412-
"build:ts",
413-
"build:watch",
414-
"prestorybook"
415+
"prestorybook",
416+
"build:watch"
415417
],
416418
"service": true
417419
},

2nd-gen/packages/swc/.storybook/main.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
1-
import { resolve } from 'path';
1+
import { resolve, dirname } from 'path';
2+
import { fileURLToPath } from 'url';
3+
4+
const __dirname = dirname(fileURLToPath(import.meta.url));
25

36
/** @type { import('@storybook/web-components-vite').StorybookConfig } */
47
const config = {

2nd-gen/packages/swc/package.json

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -54,12 +54,12 @@
5454
"devDependencies": {
5555
"@axe-core/playwright": "4.10.2",
5656
"@custom-elements-manifest/analyzer": "0.10.8",
57-
"@storybook/addon-a11y": "9.1.10",
57+
"@storybook/addon-a11y": "10.0.1",
5858
"@storybook/addon-designs": "10.0.2",
59-
"@storybook/addon-docs": "9.1.10",
60-
"@storybook/addon-vitest": "9.1.10",
59+
"@storybook/addon-docs": "10.0.1",
60+
"@storybook/addon-vitest": "10.0.1",
6161
"@storybook/test-runner": "0.23.0",
62-
"@storybook/web-components-vite": "9.1.10",
62+
"@storybook/web-components-vite": "10.0.1",
6363
"@types/react": "19.1.16",
6464
"@types/react-dom": "19.1.9",
6565
"@vitest/browser": "3.2.4",
@@ -74,7 +74,7 @@
7474
"react": "19.1.1",
7575
"react-dom": "19.1.1",
7676
"rimraf": "6.0.1",
77-
"storybook": "9.1.10",
77+
"storybook": "10.0.1",
7878
"typescript": "5.9.2",
7979
"vite": "7.1.7",
8080
"vite-plugin-dts": "4.5.4",

0 commit comments

Comments
 (0)