Skip to content

Commit db1987a

Browse files
committed
chore: storybook 10, node 24
1 parent 5f1fb5d commit db1987a

10 files changed

Lines changed: 953 additions & 690 deletions

File tree

.github/workflows/coverage.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ jobs:
88

99
strategy:
1010
matrix:
11-
node-version: [22.x]
11+
node-version: [24.x]
1212

1313
steps:
1414
- name: Checkout repository

.github/workflows/main.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ jobs:
77
runs-on: ${{ matrix.os }}
88
strategy:
99
matrix:
10-
node: ['22.x']
10+
node: ['24.x']
1111
os: [ubuntu-latest, macOS-latest]
1212

1313
steps:

.github/workflows/size.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,10 @@ jobs:
77
CI_JOB_NUMBER: 1
88
steps:
99
- uses: actions/checkout@v4
10+
- name: Set up Node.js 24.x
11+
uses: actions/setup-node@v4
12+
with:
13+
node-version: 24.x
1014
- name: Install PNPM
1115
run: npm install -g pnpm
1216
- name: Install dependencies

.github/workflows/surge.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ jobs:
1212

1313
strategy:
1414
matrix:
15-
node-version: [22.x]
15+
node-version: [24.x]
1616

1717
steps:
1818
- name: Checkout repository

.nvmrc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
24
Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,14 @@
1-
const path = require('path');
1+
import path from 'node:path';
2+
import { fileURLToPath } from 'node:url';
3+
import type { StorybookConfig } from '@storybook/react-vite';
24

3-
module.exports = {
5+
const __dirname = path.dirname(fileURLToPath(import.meta.url));
6+
7+
const config: StorybookConfig = {
48
stories: ['../stories/**/*.stories.@(ts|tsx|js|jsx)'],
59
framework: {
610
name: '@storybook/react-vite',
7-
options: {}
11+
options: {},
812
},
913
addons: [
1014
'@storybook/addon-links',
@@ -21,7 +25,7 @@ module.exports = {
2125
},
2226
},
2327
},
24-
'@storybook/addon-docs'
28+
'@storybook/addon-docs',
2529
],
2630
// https://storybook.js.org/docs/react/configure/typescript#mainjs-configuration
2731
typescript: {
@@ -37,3 +41,5 @@ module.exports = {
3741
return config;
3842
},
3943
};
44+
45+
export default config;

documentation/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
"private": true,
55
"packageManager": "pnpm@10.32.1",
66
"engines": {
7-
"node": ">=18.0"
7+
"node": ">=24"
88
},
99
"scripts": {
1010
"docusaurus": "docusaurus",

package.json

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@
3939
},
4040
"packageManager": "pnpm@10.32.1",
4141
"engines": {
42-
"node": ">=10"
42+
"node": ">=24"
4343
},
4444
"scripts": {
4545
"start": "tsdown --watch",
@@ -91,11 +91,11 @@
9191
"devDependencies": {
9292
"@eslint/js": "^9.39.4",
9393
"@size-limit/preset-small-lib": "^12.1.0",
94-
"@storybook/addon-docs": "^9.1.20",
95-
"@storybook/addon-links": "^9.1.20",
94+
"@storybook/addon-docs": "^10.4.0",
95+
"@storybook/addon-links": "^10.4.0",
9696
"@storybook/preset-scss": "^1.0.3",
97-
"@storybook/react": "^9.1.20",
98-
"@storybook/react-vite": "^9.1.20",
97+
"@storybook/react": "^10.4.0",
98+
"@storybook/react-vite": "^10.4.0",
9999
"@testing-library/dom": "^10.0.0",
100100
"@testing-library/jest-dom": "^6.0.0",
101101
"@testing-library/react": "^16.0.0",
@@ -107,7 +107,7 @@
107107
"@vitest/ui": "^3.2.4",
108108
"autoprefixer": "^10.4.20",
109109
"eslint": "^9.39.4",
110-
"eslint-plugin-storybook": "^9.1.20",
110+
"eslint-plugin-storybook": "^10.4.0",
111111
"husky": "^7.0.4",
112112
"jsdom": "^27.0.0",
113113
"postcss": "^8.5.14",
@@ -119,7 +119,7 @@
119119
"sass": "^1.49.11",
120120
"sass-loader": "^10.1.0",
121121
"size-limit": "^12.1.0",
122-
"storybook": "^9.1.20",
122+
"storybook": "^10.4.0",
123123
"tailwindcss": "^2.2.19",
124124
"tsdown": "^0.22.0",
125125
"tslib": "^2.3.1",

pnpm-lock.yaml

Lines changed: 926 additions & 674 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

stories/tsconfig.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"target": "esnext",
44
"lib": ["dom", "esnext"],
55
"module": "esnext",
6-
"moduleResolution": "node",
6+
"moduleResolution": "bundler",
77
"jsx": "react",
88
"esModuleInterop": true,
99
"skipLibCheck": true,

0 commit comments

Comments
 (0)