diff --git a/changelog.md b/changelog.md index 9f275fc..8dc8a8d 100644 --- a/changelog.md +++ b/changelog.md @@ -1,5 +1,11 @@ # Changelog +## 2026-03-05 - 2.9.1 - fix(mod_custom) +use absolute smartfs entry.path instead of joining with dirPath when building fullPath + +- entry.path is already absolute (from smartfs); avoid joining it with dirPath which produced incorrect paths +- Fixes file copy path construction so plugins.fs.file(fullPath).copy(destPath) uses the correct source path + ## 2026-02-24 - 2.9.0 - feat(exports) expose mod_custom, mod_output and interfaces from entry; make processSingleBundle public diff --git a/ts/00_commitinfo_data.ts b/ts/00_commitinfo_data.ts index 8d44ef0..2ce5001 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.9.0', + version: '2.9.1', description: 'a multi-bundler tool supporting esbuild, rolldown, and rspack for painless bundling of web projects' } diff --git a/ts/mod_custom/index.ts b/ts/mod_custom/index.ts index 0185ef9..164547e 100644 --- a/ts/mod_custom/index.ts +++ b/ts/mod_custom/index.ts @@ -176,7 +176,8 @@ export class CustomBundleHandler { for (const entry of entries) { if (!entry.isDirectory && regex.test(entry.name)) { - const fullPath = plugins.path.join(dirPath, entry.path); + // entry.path is already absolute from smartfs + const fullPath = entry.path; const relativePath = plugins.path.relative(this.cwd, fullPath); const destPath = plugins.path.join(outputDir, plugins.path.basename(entry.path)); await plugins.fs.directory(plugins.path.dirname(destPath)).create();