From b45bfc61a5cc989e2015fb4eed02eb99a48ede48 Mon Sep 17 00:00:00 2001 From: ocavue Date: Mon, 2 Sep 2024 21:04:41 +1000 Subject: [PATCH 1/3] fix: correct `exports` field in package.json --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 42f0eee5..bb9e30f7 100644 --- a/package.json +++ b/package.json @@ -11,7 +11,7 @@ "main": "dist/esm/index.js", "types": "dist/esm/index.d.ts", "exports": { - "import": { + ".": { "default": "./dist/esm/index.js" } }, From 779161613d0b1139be5a285ac5304b5c61073107 Mon Sep 17 00:00:00 2001 From: ocavue Date: Mon, 2 Sep 2024 21:13:32 +1000 Subject: [PATCH 2/3] fix: simplify exports --- package.json | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/package.json b/package.json index bb9e30f7..632936dd 100644 --- a/package.json +++ b/package.json @@ -11,9 +11,7 @@ "main": "dist/esm/index.js", "types": "dist/esm/index.d.ts", "exports": { - ".": { - "default": "./dist/esm/index.js" - } + ".": "./dist/esm/index.js" }, "files": [ "dist" From 9edc647c0a2593d9c72056517ed070b2da1b527a Mon Sep 17 00:00:00 2001 From: ocavue Date: Tue, 3 Sep 2024 01:19:28 +1000 Subject: [PATCH 3/3] fix: add types --- package.json | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/package.json b/package.json index 632936dd..acacd982 100644 --- a/package.json +++ b/package.json @@ -11,7 +11,10 @@ "main": "dist/esm/index.js", "types": "dist/esm/index.d.ts", "exports": { - ".": "./dist/esm/index.js" + ".": { + "types": "./dist/esm/index.d.ts", + "default": "./dist/esm/index.js" + } }, "files": [ "dist"