fix: fix `exports` syntax for ESM and CommonJS, take 2
authorJérôme Benoit <jerome.benoit@sap.com>
Sat, 18 Mar 2023 19:19:30 +0000 (20:19 +0100)
committerJérôme Benoit <jerome.benoit@sap.com>
Sat, 18 Mar 2023 19:19:30 +0000 (20:19 +0100)
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
CHANGELOG.md
package.json

index cf3ab28ec94a702eda6ad0558a0f0b6d726123a6..f4f7edd695bb5d004b7b3e7de1332100ecbfec75 100644 (file)
@@ -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
index b2433ba22c353ecebab6e3ea2378b35c3c8213ca..56147b8b810aeaab529956973e67006d7e6379b7 100644 (file)
@@ -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": {