mirror of
https://github.com/bellingcat/datasheet-server.git
synced 2026-06-10 12:28:34 +03:00
Explicitly export default objects
These cannot be imported elsewhere without explicitly adding them to module.exports.
This commit is contained in:
committed by
Lachie Kermode
parent
8ffd49d179
commit
ba953f56d3
@@ -25,4 +25,7 @@ fs.readdirSync(normalizedPath).forEach(file => {
|
||||
allBps[bpName] = require(`${REL_PATH_TO_BPS}/${file}`).default;
|
||||
});
|
||||
|
||||
module.exports = allBps;
|
||||
module.exports = Object.assign({
|
||||
"defaultBlueprint": defaultBlueprint,
|
||||
"defaultRoute": defaultRoute
|
||||
}, allBps);
|
||||
|
||||
Reference in New Issue
Block a user