From ece1c221cc8ed9f18e458b6ed504db75ac36b583 Mon Sep 17 00:00:00 2001 From: Matthew Kwong <32725014+mwskwong@users.noreply.github.com> Date: Sat, 21 Oct 2023 17:37:48 +0800 Subject: [PATCH 1/2] fix: `default` should the last key in `exports` --- package.json | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/package.json b/package.json index c764ebd..d780745 100644 --- a/package.json +++ b/package.json @@ -16,13 +16,13 @@ ], "exports": { ".": { - "require": { - "default": "./dist/index.js", - "types": "./dist/index.d.ts" + "require": { + "types": "./dist/index.d.ts", + "default": "./dist/index.js" }, "import": { - "default": "./dist/index.mjs", - "types": "./dist/index.d.mts" + "types": "./dist/index.d.mts", + "default": "./dist/index.mjs" } } }, From b457588301814eeec9f9706b01e0ebdac88087e8 Mon Sep 17 00:00:00 2001 From: Matthew Kwong <32725014+mwskwong@users.noreply.github.com> Date: Sat, 21 Oct 2023 17:38:41 +0800 Subject: [PATCH 2/2] chore: remove unnecessary spacing --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index d780745..008e142 100644 --- a/package.json +++ b/package.json @@ -16,7 +16,7 @@ ], "exports": { ".": { - "require": { + "require": { "types": "./dist/index.d.ts", "default": "./dist/index.js" },