diff --git a/.changeset/shaky-pillows-sell.md b/.changeset/shaky-pillows-sell.md new file mode 100644 index 000000000000..c51b082eed90 --- /dev/null +++ b/.changeset/shaky-pillows-sell.md @@ -0,0 +1,5 @@ +--- +'@sveltejs/kit': patch +--- + +chore: remove deprecation warnings for `config.kit.files.*` options when validating the Svelte config file diff --git a/packages/kit/src/core/config/options.js b/packages/kit/src/core/config/options.js index d16ba4253582..97ded87f0fc7 100644 --- a/packages/kit/src/core/config/options.js +++ b/packages/kit/src/core/config/options.js @@ -137,19 +137,19 @@ const options = object( }), files: object({ - src: deprecate(string('src')), - assets: deprecate(string('static')), + src: string('src'), + assets: string('static'), hooks: object({ - client: deprecate(string(null)), - server: deprecate(string(null)), - universal: deprecate(string(null)) + client: string(null), + server: string(null), + universal: string(null) }), - lib: deprecate(string(null)), - params: deprecate(string(null)), - routes: deprecate(string(null)), - serviceWorker: deprecate(string(null)), - appTemplate: deprecate(string(null)), - errorTemplate: deprecate(string(null)) + lib: string(null), + params: string(null), + routes: string(null), + serviceWorker: string(null), + appTemplate: string(null), + errorTemplate: string(null) }), inlineStyleThreshold: number(0), diff --git a/packages/kit/src/exports/public.d.ts b/packages/kit/src/exports/public.d.ts index 7ead24d101a3..1c827d03c6ba 100644 --- a/packages/kit/src/exports/public.d.ts +++ b/packages/kit/src/exports/public.d.ts @@ -516,76 +516,76 @@ export interface KitConfig { }; /** * Where to find various files within your project. - * @deprecated + * @deprecated this feature is still supported, but it's generally recommended to use [monorepos](https://levelup.video/tutorials/monorepos-with-pnpm) instead */ files?: { /** - * the location of your source code - * @deprecated + * The location of your source code. + * @deprecated this feature is still supported, but it's generally recommended to use [monorepos](https://levelup.video/tutorials/monorepos-with-pnpm) instead * @default "src" * @since 2.28 */ src?: string; /** - * a place to put static files that should have stable URLs and undergo no processing, such as `favicon.ico` or `manifest.json` - * @deprecated + * A place to put static files that should have stable URLs and undergo no processing, such as `favicon.ico` or `manifest.json`. + * @deprecated this feature is still supported, but it's generally recommended to use [monorepos](https://levelup.video/tutorials/monorepos-with-pnpm) instead * @default "static" */ assets?: string; hooks?: { /** * The location of your client [hooks](https://svelte.dev/docs/kit/hooks). - * @deprecated + * @deprecated this feature is still supported, but it's generally recommended to use [monorepos](https://levelup.video/tutorials/monorepos-with-pnpm) instead * @default "src/hooks.client" */ client?: string; /** * The location of your server [hooks](https://svelte.dev/docs/kit/hooks). - * @deprecated + * @deprecated this feature is still supported, but it's generally recommended to use [monorepos](https://levelup.video/tutorials/monorepos-with-pnpm) instead * @default "src/hooks.server" */ server?: string; /** * The location of your universal [hooks](https://svelte.dev/docs/kit/hooks). - * @deprecated + * @deprecated this feature is still supported, but it's generally recommended to use [monorepos](https://levelup.video/tutorials/monorepos-with-pnpm) instead * @default "src/hooks" * @since 2.3.0 */ universal?: string; }; /** - * your app's internal library, accessible throughout the codebase as `$lib` - * @deprecated + * Your app's internal library, accessible throughout the codebase as `$lib`. + * @deprecated this feature is still supported, but it's generally recommended to use [monorepos](https://levelup.video/tutorials/monorepos-with-pnpm) instead * @default "src/lib" */ lib?: string; /** - * a directory containing [parameter matchers](https://svelte.dev/docs/kit/advanced-routing#Matching) - * @deprecated + * A directory containing [parameter matchers](https://svelte.dev/docs/kit/advanced-routing#Matching). + * @deprecated this feature is still supported, but it's generally recommended to use [monorepos](https://levelup.video/tutorials/monorepos-with-pnpm) instead * @default "src/params" */ params?: string; /** - * the files that define the structure of your app (see [Routing](https://svelte.dev/docs/kit/routing)) - * @deprecated + * The files that define the structure of your app (see [Routing](https://svelte.dev/docs/kit/routing)). + * @deprecated this feature is still supported, but it's generally recommended to use [monorepos](https://levelup.video/tutorials/monorepos-with-pnpm) instead * @default "src/routes" */ routes?: string; /** - * the location of your service worker's entry point (see [Service workers](https://svelte.dev/docs/kit/service-workers)) - * @deprecated + * The location of your service worker's entry point (see [Service workers](https://svelte.dev/docs/kit/service-workers)). + * @deprecated this feature is still supported, but it's generally recommended to use [monorepos](https://levelup.video/tutorials/monorepos-with-pnpm) instead * @default "src/service-worker" */ serviceWorker?: string; /** - * the location of the template for HTML responses - * @deprecated + * The location of the template for HTML responses. + * @deprecated this feature is still supported, but it's generally recommended to use [monorepos](https://levelup.video/tutorials/monorepos-with-pnpm) instead * @default "src/app.html" */ appTemplate?: string; /** - * the location of the template for fallback error responses - * @deprecated + * The location of the template for fallback error responses. + * @deprecated this feature is still supported, but it's generally recommended to use [monorepos](https://levelup.video/tutorials/monorepos-with-pnpm) instead * @default "src/error.html" */ errorTemplate?: string; diff --git a/packages/kit/types/index.d.ts b/packages/kit/types/index.d.ts index cb55aab589c1..42b58cad9424 100644 --- a/packages/kit/types/index.d.ts +++ b/packages/kit/types/index.d.ts @@ -490,76 +490,76 @@ declare module '@sveltejs/kit' { }; /** * Where to find various files within your project. - * @deprecated + * @deprecated this feature is still supported, but it's generally recommended to use [monorepos](https://levelup.video/tutorials/monorepos-with-pnpm) instead */ files?: { /** - * the location of your source code - * @deprecated + * The location of your source code. + * @deprecated this feature is still supported, but it's generally recommended to use [monorepos](https://levelup.video/tutorials/monorepos-with-pnpm) instead * @default "src" * @since 2.28 */ src?: string; /** - * a place to put static files that should have stable URLs and undergo no processing, such as `favicon.ico` or `manifest.json` - * @deprecated + * A place to put static files that should have stable URLs and undergo no processing, such as `favicon.ico` or `manifest.json`. + * @deprecated this feature is still supported, but it's generally recommended to use [monorepos](https://levelup.video/tutorials/monorepos-with-pnpm) instead * @default "static" */ assets?: string; hooks?: { /** * The location of your client [hooks](https://svelte.dev/docs/kit/hooks). - * @deprecated + * @deprecated this feature is still supported, but it's generally recommended to use [monorepos](https://levelup.video/tutorials/monorepos-with-pnpm) instead * @default "src/hooks.client" */ client?: string; /** * The location of your server [hooks](https://svelte.dev/docs/kit/hooks). - * @deprecated + * @deprecated this feature is still supported, but it's generally recommended to use [monorepos](https://levelup.video/tutorials/monorepos-with-pnpm) instead * @default "src/hooks.server" */ server?: string; /** * The location of your universal [hooks](https://svelte.dev/docs/kit/hooks). - * @deprecated + * @deprecated this feature is still supported, but it's generally recommended to use [monorepos](https://levelup.video/tutorials/monorepos-with-pnpm) instead * @default "src/hooks" * @since 2.3.0 */ universal?: string; }; /** - * your app's internal library, accessible throughout the codebase as `$lib` - * @deprecated + * Your app's internal library, accessible throughout the codebase as `$lib`. + * @deprecated this feature is still supported, but it's generally recommended to use [monorepos](https://levelup.video/tutorials/monorepos-with-pnpm) instead * @default "src/lib" */ lib?: string; /** - * a directory containing [parameter matchers](https://svelte.dev/docs/kit/advanced-routing#Matching) - * @deprecated + * A directory containing [parameter matchers](https://svelte.dev/docs/kit/advanced-routing#Matching). + * @deprecated this feature is still supported, but it's generally recommended to use [monorepos](https://levelup.video/tutorials/monorepos-with-pnpm) instead * @default "src/params" */ params?: string; /** - * the files that define the structure of your app (see [Routing](https://svelte.dev/docs/kit/routing)) - * @deprecated + * The files that define the structure of your app (see [Routing](https://svelte.dev/docs/kit/routing)). + * @deprecated this feature is still supported, but it's generally recommended to use [monorepos](https://levelup.video/tutorials/monorepos-with-pnpm) instead * @default "src/routes" */ routes?: string; /** - * the location of your service worker's entry point (see [Service workers](https://svelte.dev/docs/kit/service-workers)) - * @deprecated + * The location of your service worker's entry point (see [Service workers](https://svelte.dev/docs/kit/service-workers)). + * @deprecated this feature is still supported, but it's generally recommended to use [monorepos](https://levelup.video/tutorials/monorepos-with-pnpm) instead * @default "src/service-worker" */ serviceWorker?: string; /** - * the location of the template for HTML responses - * @deprecated + * The location of the template for HTML responses. + * @deprecated this feature is still supported, but it's generally recommended to use [monorepos](https://levelup.video/tutorials/monorepos-with-pnpm) instead * @default "src/app.html" */ appTemplate?: string; /** - * the location of the template for fallback error responses - * @deprecated + * The location of the template for fallback error responses. + * @deprecated this feature is still supported, but it's generally recommended to use [monorepos](https://levelup.video/tutorials/monorepos-with-pnpm) instead * @default "src/error.html" */ errorTemplate?: string;