add package.json dirname to mergeOptions - closes #3093
This commit is contained in:
parent
d2e07cffb9
commit
ba68bd255e
@ -157,7 +157,7 @@ export default class OptionManager {
|
|||||||
throw err;
|
throw err;
|
||||||
}
|
}
|
||||||
|
|
||||||
this.mergeOptions(opts, loc);
|
this.mergeOptions(opts, loc, null, path.dirname(loc));
|
||||||
this.resolvedConfigs.push(loc);
|
this.resolvedConfigs.push(loc);
|
||||||
|
|
||||||
return !!opts;
|
return !!opts;
|
||||||
@ -237,7 +237,7 @@ export default class OptionManager {
|
|||||||
merge(this.options, opts);
|
merge(this.options, opts);
|
||||||
|
|
||||||
// merge in env options
|
// merge in env options
|
||||||
this.mergeOptions(envOpts, `${alias}.env.${envKey}`);
|
this.mergeOptions(envOpts, `${alias}.env.${envKey}`, null, dirname);
|
||||||
}
|
}
|
||||||
|
|
||||||
mergePresets(presets: Array<string | Object>, dirname: string) {
|
mergePresets(presets: Array<string | Object>, dirname: string) {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user