We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 20abf15 commit cd0e6beCopy full SHA for cd0e6be
include/file-config.js
@@ -4,6 +4,7 @@ const config = require('./config');
4
const yaml = require('read-yaml');
5
const hash = require('hash-sum');
6
const Fs = require('./filesystem');
7
+const extend = require('util')._extend;
8
9
/**
10
* file config with local and global configuration files
@@ -45,7 +46,9 @@ class fileConfig extends config {
45
46
*/
47
parseLocal() {
48
try {
- return yaml.sync(this.local, {});
49
+ let global = yaml.sync(this.global, {});
50
+ let local = yaml.sync(this.local, {});
51
+ return extend(global, local);
52
} catch (e) {
53
console.log(`Error parsing configuration: "${this.local}"`);
54
process.exit(1);
0 commit comments