From 0515d2ae461857da5771b36489260fa8143cb227 Mon Sep 17 00:00:00 2001 From: Juergen Kunz Date: Wed, 11 Feb 2026 16:06:34 +0000 Subject: [PATCH] feat(packaging): add package exports entry, include ts/dist_ts in package files, and add TS barrel index re-exports --- changelog.md | 7 +++++++ package.json | 5 +++++ ts/00_commitinfo_data.ts | 2 +- ts/index.ts | 3 +++ 4 files changed, 16 insertions(+), 1 deletion(-) create mode 100644 ts/index.ts diff --git a/changelog.md b/changelog.md index 0fe6384..d46fdb8 100644 --- a/changelog.md +++ b/changelog.md @@ -1,5 +1,12 @@ # Changelog +## 2026-02-11 - 5.2.0 - feat(packaging) +add package exports entry, include ts/dist_ts in package files, and add TS barrel index re-exports + +- package.json: add "exports" mapping "." -> "./dist_ts/index.js" to provide a module entry point +- package.json: add "ts/**/*" and "dist_ts/**/*" to "files" so TypeScript sources and built output are published +- ts/index.ts: new barrel that re-exports './00_commitinfo_data.js', './mail/index.js', and './security/index.js' + ## 2026-02-11 - 5.1.3 - fix(docs) clarify sendEmail default behavior and document automatic MX discovery and delivery modes diff --git a/package.json b/package.json index e358fac..a5ff37a 100644 --- a/package.json +++ b/package.json @@ -27,6 +27,9 @@ "author": "Task Venture Capital GmbH", "license": "MIT", "type": "module", + "exports": { + ".": "./dist_ts/index.js" + }, "bin": { "mailer": "./bin/mailer-wrapper.js" }, @@ -56,6 +59,8 @@ "uuid": "^13.0.0" }, "files": [ + "ts/**/*", + "dist_ts/**/*", "bin/", "scripts/install-binary.js", "dist_rust/**/*", diff --git a/ts/00_commitinfo_data.ts b/ts/00_commitinfo_data.ts index b5fb2f3..2767bbe 100644 --- a/ts/00_commitinfo_data.ts +++ b/ts/00_commitinfo_data.ts @@ -3,6 +3,6 @@ */ export const commitinfo = { name: '@push.rocks/smartmta', - version: '5.1.3', + version: '5.2.0', description: 'A high-performance, enterprise-grade Mail Transfer Agent (MTA) built from scratch in TypeScript with Rust acceleration.' } diff --git a/ts/index.ts b/ts/index.ts new file mode 100644 index 0000000..9e6ebb9 --- /dev/null +++ b/ts/index.ts @@ -0,0 +1,3 @@ +export * from './00_commitinfo_data.js'; +export * from './mail/index.js'; +export * from './security/index.js';