From 9677a3052b8ccf2799f8acb2fd0bd2a7a01c33c8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Connor=20B=C3=A4r?= Date: Mon, 8 May 2023 17:03:24 +0200 Subject: [PATCH] Fix types resolution (#2084) --- .changeset/purple-papayas-bake.md | 7 +++++++ packages/circuit-ui/package.json | 2 ++ packages/design-tokens/package.json | 2 ++ packages/icons/package.json | 1 + 4 files changed, 12 insertions(+) create mode 100644 .changeset/purple-papayas-bake.md diff --git a/.changeset/purple-papayas-bake.md b/.changeset/purple-papayas-bake.md new file mode 100644 index 0000000000..76b5ab53f8 --- /dev/null +++ b/.changeset/purple-papayas-bake.md @@ -0,0 +1,7 @@ +--- +'@sumup/design-tokens': patch +'@sumup/circuit-ui': patch +'@sumup/icons': patch +--- + +Added `types` field to the `package.json` file to fix the type resolution. diff --git a/packages/circuit-ui/package.json b/packages/circuit-ui/package.json index 37969401a2..43255e8232 100644 --- a/packages/circuit-ui/package.json +++ b/packages/circuit-ui/package.json @@ -3,6 +3,8 @@ "version": "7.0.0-next.3", "description": "SumUp's React UI component library", "type": "module", + "main": "./dist/index.js", + "types": "./dist/index.d.ts", "exports": "./dist/index.js", "sideEffects": false, "files": [ diff --git a/packages/design-tokens/package.json b/packages/design-tokens/package.json index dab2b81643..80aa0681d3 100644 --- a/packages/design-tokens/package.json +++ b/packages/design-tokens/package.json @@ -3,6 +3,8 @@ "version": "6.0.0-next.0", "description": "Visual primitives such as typography, color, and spacing that are shared across platforms.", "type": "module", + "main": "./dist/index.js", + "types": "./dist/index.d.ts", "exports": "./dist/index.js", "sideEffects": false, "files": [ diff --git a/packages/icons/package.json b/packages/icons/package.json index 73469a7408..08a58f3c10 100644 --- a/packages/icons/package.json +++ b/packages/icons/package.json @@ -4,6 +4,7 @@ "description": "A collection of icons by SumUp", "type": "module", "main": "./dist/index.js", + "types": "./dist/index.d.ts", "exports": { ".": "./dist/index.js", "./manifest.json": "./manifest.json",