Skip to content

Commit

Permalink
chore: removed deprecated config.package type (#11462)
Browse files Browse the repository at this point in the history
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
  • Loading branch information
GauBen committed Jan 4, 2024
1 parent 8504150 commit 0143819
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 16 deletions.
5 changes: 5 additions & 0 deletions .changeset/swift-gifts-end.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@sveltejs/kit": patch
---

chore: removed deprecated config.package type
8 changes: 0 additions & 8 deletions packages/kit/src/exports/public.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -179,14 +179,6 @@ export interface Config {
extensions?: string[];
/** SvelteKit options */
kit?: KitConfig;
/** [`@sveltejs/package`](/docs/packaging) options. */
package?: {
source?: string;
dir?: string;
emitTypes?: boolean;
exports?(filepath: string): boolean;
files?(filepath: string): boolean;
};
/** Preprocessor options, if any. Preprocessing can alternatively also be done through Vite's preprocessor capabilities. */
preprocess?: any;
/** `vite-plugin-svelte` plugin options. */
Expand Down
8 changes: 0 additions & 8 deletions packages/kit/types/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -161,14 +161,6 @@ declare module '@sveltejs/kit' {
extensions?: string[];
/** SvelteKit options */
kit?: KitConfig;
/** [`@sveltejs/package`](/docs/packaging) options. */
package?: {
source?: string;
dir?: string;
emitTypes?: boolean;
exports?(filepath: string): boolean;
files?(filepath: string): boolean;
};
/** Preprocessor options, if any. Preprocessing can alternatively also be done through Vite's preprocessor capabilities. */
preprocess?: any;
/** `vite-plugin-svelte` plugin options. */
Expand Down

0 comments on commit 0143819

Please sign in to comment.