refactor(ui): isolate session components (#33670)
This commit is contained in:
@@ -6,6 +6,7 @@ import { playgroundCss } from "./playground-css-plugin"
|
||||
|
||||
const here = path.dirname(fileURLToPath(import.meta.url))
|
||||
const ui = path.resolve(here, "../../ui")
|
||||
const sessionUi = path.resolve(here, "../../session-ui")
|
||||
const app = path.resolve(here, "../../app/src")
|
||||
const mocks = path.resolve(here, "./mocks")
|
||||
|
||||
@@ -21,7 +22,11 @@ export default defineMain({
|
||||
"@storybook/addon-a11y",
|
||||
"@storybook/addon-vitest",
|
||||
],
|
||||
stories: ["../../ui/src/**/*.stories.@(js|jsx|mjs|ts|tsx)", "../../app/src/**/*.stories.@(js|jsx|mjs|ts|tsx)"],
|
||||
stories: [
|
||||
"../../ui/src/**/*.stories.@(js|jsx|mjs|ts|tsx)",
|
||||
"../../session-ui/src/**/*.stories.@(js|jsx|mjs|ts|tsx)",
|
||||
"../../app/src/**/*.stories.@(js|jsx|mjs|ts|tsx)",
|
||||
],
|
||||
async viteFinal(config) {
|
||||
const { mergeConfig, searchForWorkspaceRoot } = await import("vite")
|
||||
return mergeConfig(config, {
|
||||
@@ -59,7 +64,7 @@ export default defineMain({
|
||||
},
|
||||
server: {
|
||||
fs: {
|
||||
allow: [searchForWorkspaceRoot(process.cwd()), ui, app, mocks],
|
||||
allow: [searchForWorkspaceRoot(process.cwd()), ui, sessionUi, app, mocks],
|
||||
},
|
||||
},
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user