Skip to content

Commit 7a9376e

Browse files
authored
fix: correct config files in examples (#363)
Adds empty-view path to vite config and tsconfig in examples. Removes unused deps from empty-view.
1 parent 2c238de commit 7a9376e

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

components/empty-view/package.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,6 @@
2727
"@types/react": "^18.3.12",
2828
"@types/react-dom": "^18.3.1",
2929
"eslint": "^8.57.1",
30-
"jsdom": "^22.1.0",
3130
"react": "^18.2.0",
3231
"react-dom": "^18.2.0",
3332
"typescript": "^4.5.5"

examples/tsconfig.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
"lib": ["es5", "es6", "dom", "dom.iterable", "ES2015", "es2017"],
55
"types": ["node"],
66
"paths": {
7+
"@axiscommunications/fluent-empty-view": ["components/empty-view/src"],
78
"@axiscommunications/fluent-hooks": ["hooks/src"],
89
"@axiscommunications/fluent-password-input": [
910
"components/password-input/src"

examples/vite.config.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,9 @@ export default defineConfig({
1111
base: "/fluent-components/",
1212
resolve: {
1313
alias: {
14+
"@axiscommunications/fluent-empty-view": path.resolve(
15+
"../components/empty-view/src/index.ts"
16+
),
1417
"@axiscommunications/fluent-icons": path.resolve("../icons/src/index.ts"),
1518
"@axiscommunications/fluent-stepper": path.resolve(
1619
"../components/stepper/src/index.ts"

pnpm-lock.yaml

Lines changed: 0 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)