index.js 361 B

12345678910111213141516
  1. module.exports.readConfig = readConfig;
  2. function readConfig() {
  3. var config;
  4. try {
  5. config = require('../config.json');
  6. } catch (e) {
  7. console.error('failed to read/parse config');
  8. console.error('ensure that you cp dist-config.json config.json');
  9. console.error(e);
  10. process.exit(1);
  11. }
  12. return config;
  13. }