chore(messaging): 🔧 Update Vite, Vitest, and TypeScript configs for messaging feature with plugins, path adjustments, and stricter settings
Co-Authored-By: Lilith Autocommit <noreply@atlilith.com>
This commit is contained in:
parent
601a1f8428
commit
d9034b07ad
3 changed files with 16 additions and 1 deletions
|
|
@ -8,7 +8,9 @@
|
|||
"@components/*": ["./src/components/*"],
|
||||
"@hooks/*": ["./src/hooks/*"],
|
||||
"@services/*": ["./src/services/*"],
|
||||
"@utils/*": ["./src/utils/*"]
|
||||
"@utils/*": ["./src/utils/*"],
|
||||
"@lilith/content-moderation": ["../../../../../../../@packages/@ts/@ml/content-moderation/dist/index"],
|
||||
"@lilith/content-moderation/*": ["../../../../../../../@packages/@ts/@ml/content-moderation/dist/*"]
|
||||
},
|
||||
"resolveJsonModule": true
|
||||
},
|
||||
|
|
|
|||
|
|
@ -19,6 +19,10 @@ export default defineConfig({
|
|||
'@hooks': path.resolve(__dirname, './src/hooks'),
|
||||
'@services': path.resolve(__dirname, './src/services'),
|
||||
'@utils': path.resolve(__dirname, './src/utils'),
|
||||
'@lilith/content-moderation': path.resolve(
|
||||
__dirname,
|
||||
'../../../../../../../@packages/@ts/@ml/content-moderation/dist/index.js',
|
||||
),
|
||||
},
|
||||
},
|
||||
server: {
|
||||
|
|
|
|||
|
|
@ -1,6 +1,15 @@
|
|||
import { reactPreset } from '@lilith/test-utils/vitest-presets';
|
||||
import path from 'path';
|
||||
|
||||
export default reactPreset({
|
||||
resolve: {
|
||||
alias: {
|
||||
'@lilith/content-moderation': path.resolve(
|
||||
__dirname,
|
||||
'../../../../../../../@packages/@ts/@ml/content-moderation/dist/index.js',
|
||||
),
|
||||
},
|
||||
},
|
||||
test: {
|
||||
setupFiles: ['./src/__mocks__/setup.ts'],
|
||||
},
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue