diff --git a/.changeset/gold-kiwis-mate.md b/.changeset/gold-kiwis-mate.md new file mode 100644 index 00000000000..e52a4db3e7b --- /dev/null +++ b/.changeset/gold-kiwis-mate.md @@ -0,0 +1,6 @@ +--- +"@aws-amplify/ui-react": patch +"@aws-amplify/ui": patch +--- + +chore(react): adding types to exports in package json to support TS moduleResolution for node16/nodenext diff --git a/packages/react/package.json b/packages/react/package.json index 9f6c2ac12fa..47082972110 100644 --- a/packages/react/package.json +++ b/packages/react/package.json @@ -5,6 +5,7 @@ "module": "dist/esm/index.js", "exports": { ".": { + "types": "./dist/types/index.d.ts", "import": "./dist/esm/index.js", "require": "./dist/index.js" }, diff --git a/packages/ui/package.json b/packages/ui/package.json index 60e157c8d96..d9d3044a99d 100644 --- a/packages/ui/package.json +++ b/packages/ui/package.json @@ -5,6 +5,7 @@ "module": "dist/esm/index.js", "exports": { ".": { + "types": "./dist/types/index.d.ts", "import": "./dist/esm/index.js", "require": "./dist/index.js" },