From 3a53fffe3d7de0ef7214502025e866fed0bcbf3e Mon Sep 17 00:00:00 2001 From: Juergen Kunz Date: Tue, 24 Feb 2026 19:00:42 +0000 Subject: [PATCH] feat(exports): expose mod_custom, mod_output and interfaces from entry; make processSingleBundle public --- changelog.md | 7 +++++++ ts/00_commitinfo_data.ts | 2 +- ts/index.ts | 3 +++ ts/mod_custom/index.ts | 2 +- 4 files changed, 12 insertions(+), 2 deletions(-) diff --git a/changelog.md b/changelog.md index 00cd572..9f275fc 100644 --- a/changelog.md +++ b/changelog.md @@ -1,5 +1,12 @@ # Changelog +## 2026-02-24 - 2.9.0 - feat(exports) +expose mod_custom, mod_output and interfaces from entry; make processSingleBundle public + +- Exported ./mod_custom, ./mod_output and ./interfaces from ts/index.ts to expose these modules in the public API. +- Changed processSingleBundle in ts/mod_custom/index.ts from private to public to allow programmatic invocation. +- Non-breaking API expansion; recommend a minor version bump. + ## 2026-02-24 - 2.8.4 - fix() no changes — empty diff, nothing to commit diff --git a/ts/00_commitinfo_data.ts b/ts/00_commitinfo_data.ts index 75c004c..8d44ef0 100644 --- a/ts/00_commitinfo_data.ts +++ b/ts/00_commitinfo_data.ts @@ -3,6 +3,6 @@ */ export const commitinfo = { name: '@git.zone/tsbundle', - version: '2.8.4', + version: '2.9.0', description: 'a multi-bundler tool supporting esbuild, rolldown, and rspack for painless bundling of web projects' } diff --git a/ts/index.ts b/ts/index.ts index 796ced7..84ab991 100644 --- a/ts/index.ts +++ b/ts/index.ts @@ -11,4 +11,7 @@ early.stop(); export * from './tsbundle.class.tsbundle.js'; export * from './mod_assets/index.js'; export * from './mod_html/index.js'; +export * from './mod_custom/index.js'; +export * from './mod_output/index.js'; +export * from './interfaces/index.js'; export { runCli }; diff --git a/ts/mod_custom/index.ts b/ts/mod_custom/index.ts index 8c3d650..0185ef9 100644 --- a/ts/mod_custom/index.ts +++ b/ts/mod_custom/index.ts @@ -48,7 +48,7 @@ export class CustomBundleHandler { /** * Process a single bundle configuration */ - private async processSingleBundle(bundleConfig: interfaces.IBundleConfig): Promise { + public async processSingleBundle(bundleConfig: interfaces.IBundleConfig): Promise { const outputMode = bundleConfig.outputMode || 'bundle'; const bundler = bundleConfig.bundler || 'esbuild';