Skip to content

Commit

Permalink
Extend auto-generated tsconfig
Browse files Browse the repository at this point in the history
  • Loading branch information
lachlancollins committed Nov 27, 2023
1 parent 81b74e6 commit 6d14aa2
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 3 deletions.
3 changes: 0 additions & 3 deletions .eslintignore
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
/.svelte-kit
/build
/node_modules
/scripts
svelte.config.js
vite.config.js
11 changes: 11 additions & 0 deletions svelte.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
}
}
};
Expand Down

0 comments on commit 6d14aa2

Please sign in to comment.