From 0ad7f316c469ce099c81934a879b020b55a2389d Mon Sep 17 00:00:00 2001 From: Juergen Kunz Date: Tue, 3 Feb 2026 07:29:20 +0000 Subject: [PATCH] fix(package.json): replace main and typings with exports field pointing to ./dist_ts/index.js --- changelog.md | 7 +++++++ package.json | 5 +++-- ts/00_commitinfo_data.ts | 2 +- 3 files changed, 11 insertions(+), 3 deletions(-) diff --git a/changelog.md b/changelog.md index 92a2f26..703b2a3 100644 --- a/changelog.md +++ b/changelog.md @@ -1,5 +1,12 @@ # Changelog +## 2026-02-03 - 4.2.1 - fix(package.json) +replace main and typings with exports field pointing to ./dist_ts/index.js + +- Added package.json exports field mapping "." to ./dist_ts/index.js to declare the package entrypoint. +- Removed main (dist_ts/index.js) and typings (dist_ts/index.d.ts) entries. +- Note: switching to exports improves Node resolution but removing the typings entry may affect TypeScript consumers expecting index.d.ts. + ## 2026-02-01 - 4.2.0 - feat(tsmdb) implement TsmDB Mongo-wire-compatible server, add storage/engine modules and reorganize exports diff --git a/package.json b/package.json index e1bf4b3..9b5f602 100644 --- a/package.json +++ b/package.json @@ -3,8 +3,9 @@ "version": "4.2.0", "private": false, "description": "A module for creating and managing a local MongoDB instance for testing purposes.", - "main": "dist_ts/index.js", - "typings": "dist_ts/index.d.ts", + "exports": { + ".": "./dist_ts/index.js" + }, "type": "module", "author": "Lossless GmbH", "license": "MIT", diff --git a/ts/00_commitinfo_data.ts b/ts/00_commitinfo_data.ts index dffb97b..d4a163f 100644 --- a/ts/00_commitinfo_data.ts +++ b/ts/00_commitinfo_data.ts @@ -3,6 +3,6 @@ */ export const commitinfo = { name: '@push.rocks/smartmongo', - version: '4.2.0', + version: '4.2.1', description: 'A module for creating and managing a local MongoDB instance for testing purposes.' }