Skip to content

Commit

Permalink
fix(sveltekit): Add types field to package.json exports (#9926)
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
Lms24 committed Dec 20, 2023
1 parent 7ace093 commit c4d4022
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/sveltekit/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,8 @@
"import": "./build/esm/index.client.js",
"require": "./build/cjs/index.client.js"
},
"node": "./build/cjs/index.server.js"
"node": "./build/cjs/index.server.js",
"types": "./build/types/index.types.d.ts"
}
},
"publishConfig": {
Expand Down

0 comments on commit c4d4022

Please sign in to comment.