diff --git a/changelog.md b/changelog.md index 4426dca..ab33f7c 100644 --- a/changelog.md +++ b/changelog.md @@ -1,5 +1,11 @@ # Changelog +## 2025-12-02 - 2.6.3 - fix(cli) +Use basename when collecting HTML files for the website CLI command to ensure correct relative paths + +- ts/tsbundle.cli.ts: use plugins.path.basename(entry.path) when building htmlFiles list instead of full entry.path +- Prevents incorrect paths when calling HtmlHandler.processHtml with './html/' and ensures HTML files are processed from the expected relative html directory + ## 2025-11-30 - 2.6.2 - fix(deps) Bump dependencies and migrate test fixtures to ts_web diff --git a/ts/00_commitinfo_data.ts b/ts/00_commitinfo_data.ts index 43a5fde..158fb93 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.6.2', + version: '2.6.3', description: 'a multi-bundler tool supporting esbuild, rolldown, and rspack for painless bundling of web projects' } diff --git a/ts/tsbundle.cli.ts b/ts/tsbundle.cli.ts index 084c67e..9c513a7 100644 --- a/ts/tsbundle.cli.ts +++ b/ts/tsbundle.cli.ts @@ -52,7 +52,7 @@ export const runCli = async () => { .directory(htmlDirPath) .filter(/\.html$/) .list(); - htmlFiles = entries.map((entry) => entry.path); + htmlFiles = entries.map((entry) => plugins.path.basename(entry.path)); } for (const htmlFile of htmlFiles) { await htmlHandler.processHtml({