mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-10-27 17:16:14 +01:00
fix: module build
This commit is contained in:
@@ -204,10 +204,11 @@ async function getModuleList() {
|
|||||||
};
|
};
|
||||||
});
|
});
|
||||||
|
|
||||||
moduleFiles.concat(mods).forEach(function (mod) {
|
moduleFiles.push(...mods);
|
||||||
mod.filename = path.relative(basePath, mod.srcPath).replace(/\\/g, '/');
|
|
||||||
});
|
|
||||||
}));
|
}));
|
||||||
|
moduleFiles.forEach(function (mod) {
|
||||||
|
mod.filename = path.relative(basePath, mod.srcPath).replace(/\\/g, '/');
|
||||||
|
});
|
||||||
return moduleFiles;
|
return moduleFiles;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user