@incanta/config
Advanced tools
Comparing version 0.4.2 to 0.4.3
@@ -128,3 +128,8 @@ "use strict"; | ||
} | ||
(0, lodash_merge_1.default)(baseObj, Loader.load(path_1.default.join(folder, "..", parentName), options)); | ||
const parentFolder = path_1.default.join(folder, "..", parentName); | ||
const parentOptions = Loader.readConfigSettings(parentFolder); | ||
(0, lodash_merge_1.default)(baseObj, Loader.loadRoot(parentFolder, { | ||
...options, | ||
parentNames: parentOptions.parentNames, | ||
})); | ||
} | ||
@@ -131,0 +136,0 @@ } |
{ | ||
"name": "@incanta/config", | ||
"version": "0.4.2", | ||
"version": "0.4.3", | ||
"main": "lib/index.js", | ||
@@ -5,0 +5,0 @@ "exports": { |
@@ -161,5 +161,10 @@ import fs from "fs"; | ||
} | ||
const parentFolder = path.join(folder, "..", parentName); | ||
const parentOptions = Loader.readConfigSettings(parentFolder); | ||
merge( | ||
baseObj, | ||
Loader.load(path.join(folder, "..", parentName), options) | ||
Loader.loadRoot(parentFolder, { | ||
...options, | ||
parentNames: parentOptions.parentNames, | ||
}) | ||
); | ||
@@ -166,0 +171,0 @@ } |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
52387
945