Skip to content

Commit 42599bf

Browse files
Update package json exports to include type definitions (#2324)
Co-authored-by: Dotan Simha <[email protected]>
1 parent e15c2a2 commit 42599bf

File tree

2 files changed

+9
-2
lines changed

2 files changed

+9
-2
lines changed

.changeset/tough-papayas-hammer.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'graphql-modules': patch
3+
---
4+
5+
Fix missing attributes in package.json (as preparation for TS 5.0)

packages/graphql-modules/package.json

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,11 +17,13 @@
1717
"exports": {
1818
".": {
1919
"require": "./dist/index.js",
20-
"import": "./dist/index.mjs"
20+
"import": "./dist/index.mjs",
21+
"types": "./index.d.ts"
2122
},
2223
"./*": {
2324
"require": "./dist/*.js",
24-
"import": "./dist/*.mjs"
25+
"import": "./dist/*.mjs",
26+
"types": "./*.d.ts"
2527
}
2628
},
2729
"typings": "dist/index.d.ts",

0 commit comments

Comments
 (0)