From 7544af956e7ecb9625a987aeb8859d4d1c932b06 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?G=C3=B8ran=20Brekke=20Svaland?= Date: Fri, 22 Mar 2024 08:51:00 +0100 Subject: [PATCH] add: src path --- frontend/svelte.config.js | 3 ++- frontend/tsconfig.json | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/frontend/svelte.config.js b/frontend/svelte.config.js index 78775cb9..3febe92a 100644 --- a/frontend/svelte.config.js +++ b/frontend/svelte.config.js @@ -24,7 +24,8 @@ const config = { $utils: './src/utils', $queries: './src/queries', $typesdefinitions: './src/types.d.ts', - }, + $src: './src' + } } }; diff --git a/frontend/tsconfig.json b/frontend/tsconfig.json index 3ca21e74..3f595bd3 100644 --- a/frontend/tsconfig.json +++ b/frontend/tsconfig.json @@ -18,10 +18,11 @@ "$stores/*": ["src/stores/*"], "$styles/*": ["src/styles/*"], "$utils/*": ["src/utils/*"], + "$src/*": ["src/*"] } }, // Path aliases are handled by https://kit.svelte.dev/docs/configuration#alias // // If you want to overwrite includes/excludes, make sure to copy over the relevant includes/excludes - "include": ["src/**/*", "declarations.d.ts"], + "include": ["src/**/*", "declarations.d.ts"] }