Skip to content

Commit

Permalink
fix(misc): adapt storybook deps
Browse files Browse the repository at this point in the history
  • Loading branch information
MaxKless committed Jan 22, 2025
1 parent 1ee8b70 commit ce0cabe
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 1,189 deletions.
10 changes: 6 additions & 4 deletions graph/migrate/.storybook/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,20 +4,22 @@ import type { StorybookConfig } from '@storybook/react-vite';
// nx-ignore-next-line
import { nxViteTsPaths } from '@nx/vite/plugins/nx-tsconfig-paths.plugin';
import { mergeConfig } from 'vite';
import react from '@vitejs/plugin-react';

const config: StorybookConfig = {
stories: ['../src/lib/**/*.@(mdx|stories.@(js|jsx|ts|tsx))'],
addons: ['@storybook/addon-essentials', '@storybook/addon-interactions'],
stories: ['../src/lib/**/*.stories.@(js|jsx|ts|tsx|mdx)'],
addons: ['@storybook/addon-essentials'],

framework: {
name: '@storybook/react-vite',
options: {},
},

viteFinal: async (config) =>
mergeConfig(config, {
plugins: [react(), nxViteTsPaths()],
plugins: [nxViteTsPaths()],
}),

docs: {},
};

export default config;
Expand Down
12 changes: 12 additions & 0 deletions graph/migrate/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
{
"name": "migrate",
"version": "1.0.0",
"description": "",
"main": "index.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
},
"keywords": [],
"author": "",
"license": "ISC"
}
4 changes: 0 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -111,12 +111,9 @@
"@storybook/addon-essentials": "8.4.6",
"@storybook/addon-interactions": "8.4.6",
"@storybook/core-server": "8.4.6",
"@storybook/jest": "^0.2.3",
"@storybook/react": "8.4.6",
"@storybook/react-vite": "8.4.6",
"@storybook/react-webpack5": "8.4.6",
"@storybook/test-runner": "^0.19.0",
"@storybook/testing-library": "^0.2.2",
"@storybook/types": "^8.4.6",
"@supabase/supabase-js": "^2.26.0",
"@svgr/rollup": "^8.1.0",
Expand Down Expand Up @@ -153,7 +150,6 @@
"@typescript-eslint/rule-tester": "^8.19.0",
"@typescript-eslint/type-utils": "^8.19.0",
"@typescript-eslint/utils": "^8.19.0",
"@vitejs/plugin-react": "^4.2.0",
"@xstate/immer": "0.3.1",
"@xstate/inspect": "0.7.0",
"@xstate/react": "3.0.1",
Expand Down
Loading

0 comments on commit ce0cabe

Please sign in to comment.