From 42599bfe2d5c19151f840d3fa05ed6fa00a5c487 Mon Sep 17 00:00:00 2001 From: Patrick Moriarty Date: Wed, 15 Mar 2023 22:07:51 -0500 Subject: [PATCH] Update package json exports to include type definitions (#2324) Co-authored-by: Dotan Simha --- .changeset/tough-papayas-hammer.md | 5 +++++ packages/graphql-modules/package.json | 6 ++++-- 2 files changed, 9 insertions(+), 2 deletions(-) create mode 100644 .changeset/tough-papayas-hammer.md diff --git a/.changeset/tough-papayas-hammer.md b/.changeset/tough-papayas-hammer.md new file mode 100644 index 0000000000..25d7d465c2 --- /dev/null +++ b/.changeset/tough-papayas-hammer.md @@ -0,0 +1,5 @@ +--- +'graphql-modules': patch +--- + +Fix missing attributes in package.json (as preparation for TS 5.0) diff --git a/packages/graphql-modules/package.json b/packages/graphql-modules/package.json index 296ea492ea..981eb570fd 100644 --- a/packages/graphql-modules/package.json +++ b/packages/graphql-modules/package.json @@ -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",