make ui stories work

This commit is contained in:
Jeppe Reinhold 2022-10-11 23:49:24 +02:00
parent 141e17c811
commit fb2abe9c0b
5 changed files with 4 additions and 4 deletions

View File

@ -80,7 +80,7 @@
"sandbox": "ts-node ../scripts/sandbox.ts",
"serve-storybooks": "http-server ./built-storybooks -p 8001",
"smoketest-storybooks": "cross-env STORYBOOK_DISPLAY_WARNING=true DISPLAY_WARNING=true node -r esm ../scripts/smoketest-storybooks.js",
"storybook:ui": "./lib/cli/bin/index.js dev -p 6006 --config-dir sb-for-sb-ui",
"storybook:ui": "./lib/cli/bin/index.js dev --config-dir sb-for-sb-ui --port 6006 --no-manager-cache",
"test": "NODE_OPTIONS=--max_old_space_size=4096 jest --config ./jest.config.js",
"test:cli": "npm --prefix lib/cli run test",
"test:e2e-examples-playwright": "playwright test",

View File

@ -2,8 +2,7 @@ import type { StorybookConfig } from '../frameworks/react-vite/dist';
const config: StorybookConfig = {
stories: [
'../lib/ui/src/components/notifications/NotificationItem.stories.jsx',
// '../lib/ui/src/**/*.stories.@(ts|tsx|js|jsx|mdx)',
'../lib/ui/src/**/*.stories.@(ts|tsx|js|jsx|mdx)',
// '../lib/components/src/**/*.stories.@(js|jsx|ts|tsx|mdx)',
// './../../addons/interactions/**/*.stories.@(ts|tsx|js|jsx|mdx)',
],

View File

@ -4,5 +4,6 @@ import react from '@vitejs/plugin-react';
// https://vitejs.dev/config/
export default defineConfig({
plugins: [react()],
// TODO: remove classic jsxRuntime once we upgrade to React 18
plugins: [react({ jsxRuntime: 'classic' })],
});