From 7ead241ecfd9f122db6789b5f2d11c04e9427953 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mateusz=20Burzy=C5=84ski?= Date: Thu, 4 May 2023 07:29:00 +0200 Subject: [PATCH] fix(exports): move `types` condition to the top (#1580) Related: https://github.com/microsoft/TypeScript/issues/50762 --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index cd719ce3..ee8d33a4 100644 --- a/package.json +++ b/package.json @@ -22,12 +22,12 @@ "./dist/socket.io.js": "./dist/socket.io.js", "./dist/socket.io.js.map": "./dist/socket.io.js.map", ".": { + "types": "./build/esm/index.d.ts", "import": { "node": "./build/esm-debug/index.js", "default": "./build/esm/index.js" }, "require": "./build/cjs/index.js", - "types": "./build/esm/index.d.ts" } }, "types": "./build/esm/index.d.ts",