diff --git a/svelte.config.js b/svelte.config.js index bc33343..ced4538 100644 --- a/svelte.config.js +++ b/svelte.config.js @@ -8,7 +8,11 @@ const config = { preprocess: preprocess(), kit: { - adapter: adapter() + adapter: adapter(), + alias: { + $components: 'src/lib/components', + '$components/*': 'src/lib/components/*' + } } } diff --git a/tsconfig.json b/tsconfig.json index 2f9ec0b..b60a0d4 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -20,15 +20,7 @@ "esModuleInterop": true, "skipLibCheck": true, "forceConsistentCasingInFileNames": true, - "baseUrl": ".", "allowJs": true, - "checkJs": true, - "paths": { - "$lib": ["src/lib"], - "$lib/*": ["src/lib/*"], - "$components": ["src/lib/components"], - "$components/*": ["src/lib/components/*"] - } - }, - "include": ["src/**/*.d.ts", "src/**/*.js", "src/**/*.ts", "src/**/*.svelte"] + "checkJs": true + } } diff --git a/vite.config.js b/vite.config.js index 6ebe17f..ccd5ac1 100644 --- a/vite.config.js +++ b/vite.config.js @@ -1,14 +1,8 @@ import { sveltekit } from '@sveltejs/kit/vite' -import path from 'path' /** @type {import('vite').UserConfig} */ const config = { - plugins: [sveltekit()], - resolve: { - alias: { - $components: path.resolve('./src/lib/components') - } - } + plugins: [sveltekit()] } export default config