fix(mod_custom): use absolute smartfs entry.path instead of joining with dirPath when building fullPath
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user