mirror of
https://github.com/modrinth/code.git
synced 2026-08-28 18:45:15 +00:00
* Add explicit extensions to relative imports * Add linting rule * Fix outdated pnpm lock * fix: use esbuild --------- Co-authored-by: Prospector <6166773+Prospector@users.noreply.github.com> Co-authored-by: Calum H. (IMB11) <contact@cal.engineer> Co-authored-by: Calum H. <calum@modrinth.com>
25 lines
576 B
TypeScript
25 lines
576 B
TypeScript
import path from 'node:path'
|
|
|
|
import type { StorybookConfig } from '@storybook/vue3-vite'
|
|
import { mergeConfig } from 'vite'
|
|
|
|
const config: StorybookConfig = {
|
|
framework: {
|
|
name: '@storybook/vue3-vite',
|
|
options: {
|
|
docgen: false,
|
|
},
|
|
},
|
|
stories: ['../src/**/*.stories.@(js|jsx|mjs|ts|tsx)'],
|
|
addons: ['@storybook/addon-themes', '@storybook/addon-a11y'],
|
|
viteFinal: async (config) =>
|
|
mergeConfig(config, {
|
|
resolve: {
|
|
alias: {
|
|
'@modrinth/api-client': path.resolve(__dirname, '../../api-client/src/index.ts'),
|
|
},
|
|
},
|
|
}),
|
|
}
|
|
export default config
|