From 6d14aa25371ebed15d70c2664ea0e36799aeef65 Mon Sep 17 00:00:00 2001 From: Lachlan Collins <1667261+lachlancollins@users.noreply.github.com> Date: Mon, 27 Nov 2023 16:12:24 +0900 Subject: [PATCH] Extend auto-generated tsconfig --- .eslintignore | 3 --- svelte.config.js | 11 +++++++++++ 2 files changed, 11 insertions(+), 3 deletions(-) diff --git a/.eslintignore b/.eslintignore index ad144c20e..a74612486 100644 --- a/.eslintignore +++ b/.eslintignore @@ -1,6 +1,3 @@ /.svelte-kit /build /node_modules -/scripts -svelte.config.js -vite.config.js diff --git a/svelte.config.js b/svelte.config.js index e248ba60c..8e9d2f10b 100644 --- a/svelte.config.js +++ b/svelte.config.js @@ -38,6 +38,17 @@ const config = { $utils: path.resolve('./src/lib/utils'), $styles: path.resolve('./src/lib/styles'), $stores: path.resolve('./src/lib/stores') + }, + typescript: { + config: (config) => { + config.include = [ + ...config.include, + '../scripts/**/*.js', + '../svelte.config.js', + '../vite.config.js' + ]; + return config; + } } } };