diff --git a/documentation/docs/20-core-concepts/10-routing.md b/documentation/docs/20-core-concepts/10-routing.md index d21be05291af2..66f9ce3a6091d 100644 --- a/documentation/docs/20-core-concepts/10-routing.md +++ b/documentation/docs/20-core-concepts/10-routing.md @@ -205,6 +205,8 @@ We can create a layout that only applies to pages below `/settings` (while inher ``` +You can see how `data` is populated by looking at the `+layout.js` example in the next section just below. + By default, each layout inherits the layout above it. Sometimes that isn't what you want - in this case, [advanced layouts](advanced-routing#advanced-layouts) can help you. ### +layout.js diff --git a/package.json b/package.json index a1146dbf7c5e1..0437858b5d808 100644 --- a/package.json +++ b/package.json @@ -31,7 +31,7 @@ "eslint-plugin-unicorn": "^51.0.1", "playwright": "^1.41.0" }, - "packageManager": "pnpm@8.15.3", + "packageManager": "pnpm@8.15.4", "engines": { "pnpm": "^8.0.0" } diff --git a/packages/kit/CHANGELOG.md b/packages/kit/CHANGELOG.md index e48cda5fffe10..aadc33b6c2cd3 100644 --- a/packages/kit/CHANGELOG.md +++ b/packages/kit/CHANGELOG.md @@ -1,5 +1,11 @@ # @sveltejs/kit +## 2.5.2 + +### Patch Changes + +- fix: tsconfig includes should cover svelte.config.js ([#11886](https://github.com/sveltejs/kit/pull/11886)) + ## 2.5.1 ### Patch Changes diff --git a/packages/kit/package.json b/packages/kit/package.json index f83880533f078..75873f868ea87 100644 --- a/packages/kit/package.json +++ b/packages/kit/package.json @@ -1,6 +1,6 @@ { "name": "@sveltejs/kit", - "version": "2.5.1", + "version": "2.5.2", "description": "The fastest way to build Svelte apps", "repository": { "type": "git", diff --git a/packages/kit/src/core/sync/write_tsconfig.js b/packages/kit/src/core/sync/write_tsconfig.js index 73bd239159c9a..dc12107b44352 100644 --- a/packages/kit/src/core/sync/write_tsconfig.js +++ b/packages/kit/src/core/sync/write_tsconfig.js @@ -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') ]); diff --git a/packages/kit/src/core/sync/write_tsconfig.spec.js b/packages/kit/src/core/sync/write_tsconfig.spec.js index fbfa18cc97b9d..ebabcb6c92787 100644 --- a/packages/kit/src/core/sync/write_tsconfig.spec.js +++ b/packages/kit/src/core/sync/write_tsconfig.spec.js @@ -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', diff --git a/packages/kit/src/version.js b/packages/kit/src/version.js index bcc7aca8dd861..829e64d9db2e9 100644 --- a/packages/kit/src/version.js +++ b/packages/kit/src/version.js @@ -1,4 +1,4 @@ // generated during release, do not modify /** @type {string} */ -export const VERSION = '2.5.1'; +export const VERSION = '2.5.2';