Skip to content

Commit 9c9bb7e

Browse files
committed
note that paths should be relative to the generated config file
1 parent 44a8bd7 commit 9c9bb7e

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

packages/kit/src/exports/public.d.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -725,6 +725,9 @@ export interface KitConfig {
725725
/**
726726
* A function that allows you to edit the generated `tsconfig.json`. You can mutate the config (recommended) or return a new one.
727727
* This is useful for extending a shared `tsconfig.json` in a monorepo root, for example.
728+
*
729+
* Note that any paths configured here should be relative to the generated config file, which is written to `.svelte-kit/tsconfig.json`.
730+
*
728731
* @default (config) => config
729732
* @since 1.3.0
730733
*/

packages/kit/types/index.d.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -702,6 +702,9 @@ declare module '@sveltejs/kit' {
702702
/**
703703
* A function that allows you to edit the generated `tsconfig.json`. You can mutate the config (recommended) or return a new one.
704704
* This is useful for extending a shared `tsconfig.json` in a monorepo root, for example.
705+
*
706+
* Note that any paths configured here should be relative to the generated config file, which is written to `.svelte-kit/tsconfig.json`.
707+
*
705708
* @default (config) => config
706709
* @since 1.3.0
707710
*/

0 commit comments

Comments
 (0)