spee.ch/utils/checkForLocalConfig.js
2018-07-31 16:01:16 -07:00

7 lines
216 B
JavaScript

module.exports = (name) => {
const config = require(`@config/${name}`);
if (!config) {
throw new Error(`No config file found for ${name}. Please run 'npm run configure' to build your config files.`);
}
};