From f2a8cc22561f1e8c50d5c638985ce9664286bff3 Mon Sep 17 00:00:00 2001 From: Michael Shilman Date: Fri, 12 Jul 2024 00:00:14 +0800 Subject: [PATCH] Fix package.json --- package.json | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/package.json b/package.json index 18d21c8..02381ea 100644 --- a/package.json +++ b/package.json @@ -8,9 +8,13 @@ }, "license": "MIT", "author": "Michael Shilman ", - "main": "dist/index.js", - "module": "dist/index.mjs", - "types": "dist/index.d.ts", + "type": "module", + "exports": { + ".": { + "types": "./dist/index.d.ts", + "import": "./dist/index.js" + } + }, "files": [ "dist/**/*", "README.md",