mirror of
https://dev.azure.com/hugendubel/ISA/_git/ISA-Frontend
synced 2025-12-28 22:42:11 +01:00
fix(utils-positive-integer-input, crm-customer-booking, crm-customer-card): add missing path mapping in tsconfig Add the @isa/utils/positive-integer-input path mapping to tsconfig.base.json to resolve module resolution issues. The library was created but the path alias was not properly registered, causing import errors in consuming modules. Ref: #5492
28 lines
947 B
TypeScript
28 lines
947 B
TypeScript
/// <reference types='vitest' />
|
|
import { defineConfig } from 'vite';
|
|
import angular from '@analogjs/vite-plugin-angular';
|
|
import { nxViteTsPaths } from '@nx/vite/plugins/nx-tsconfig-paths.plugin';
|
|
import { nxCopyAssetsPlugin } from '@nx/vite/plugins/nx-copy-assets.plugin';
|
|
|
|
export default defineConfig(() => ({
|
|
root: __dirname,
|
|
cacheDir: '../../../node_modules/.vite/libs/utils/positive-integer-input',
|
|
plugins: [angular(), nxViteTsPaths(), nxCopyAssetsPlugin(['*.md'])],
|
|
// Uncomment this if you are using workers.
|
|
// worker: {
|
|
// plugins: [ nxViteTsPaths() ],
|
|
// },
|
|
test: {
|
|
watch: false,
|
|
globals: true,
|
|
environment: 'jsdom',
|
|
include: ['{src,tests}/**/*.{test,spec}.{js,mjs,cjs,ts,mts,cts,jsx,tsx}'],
|
|
setupFiles: ['src/test-setup.ts'],
|
|
reporters: ['default'],
|
|
coverage: {
|
|
reportsDirectory: '../../../coverage/libs/utils/positive-integer-input',
|
|
provider: 'v8' as const,
|
|
},
|
|
},
|
|
}));
|