Nychthemeron/packages/playground/.storybook/main.ts
Matthew L McPeak 71ea2b88f4
Some checks failed
ci / build (push) Successful in 36s
ci / publish-docs (push) Failing after 9s
ci / publish (push) Failing after 14s
CI (#6)
Reviewed-on: McPeakDev/nychthemeron#6
Co-authored-by: Matthew L McPeak <m.mcpeak98@icloud.com>
Co-committed-by: Matthew L McPeak <m.mcpeak98@icloud.com>
2026-06-12 11:19:15 -04:00

27 lines
750 B
TypeScript

import { fileURLToPath } from 'node:url'
import { dirname } from 'node:path'
import type { StorybookConfig } from '@storybook/vue3-vite'
const config: StorybookConfig = {
stories: ['../stories/**/*.stories.ts', '../stories/**/*.mdx'],
addons: [getAbsolutePath('@storybook/addon-links'), getAbsolutePath('@storybook/addon-docs')],
framework: {
name: getAbsolutePath('@storybook/vue3-vite'),
options: {},
},
core: {
disableTelemetry: true,
},
viteFinal: (config) => {
if (config.build) {
config.build.chunkSizeWarningLimit = 1000
}
return config
},
}
export default config
function getAbsolutePath(value: string): string {
return dirname(fileURLToPath(import.meta.resolve(`${value}/package.json`)))
}