Skip to content

Commit

Permalink
path fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
andre-brandao committed Oct 19, 2024
1 parent d8fdf70 commit 4a2bdaa
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 19 deletions.
2 changes: 1 addition & 1 deletion svelte.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ const config = {
"$utils/client": './src/lib/client/utils',
"$utils/server": './src/lib/server/utils',
$trpc: './src/lib/utils/trpc',
$modal: './src/lib/components/modal',
$modal: './src/lib/client/components/modal',
$msgs: './src/lib/i18n/paraglide/messages',
},
},
Expand Down
26 changes: 8 additions & 18 deletions tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,11 @@
"strict": true,
"moduleResolution": "bundler",
// "module": "NodeNext",
// Path aliases are handled by https://kit.svelte.dev/docs/configuration#alias
// except $lib which is handled by https://kit.svelte.dev/docs/configuration#files
//
// If you want to overwrite includes/excludes, make sure to copy over the relevant includes/excludes
// from the referenced tsconfig.json - TypeScript does not merge them in
"paths": {
"$lib/*": ["./src/lib/*"],
"$lib": ["./src/lib"],
Expand All @@ -26,25 +31,10 @@
"$utils/server": ["./src/lib/server/utils"],
"$trpc/*": ["./src/lib/utils/trpc/*"],
"$trpc": ["./src/lib/utils/trpc"],
"$modal/*": ["./src/lib/components/modal/*"],
"$modal": ["./src/lib/components/modal"],
"$modal/*": ["./src/lib/client/components/modal/*"],
"$modal": ["./src/lib/client/components/modal"],
"$msgs/*": ["./src/lib/i18n/paraglide/messages/*"],
"$msgs": ["./src/lib/i18n/paraglide/messages"],
"$msgs": ["./src/lib/i18n/paraglide/messages"]
}

// $lib: './src/lib',
// $db: './src/lib/server/db',
// $components: './src/lib/client/components',
// $utils: './src/lib/utils',
// "$utils/client": './src/lib/client/utils',
// "$utils/server": './src/lib/server/utils',
// $trpc: './src/lib/utils/trpc',
// $modal: './src/lib/components/modal',
// $msgs: './src/lib/i18n/paraglide/messages',
}
// Path aliases are handled by https://kit.svelte.dev/docs/configuration#alias
// except $lib which is handled by https://kit.svelte.dev/docs/configuration#files
//
// If you want to overwrite includes/excludes, make sure to copy over the relevant includes/excludes
// from the referenced tsconfig.json - TypeScript does not merge them in
}

0 comments on commit 4a2bdaa

Please sign in to comment.