fix(cli): Use basename when collecting HTML files for the website CLI command to ensure correct relative paths
This commit is contained in:
@@ -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'
|
||||
}
|
||||
|
||||
@@ -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({
|
||||
|
||||
Reference in New Issue
Block a user