Explicitly export default objects

These cannot be imported elsewhere without explicitly adding them to module.exports.
This commit is contained in:
Scott Carver
2018-11-11 21:11:59 -08:00
committed by Lachie Kermode
parent 8ffd49d179
commit ba953f56d3

View File

@@ -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);