diff --git a/CHANGELOG.md b/CHANGELOG.md index ce863c4..7cc418e 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,6 +5,10 @@ All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/). +## [Unreleased] + +- fix npm package exports for cjs + ## [0.2.4] - 2023-10-18 - bundle correctly diff --git a/package.json b/package.json index 990e607..41e438b 100644 --- a/package.json +++ b/package.json @@ -4,6 +4,10 @@ "description": "Instrument node.js applications with open telemetry ", "type": "module", "main": "dist/index.js", + "exports": { + "import": "./dist/index.js", + "require": "./dist/index.cjs" + }, "files": [ "dist" ],