From fab05436c658961d3d4fd5933f0f86b854004cd8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mateusz=20Burzy=C5=84ski?= <mateuszburzynski@gmail.com> Date: Thu, 4 May 2023 07:27:09 +0200 Subject: [PATCH] fix(exports): move `types` condition to the top (#4698) Related: https://github.com/microsoft/TypeScript/issues/50762 --- package.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index ce0750599b..37883aaeb0 100644 --- a/package.json +++ b/package.json @@ -26,9 +26,9 @@ "type": "commonjs", "main": "./dist/index.js", "exports": { + "types": "./dist/index.d.ts", "import": "./wrapper.mjs", - "require": "./dist/index.js", - "types": "./dist/index.d.ts" + "require": "./dist/index.js" }, "types": "./dist/index.d.ts", "license": "MIT",