From 6abad58096c0905a2d2de65d127e48385a6daafc Mon Sep 17 00:00:00 2001 From: =?utf8?q?J=C3=A9r=C3=B4me=20Benoit?= Date: Sat, 18 Mar 2023 20:19:30 +0100 Subject: [PATCH] fix: fix `exports` syntax for ESM and CommonJS, take 2 MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Jérôme Benoit --- CHANGELOG.md | 4 ++++ package.json | 6 +++--- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index cf3ab28e..f4f7edd6 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,6 +7,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ## [Unreleased] +### Fixed + +- Fix `exports` syntax for ESM and CommonJS. + ## [2.3.10-1] - 2023-03-18 ### Changed diff --git a/package.json b/package.json index b2433ba2..56147b8b 100644 --- a/package.json +++ b/package.json @@ -3,11 +3,11 @@ "version": "2.3.10-1", "description": "A fast, easy to use Node.js Worker Thread Pool and Cluster Pool implementation", "license": "MIT", - "main": "lib/index.js", + "main": "./lib/index.js", "exports": { ".": { - "require": "lib/index.js", - "import": "lib/index.mjs" + "require": "./lib/index.js", + "import": "./lib/index.mjs" } }, "scripts": { -- 2.34.1