spee.ch/utils/checkForLocalConfig.js

7 lines
216 B
JavaScript
Raw Normal View History

2018-08-01 01:01:16 +02:00
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.`);
}
};