Allow process to be used inside config

This commit is contained in:
Albin Ekblom 2018-02-26 23:34:00 +01:00
parent e17aab656d
commit 24fa4c12c6

View file

@ -4,7 +4,7 @@ const mapKeys = require('../utils/map-keys');
const _extract = function(script) {
const module = {};
script.runInNewContext({module});
script.runInNewContext({module, process});
if (!module.exports) {
throw new Error('Error reading configuration: `module.exports` not set');
}