From de1056888d34617a5b974e937e8c3c97421e04ce Mon Sep 17 00:00:00 2001 From: alimpens Date: Tue, 3 Dec 2024 17:01:58 +0100 Subject: [PATCH] Fix import aliasing in Vitest --- libs/form-renderer/package.json | 3 ++- libs/form-renderer/tsconfig.json | 4 ++-- libs/form-renderer/vite.config.ts | 2 ++ 3 files changed, 6 insertions(+), 3 deletions(-) diff --git a/libs/form-renderer/package.json b/libs/form-renderer/package.json index d0603ed3..713d953f 100644 --- a/libs/form-renderer/package.json +++ b/libs/form-renderer/package.json @@ -9,5 +9,6 @@ "typecheck": "tsc --project ./tsconfig.json --noEmit" }, "license": "EUPL-1.2", - "private": true + "private": true, + "type": "module" } diff --git a/libs/form-renderer/tsconfig.json b/libs/form-renderer/tsconfig.json index aa0e48a7..193b8762 100644 --- a/libs/form-renderer/tsconfig.json +++ b/libs/form-renderer/tsconfig.json @@ -1,10 +1,10 @@ { + "extends": "../../tsconfig.base.json", "compilerOptions": { "esModuleInterop": true, "forceConsistentCasingInFileNames": true, "jsx": "react-jsx", "resolveJsonModule": true, "strict": true - }, - "extends": "../../tsconfig.base.json" + } } diff --git a/libs/form-renderer/vite.config.ts b/libs/form-renderer/vite.config.ts index b7d90204..8a2eeb2e 100644 --- a/libs/form-renderer/vite.config.ts +++ b/libs/form-renderer/vite.config.ts @@ -1,7 +1,9 @@ /// import { defineConfig } from 'vite' +import tsconfigPaths from 'vite-tsconfig-paths' export default defineConfig({ + plugins: [tsconfigPaths()], test: { coverage: { enabled: true,