Skip to content

Commit

Permalink
configname ref
Browse files Browse the repository at this point in the history
  • Loading branch information
phated committed Mar 13, 2024
1 parent 6493adc commit 25df776
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -146,11 +146,14 @@ Liftoff.prototype.buildEnvironment = function (opts) {
return loadConfig(cwd, startingLocation, defaultConfig);
});

var configName = this.configName;

var configPathOverride = arrayFind(Object.keys(config), function (key) {
var cfg = config[key];
console.log(cfg);
if (Object.prototype.hasOwnProperty.call(cfg, this.configName)) {
console.log(cfg[this.configName]);
console.log(configName);
if (Object.prototype.hasOwnProperty.call(cfg, configName)) {
console.log(cfg[configName]);
return cfg[this.configName];
}
});
Expand All @@ -165,7 +168,7 @@ Liftoff.prototype.buildEnvironment = function (opts) {

// calculate the regex to use for finding the config file
var configNameSearch = buildConfigName({
configName: this.configName,
configName: configName,
extensions: Object.keys(this.extensions),
});

Expand Down

0 comments on commit 25df776

Please sign in to comment.