mirror of
https://github.com/modrinth/code.git
synced 2026-08-25 00:55:25 +00:00
fix(api-client): add explicit extensions to relative imports (#6609)
* 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>
This commit is contained in:
co-authored by
Prospector
Calum H.
Calum H.
parent
cafe58dc3c
commit
8cca911775
@@ -1,4 +1,7 @@
|
||||
import path from 'node:path'
|
||||
|
||||
import type { StorybookConfig } from '@storybook/vue3-vite'
|
||||
import { mergeConfig } from 'vite'
|
||||
|
||||
const config: StorybookConfig = {
|
||||
framework: {
|
||||
@@ -9,5 +12,13 @@ const config: StorybookConfig = {
|
||||
},
|
||||
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
|
||||
|
||||
Reference in New Issue
Block a user