fix: module build

This commit is contained in:
Barış Soner Uşaklı
2020-10-14 23:32:30 -04:00
parent 3881ac309f
commit bae0f343e1

View File

@@ -204,10 +204,11 @@ async function getModuleList() {
};
});
moduleFiles.concat(mods).forEach(function (mod) {
mod.filename = path.relative(basePath, mod.srcPath).replace(/\\/g, '/');
});
moduleFiles.push(...mods);
}));
moduleFiles.forEach(function (mod) {
mod.filename = path.relative(basePath, mod.srcPath).replace(/\\/g, '/');
});
return moduleFiles;
}