Skip to content

Commit 48794b6

Browse files
authored
Add "types" field to package.json "exports" (#78)
Allows support for users to have "moduleResolution": "nodenext" or "node16" in their tsconfig from TypeScript 4.7 onwards.
1 parent 131cba8 commit 48794b6

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
"react-native": "./dist/react-spline.es.js",
1212
"exports": {
1313
".": {
14+
"types": "./dist/Spline.d.ts",
1415
"import": "./dist/react-spline.es.js",
1516
"require": "./dist/react-spline.cjs.js"
1617
}

0 commit comments

Comments
 (0)