From 8e40d308dba0fdcb445cbebf56a161db16bf5806 Mon Sep 17 00:00:00 2001 From: ocavue Date: Tue, 3 Sep 2024 04:31:47 +1000 Subject: [PATCH] fix: correct `exports` field in package.json (#279) * fix: correct `exports` field in package.json * fix: simplify exports * fix: add types --- package.json | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/package.json b/package.json index 42f0eee5..acacd982 100644 --- a/package.json +++ b/package.json @@ -11,7 +11,8 @@ "main": "dist/esm/index.js", "types": "dist/esm/index.d.ts", "exports": { - "import": { + ".": { + "types": "./dist/esm/index.d.ts", "default": "./dist/esm/index.js" } },