From 42f1cab960afd42dcb3c19097e800e02a8881aa0 Mon Sep 17 00:00:00 2001 From: gentlementlegen Date: Wed, 3 Jul 2024 10:32:52 +0200 Subject: [PATCH] feat: the package is now compiled for both ESM and CommonJs --- package.json | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/package.json b/package.json index ba70171..5db25a3 100644 --- a/package.json +++ b/package.json @@ -14,7 +14,7 @@ "sourcemap": true, "clean": true, "dts": true, - "format": "esm" + "format": ["cjs", "esm"] }, "files": [ "dist/*" @@ -33,11 +33,13 @@ "exports": { ".": { "types": "./dist/logs.d.ts", - "default": "./dist/logs.js" + "require": "./dist/logs.cjs", + "import": "./dist/logs.js" }, "./pretty-logs": { "types": "./dist/pretty-logs.d.ts", - "default": "./dist/pretty-logs.js" + "require": "./dist/pretty-logs.cjs", + "import": "./dist/pretty-logs.js" } }, "scripts": {