From d40b335c25772cdcf51a61e34a97cbfd32ad72de Mon Sep 17 00:00:00 2001 From: Denis Cuciuc Date: Thu, 10 Sep 2026 05:09:53 +0300 Subject: [PATCH] fix(pkg): expose ./package.json through the exports map MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Tooling that reads a dependency's package.json — a common pattern — failed with ERR_PACKAGE_PATH_NOT_EXPORTED, because the exports map added in the 1.1.0 entry-point split did not list it. Verified against a packed tarball, not just the source tree. --- CHANGELOG.md | 8 ++++++++ package.json | 5 +++-- 2 files changed, 11 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index a310b1b..b28a8ff 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,6 +7,14 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ## [Unreleased] +## [1.3.1] - 2026-09-10 + +### Fixed + +- Expose `./package.json` through the `exports` map. Without it, tooling that reads a + dependency's `package.json` — a common pattern — fails with + `ERR_PACKAGE_PATH_NOT_EXPORTED`. + ## [1.3.0] - 2026-09-10 ### Changed diff --git a/package.json b/package.json index ef67f33..74c15fb 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@deniscuciuc/pg-analyzer", - "version": "1.3.0", + "version": "1.3.1", "description": "CLI tool that analyzes PostgreSQL databases for performance issues \u2014 indexes, slow queries, table bloat, connections and cache health.", "keywords": [ "postgresql", @@ -89,7 +89,8 @@ "types": "./dist/src/index.d.ts", "require": "./dist/src/index.js", "default": "./dist/src/index.js" - } + }, + "./package.json": "./package.json" }, "sideEffects": false }