From 99c3530c49d286fd0045712307110cd4f7f52add Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mateusz=20Burzy=C5=84ski?= Date: Thu, 1 Jun 2023 17:22:11 +0200 Subject: [PATCH] fix: move `types` condition to the front (#16085) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: ZoƩ Co-authored-by: Rik Smale <13023439+WikiRik@users.noreply.github.com> --- package.json | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/package.json b/package.json index 5895e57da538..ada64f84aad3 100644 --- a/package.json +++ b/package.json @@ -21,17 +21,17 @@ "type": "commonjs", "exports": { ".": { + "types": "./types/index.d.ts", "import": "./lib/index.mjs", - "require": "./lib/index.js", - "types": "./types/index.d.ts" + "require": "./lib/index.js" }, "./lib/*": { - "default": "./lib/*.js", - "types": "./types/*.d.ts" + "types": "./types/*.d.ts", + "default": "./lib/*.js" }, "./lib/errors": { - "default": "./lib/errors/index.js", - "types": "./types/errors/index.d.ts" + "types": "./types/errors/index.d.ts", + "default": "./lib/errors/index.js" }, "./package.json": "./package.json", "./types/*": {