Skip to content

Commit

Permalink
Update package json exports to include type definitions (#2324)
Browse files Browse the repository at this point in the history
Co-authored-by: Dotan Simha <dotansimha@gmail.com>
  • Loading branch information
patrickjm and dotansimha committed Mar 16, 2023
1 parent e15c2a2 commit 42599bf
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
5 changes: 5 additions & 0 deletions .changeset/tough-papayas-hammer.md
@@ -0,0 +1,5 @@
---
'graphql-modules': patch
---

Fix missing attributes in package.json (as preparation for TS 5.0)
6 changes: 4 additions & 2 deletions packages/graphql-modules/package.json
Expand Up @@ -17,11 +17,13 @@
"exports": {
".": {
"require": "./dist/index.js",
"import": "./dist/index.mjs"
"import": "./dist/index.mjs",
"types": "./index.d.ts"
},
"./*": {
"require": "./dist/*.js",
"import": "./dist/*.mjs"
"import": "./dist/*.mjs",
"types": "./*.d.ts"
}
},
"typings": "dist/index.d.ts",
Expand Down

0 comments on commit 42599bf

Please sign in to comment.