From 88f3ed9b8ac3c48609c070f24a88de709c5fbb00 Mon Sep 17 00:00:00 2001 From: Alfi Maulana Date: Tue, 26 May 2026 17:08:39 +0700 Subject: [PATCH] use `exports` in `package.json` Signed-off-by: Alfi Maulana --- package.json | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index 82c2e8e9..12a2bce4 100644 --- a/package.json +++ b/package.json @@ -14,9 +14,13 @@ "repository": "github:threeal/nodejs-starter", "license": "Unlicense", "author": "Alfi Maulana ", + "exports": { + ".": { + "types": "dist/lib.d.ts", + "import": "dist/lib.js" + } + }, "type": "module", - "main": "dist/lib.js", - "types": "dist/lib.d.ts", "bin": "dist/bin.js", "files": [ "dist"