Skip to content

Commit c4d4022

Browse files
authored
fix(sveltekit): Add types field to package.json exports (#9926)
Adds a `types` field to the `"."` subpath in the `exports` object in package.json so that `svelte-check` type checking finds the type declarations of the SDK in Kit 2.0.
1 parent 7ace093 commit c4d4022

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

packages/sveltekit/package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,8 @@
2020
"import": "./build/esm/index.client.js",
2121
"require": "./build/cjs/index.client.js"
2222
},
23-
"node": "./build/cjs/index.server.js"
23+
"node": "./build/cjs/index.server.js",
24+
"types": "./build/types/index.types.d.ts"
2425
}
2526
},
2627
"publishConfig": {

0 commit comments

Comments
 (0)