Skip to content

Commit

Permalink
fix: tsconfig includes should cover svelte.config.js (#11886)
Browse files Browse the repository at this point in the history
  • Loading branch information
benmccann authored Feb 26, 2024
1 parent 8d7aa6f commit f6f9e70
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .changeset/sixty-files-lay.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@sveltejs/kit": patch
---

fix: tsconfig includes should cover svelte.config.js
1 change: 1 addition & 0 deletions packages/kit/src/core/sync/write_tsconfig.js
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@ export function get_tsconfig(kit) {
'ambient.d.ts',
'non-ambient.d.ts',
'./types/**/$types.d.ts',
config_relative('svelte.config.js'),
config_relative('vite.config.js'),
config_relative('vite.config.ts')
]);
Expand Down
1 change: 1 addition & 0 deletions packages/kit/src/core/sync/write_tsconfig.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,7 @@ test('Creates tsconfig include from kit.files', () => {
'ambient.d.ts',
'non-ambient.d.ts',
'./types/**/$types.d.ts',
'../svelte.config.js',
'../vite.config.js',
'../vite.config.ts',
'../app/**/*.js',
Expand Down

0 comments on commit f6f9e70

Please sign in to comment.