mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-20 21:43:33 +01:00
chore: upgrade storybook to v10 (#11334)
- Replaced deprecated `@storybook/addon-styling` with `@storybook/addon-themes` - Removed deprecated `@storybook/addon-essentials` and `@storybook/addon-interactions` - Upgraded `chromatic`, although it's seemingly unused anywhere - Upgraded `@types/node` to match the ones in the guide and website Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
This commit is contained in:
@@ -2,12 +2,7 @@ import type { StorybookConfig } from '@storybook/react-vite';
|
||||
|
||||
export default {
|
||||
stories: ['../src/**/*.stories.@(js|jsx|ts|tsx)'],
|
||||
addons: [
|
||||
'@storybook/addon-links',
|
||||
'@storybook/addon-essentials',
|
||||
'@storybook/addon-interactions',
|
||||
'@storybook/addon-styling',
|
||||
],
|
||||
addons: ['@storybook/addon-links', '@storybook/addon-themes', '@storybook/addon-docs'],
|
||||
core: {
|
||||
builder: '@storybook/builder-vite',
|
||||
},
|
||||
@@ -15,7 +10,4 @@ export default {
|
||||
name: '@storybook/react-vite',
|
||||
options: {},
|
||||
},
|
||||
docs: {
|
||||
autodocs: 'tag',
|
||||
},
|
||||
} satisfies StorybookConfig;
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import type { Preview } from '@storybook/react';
|
||||
import { withThemeByClassName } from '@storybook/addon-styling';
|
||||
import { withThemeByClassName } from '@storybook/addon-themes';
|
||||
|
||||
import '@unocss/reset/tailwind-compat.css';
|
||||
import './preview.css';
|
||||
|
||||
Reference in New Issue
Block a user