mirror of
https://github.com/bellingcat/datasheet-server.git
synced 2026-06-12 21:38:32 +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;
|
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