fix(package.json): replace main and typings with exports field pointing to ./dist_ts/index.js

This commit is contained in:
2026-02-03 07:29:20 +00:00
parent 0d450e7d4e
commit 0ad7f316c4
3 changed files with 11 additions and 3 deletions

View File

@@ -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

View File

@@ -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",

View File

@@ -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.'
}