diff --git a/packages/pockethost.io/svelte.config.js b/packages/pockethost.io/svelte.config.js index ac496668..bcc1a892 100644 --- a/packages/pockethost.io/svelte.config.js +++ b/packages/pockethost.io/svelte.config.js @@ -3,12 +3,19 @@ import preprocess from 'svelte-preprocess' /** @type {import('@sveltejs/kit').Config} */ const config = { - // Consult https://github.com/sveltejs/svelte-preprocess - // for more information about preprocessors - preprocess: preprocess(), + // Consult https://github.com/sveltejs/svelte-preprocess + // for more information about preprocessors + preprocess: preprocess(), - kit: { - adapter: adapter({ out: 'dist-server' }) }, + kit: { + adapter: adapter({ out: 'dist-server' }), + alias: { + $components: './src/components', + $util: './src/util', + $src: './src' + } + }, + target: '#svelte' } export default config diff --git a/packages/pockethost.io/tsconfig.json b/packages/pockethost.io/tsconfig.json index 3dd839a6..3446fbd7 100644 --- a/packages/pockethost.io/tsconfig.json +++ b/packages/pockethost.io/tsconfig.json @@ -9,7 +9,12 @@ "resolveJsonModule": true, "skipLibCheck": true, "sourceMap": true, - "strict": true + "strict": true, + "paths": { + "$util/*": ["src/util/*"], + "$components/*": ["src/components/*"], + "$src/*": ["src/*"] + } } // Path aliases are handled by https://kit.svelte.dev/docs/configuration#alias //