From f9d02aa8054fde5a15244ca697ca6c5985334a1a Mon Sep 17 00:00:00 2001 From: Gleb Voitenko Date: Tue, 1 Oct 2024 15:10:01 +0300 Subject: [PATCH] fix: exports --- package.json | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/package.json b/package.json index 6a0d9b0..3899c52 100644 --- a/package.json +++ b/package.json @@ -11,9 +11,14 @@ "markdown", "utils" ], - "main": "./build/cjs/index.js", - "module": "./build/esm/index.js", - "types": "./build/esm/index.d.ts", + "exports": { + ".": { + "types": "./build/cjs/index.d.ts", + "import": "./build/esm/index.js", + "require": "./build/cjs/index.js", + "default": "./build/esm/index.js" + } + }, "files": [ "build/" ],