From a2630e64de250e776024fa76534858bf7d1cc553 Mon Sep 17 00:00:00 2001 From: Bjarn Bronsveld <14638441+bjarn@users.noreply.github.com> Date: Thu, 27 Aug 2026 11:06:31 -0700 Subject: [PATCH] fix: expose ESM build via package.json exports --- package.json | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/package.json b/package.json index c0856b3..4a2ab01 100644 --- a/package.json +++ b/package.json @@ -2,8 +2,23 @@ "name": "lettermint", "version": "2.4.0", "description": "Official Lettermint Node.js SDK", + "type": "commonjs", "main": "dist/index.js", + "module": "dist/index.mjs", "types": "dist/index.d.ts", + "exports": { + ".": { + "types": "./dist/index.d.ts", + "import": { + "types": "./dist/index.d.mts", + "default": "./dist/index.mjs" + }, + "require": { + "types": "./dist/index.d.ts", + "default": "./dist/index.js" + } + } + }, "files": [ "dist", "README.md",