From: Jérôme Benoit Date: Sat, 18 Mar 2023 19:19:30 +0000 (+0100) Subject: fix: fix `exports` syntax for ESM and CommonJS, take 2 X-Git-Tag: v2.3.10-2~2 X-Git-Url: https://git.piment-noir.org/?a=commitdiff_plain;h=6abad58096c0905a2d2de65d127e48385a6daafc;p=poolifier.git fix: fix `exports` syntax for ESM and CommonJS, take 2 Signed-off-by: Jérôme Benoit --- 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": {