From 7a9376e47a2c246b5c9db3d2bee27726b3b495d5 Mon Sep 17 00:00:00 2001 From: Nana Mochihara Date: Tue, 3 Dec 2024 08:01:20 +0100 Subject: [PATCH] fix: correct config files in examples (#363) Adds empty-view path to vite config and tsconfig in examples. Removes unused deps from empty-view. --- components/empty-view/package.json | 1 - examples/tsconfig.json | 1 + examples/vite.config.ts | 3 +++ pnpm-lock.yaml | 3 --- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/components/empty-view/package.json b/components/empty-view/package.json index ae834d21..6da67919 100644 --- a/components/empty-view/package.json +++ b/components/empty-view/package.json @@ -27,7 +27,6 @@ "@types/react": "^18.3.12", "@types/react-dom": "^18.3.1", "eslint": "^8.57.1", - "jsdom": "^22.1.0", "react": "^18.2.0", "react-dom": "^18.2.0", "typescript": "^4.5.5" diff --git a/examples/tsconfig.json b/examples/tsconfig.json index eccf9f93..267e22df 100644 --- a/examples/tsconfig.json +++ b/examples/tsconfig.json @@ -4,6 +4,7 @@ "lib": ["es5", "es6", "dom", "dom.iterable", "ES2015", "es2017"], "types": ["node"], "paths": { + "@axiscommunications/fluent-empty-view": ["components/empty-view/src"], "@axiscommunications/fluent-hooks": ["hooks/src"], "@axiscommunications/fluent-password-input": [ "components/password-input/src" diff --git a/examples/vite.config.ts b/examples/vite.config.ts index ad3a584a..96d96117 100644 --- a/examples/vite.config.ts +++ b/examples/vite.config.ts @@ -11,6 +11,9 @@ export default defineConfig({ base: "/fluent-components/", resolve: { alias: { + "@axiscommunications/fluent-empty-view": path.resolve( + "../components/empty-view/src/index.ts" + ), "@axiscommunications/fluent-icons": path.resolve("../icons/src/index.ts"), "@axiscommunications/fluent-stepper": path.resolve( "../components/stepper/src/index.ts" diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 848b2929..3c8d8070 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -73,9 +73,6 @@ importers: eslint: specifier: ^8.57.1 version: 8.57.1 - jsdom: - specifier: ^22.1.0 - version: 22.1.0 react: specifier: ^18.2.0 version: 18.3.1