From a5f142167d6c67c1150dc9685b225d705f01fe6d Mon Sep 17 00:00:00 2001 From: Narek Hovhannisyan Date: Thu, 27 Nov 2025 21:05:40 +0400 Subject: [PATCH 1/2] feat: add ES module support by specifying import path in package.json --- package.json | 1 + 1 file changed, 1 insertion(+) diff --git a/package.json b/package.json index 43767f5..a55c3e4 100644 --- a/package.json +++ b/package.json @@ -42,6 +42,7 @@ "main": "dist/index.js", "exports": { ".": { + "import": "./dist/index.js", "require": "./dist/index.js", "types": "./dist/index.d.ts" }, From 7703427bd08c795cfac0af2087fb34c4b325b20b Mon Sep 17 00:00:00 2001 From: Narek Hovhannisyan Date: Tue, 2 Dec 2025 13:08:54 +0400 Subject: [PATCH 2/2] refactor: simplify exports in package.json by consolidating module paths --- package.json | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/package.json b/package.json index a55c3e4..474ac7d 100644 --- a/package.json +++ b/package.json @@ -41,11 +41,7 @@ "license": "MIT", "main": "dist/index.js", "exports": { - ".": { - "import": "./dist/index.js", - "require": "./dist/index.js", - "types": "./dist/index.d.ts" - }, + ".": "./dist/index.js", "./package.json": "./package.json" }, "peerDependencies": {