From 4e5d525a4d983c73bf006762d078bee17f40add2 Mon Sep 17 00:00:00 2001 From: Paul Hachmang Date: Thu, 23 Jan 2025 13:52:22 +0100 Subject: [PATCH] Make sure the types are available from packages and sovle RichText type error --- packages/cli/package.json | 2 +- packages/hygraph-ui/components/RichText/types.ts | 1 + packagesDev/next-config/package.json | 2 +- 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/packages/cli/package.json b/packages/cli/package.json index 71d870bf17..ff7eeb6506 100644 --- a/packages/cli/package.json +++ b/packages/cli/package.json @@ -9,9 +9,9 @@ "prepack": "pkgroll --clean-dist" }, "type": "module", + "types": "./src/index.ts", "exports": { ".": { - "types": "./src/index.ts", "default": "./dist/index.js" } }, diff --git a/packages/hygraph-ui/components/RichText/types.ts b/packages/hygraph-ui/components/RichText/types.ts index 0f5f0adff2..97d96f76b6 100644 --- a/packages/hygraph-ui/components/RichText/types.ts +++ b/packages/hygraph-ui/components/RichText/types.ts @@ -83,6 +83,7 @@ type IframeElement = { type EmbedElement = { type: 'embed' + children: ElementOrTextNode[] id: string nodeId: string nodeType: string diff --git a/packagesDev/next-config/package.json b/packagesDev/next-config/package.json index d5e89d9c3d..832278190b 100644 --- a/packagesDev/next-config/package.json +++ b/packagesDev/next-config/package.json @@ -4,9 +4,9 @@ "repository": "github:graphcommerce-org/graphcommerce", "version": "9.0.4-canary.9", "type": "module", + "types": "./src/index.ts", "exports": { ".": { - "types": "./src/index.ts", "default": "./dist/index.js" }, "./config": {