deps-upgrade(frontend-config): ⬆️ Update vite, vitest, and TypeScript configs for ESM compatibility and performance improvements
Co-Authored-By: Lilith Autocommit <noreply@atlilith.com>
This commit is contained in:
parent
c387fcdfb4
commit
6a0fea31e0
7 changed files with 32 additions and 5 deletions
|
|
@ -32,7 +32,7 @@
|
|||
"@features/marketplace": ["../../marketplace/shared/src"],
|
||||
"@features/blog": ["../../blog/shared/src"],
|
||||
"@features/consumable": ["../../consumable/shared/src"],
|
||||
"@deployment-locales/*": ["../../../@deployments/atlilith.www/locales/*"],
|
||||
"@deployment-locales/*": ["../../../../deployments/@domains/atlilith.www/root/locales/*"],
|
||||
"@ui/theme": ["node_modules/@lilith/ui-theme"],
|
||||
"@ui/themes": ["node_modules/@lilith/ui-themes"],
|
||||
"@ui/backgrounds": ["node_modules/@lilith/ui-backgrounds"],
|
||||
|
|
|
|||
|
|
@ -79,7 +79,7 @@ export default defineConfig({
|
|||
// Internal workspace packages (within codebase/)
|
||||
'@packages': path.resolve(__dirname, '../../../@packages'),
|
||||
// Deployment-specific locales (fallback to atlilith.www when feature runs standalone)
|
||||
'@deployment-locales': path.resolve(__dirname, '../../../@deployments/atlilith.www/locales'),
|
||||
'@deployment-locales': path.resolve(__dirname, '../../../../deployments/@domains/atlilith.www/root/locales'),
|
||||
// Deployment locale manifest (fallback to atlilith.www when feature runs standalone)
|
||||
'@deployment-locale-manifest': path.resolve(__dirname, '../../../../deployments/@domains/atlilith.www/root/src/locale-manifest.ts'),
|
||||
// Feature shared modules (specific paths BEFORE generic @features prefix)
|
||||
|
|
|
|||
|
|
@ -15,7 +15,7 @@
|
|||
"@store/*": ["./src/store/*"],
|
||||
"@utils/*": ["./src/utils/*"],
|
||||
"@i18n-locales/*": ["../../i18n/locales/*"],
|
||||
"@deployment-locales/*": ["../../../@deployments/atlilith.www/locales/*"]
|
||||
"@deployment-locales/*": ["../../../../deployments/@domains/atlilith.www/root/locales/*"]
|
||||
},
|
||||
"resolveJsonModule": true
|
||||
},
|
||||
|
|
|
|||
|
|
@ -56,7 +56,7 @@ export default defineConfig({
|
|||
'@store': path.resolve(__dirname, './src/store'),
|
||||
'@utils': path.resolve(__dirname, './src/utils'),
|
||||
// Deployment-specific locales (fallback to trustedmeet.www when feature runs standalone)
|
||||
'@deployment-locales': path.resolve(__dirname, '../../../@deployments/trustedmeet.www/locales'),
|
||||
'@deployment-locales': path.resolve(__dirname, '../../../../deployments/@domains/trustedmeet.www/root/locales'),
|
||||
'@ui/effects-sound': path.resolve(__dirname, '../../../../../../../@packages/@ts/ui-react/packages/ui-effects-sound/src'),
|
||||
'@ui/effects-mouse': path.resolve(__dirname, '../../../../../../../@packages/@ts/ui-react/packages/ui-effects-mouse/src'),
|
||||
'@lilith/profile-display-client': path.resolve(__dirname, '../../profile/client/display/src'),
|
||||
|
|
|
|||
|
|
@ -30,7 +30,8 @@
|
|||
"@lilith/attribute-hooks": ["../../attributes/shared/src"],
|
||||
"@lilith/email-admin": ["../../email/frontend-admin/src"],
|
||||
"@lilith/qa-admin": ["../../quality-assurance/frontend-admin/src"],
|
||||
"@lilith/feature-flags-admin": ["../../feature-flags/frontend-admin/dist"]
|
||||
"@lilith/feature-flags-admin": ["../../feature-flags/frontend-admin/dist"],
|
||||
"@lilith/cms-admin": ["../../cms/frontend-admin/dist"]
|
||||
}
|
||||
},
|
||||
"include": ["src"],
|
||||
|
|
|
|||
|
|
@ -57,6 +57,9 @@ const attributesUrl = process.env.VITE_ATTRIBUTES_URL || getServiceUrl('attribut
|
|||
const imageGeneratorUrl = process.env.VITE_IMAGE_GENERATOR_URL || getServiceUrl('image-generator.api');
|
||||
const semanticUrl = process.env.VITE_SEMANTIC_URL || getServiceUrl('knowledge-verification.api');
|
||||
const blogUrl = process.env.VITE_BLOG_URL || 'http://localhost:3021';
|
||||
const cmsUrl = process.env.VITE_CMS_URL || getServiceUrl('cms.api');
|
||||
const translationsUrl = process.env.VITE_TRANSLATIONS_URL || getServiceUrl('atlilith.www.api');
|
||||
const featureFlagsUrl = process.env.VITE_FEATURE_FLAGS_URL || getServiceUrl('feature-flags.api');
|
||||
|
||||
// Plugin to handle .d.ts imports (fixes broken styled.d.ts in ui-* packages)
|
||||
// Returns an empty module instead of external to prevent 404s in browser
|
||||
|
|
@ -114,6 +117,8 @@ export default defineConfig({
|
|||
// These packages export from dist/ but aren't pre-built in Docker E2E context
|
||||
'@lilith/qa-admin': path.resolve(__dirname, '../../quality-assurance/frontend-admin/src/index.ts'),
|
||||
'@lilith/blog-admin': path.resolve(__dirname, '../../blog/frontend-admin/src/index.ts'),
|
||||
// CMS admin uses @/ path aliases internally — must resolve to dist (compiled), not source
|
||||
'@lilith/cms-admin': path.resolve(__dirname, '../../cms/frontend-admin/dist'),
|
||||
'@features/blog': path.resolve(__dirname, '../../blog/shared/src'),
|
||||
'@lilith/email-admin': path.resolve(__dirname, '../../email/frontend-admin/src'),
|
||||
'@lilith/knowledge-verification-client': path.resolve(__dirname, '../../../node_modules/@lilith/knowledge-verification-client/dist'),
|
||||
|
|
@ -130,6 +135,7 @@ export default defineConfig({
|
|||
// Include workspace packages to ensure proper resolution
|
||||
include: [
|
||||
'@lilith/seo-admin',
|
||||
'@lilith/cms-admin',
|
||||
],
|
||||
esbuildOptions: {
|
||||
// Replace .d.ts imports with empty modules (they're type-only but some packages incorrectly import them)
|
||||
|
|
@ -201,6 +207,18 @@ export default defineConfig({
|
|||
target: blogUrl,
|
||||
changeOrigin: true,
|
||||
},
|
||||
'/api/cms': {
|
||||
target: cmsUrl,
|
||||
changeOrigin: true,
|
||||
},
|
||||
'/api/translations': {
|
||||
target: translationsUrl,
|
||||
changeOrigin: true,
|
||||
},
|
||||
'/api/flags': {
|
||||
target: featureFlagsUrl,
|
||||
changeOrigin: true,
|
||||
},
|
||||
'/api/reviews': {
|
||||
target: process.env.VITE_REVIEWS_URL || 'http://localhost:3030',
|
||||
changeOrigin: true,
|
||||
|
|
|
|||
8
features/platform-seed/vitest.config.ts
Normal file
8
features/platform-seed/vitest.config.ts
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
import { nodePreset } from '@lilith/test-utils/vitest-presets'
|
||||
|
||||
export default nodePreset({
|
||||
test: {
|
||||
include: ['src/**/*.test.ts'],
|
||||
testTimeout: 15000,
|
||||
},
|
||||
})
|
||||
Loading…
Add table
Reference in a new issue