Skip to content

Commit 0143819

Browse files
authored
chore: removed deprecated config.package type (#11462)
Support for config.package was removed in #8922 (10 month ago) but the type declaration survived the svelte-kit v2 major version, which was an oversight
1 parent 8504150 commit 0143819

File tree

3 files changed

+5
-16
lines changed

3 files changed

+5
-16
lines changed

.changeset/swift-gifts-end.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"@sveltejs/kit": patch
3+
---
4+
5+
chore: removed deprecated config.package type

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

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -179,14 +179,6 @@ export interface Config {
179179
extensions?: string[];
180180
/** SvelteKit options */
181181
kit?: KitConfig;
182-
/** [`@sveltejs/package`](/docs/packaging) options. */
183-
package?: {
184-
source?: string;
185-
dir?: string;
186-
emitTypes?: boolean;
187-
exports?(filepath: string): boolean;
188-
files?(filepath: string): boolean;
189-
};
190182
/** Preprocessor options, if any. Preprocessing can alternatively also be done through Vite's preprocessor capabilities. */
191183
preprocess?: any;
192184
/** `vite-plugin-svelte` plugin options. */

packages/kit/types/index.d.ts

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -161,14 +161,6 @@ declare module '@sveltejs/kit' {
161161
extensions?: string[];
162162
/** SvelteKit options */
163163
kit?: KitConfig;
164-
/** [`@sveltejs/package`](/docs/packaging) options. */
165-
package?: {
166-
source?: string;
167-
dir?: string;
168-
emitTypes?: boolean;
169-
exports?(filepath: string): boolean;
170-
files?(filepath: string): boolean;
171-
};
172164
/** Preprocessor options, if any. Preprocessing can alternatively also be done through Vite's preprocessor capabilities. */
173165
preprocess?: any;
174166
/** `vite-plugin-svelte` plugin options. */

0 commit comments

Comments
 (0)