fix(cli): Use basename when collecting HTML files for the website CLI command to ensure correct relative paths

This commit is contained in:
2025-12-02 20:55:43 +00:00
parent 070bc7891e
commit c66af4e66c
3 changed files with 8 additions and 2 deletions

View File

@@ -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({