@dsmrt/axiom-config 0.2.1 → 0.2.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +7 -0
- package/dist/index.js +5 -1
- package/dist/index.mjs +5 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
package/dist/index.js
CHANGED
|
@@ -61,10 +61,14 @@ var importConfigFromPath = (path) => {
|
|
|
61
61
|
throw new Error(`Path not found: {path}`);
|
|
62
62
|
};
|
|
63
63
|
var loadConfig = (input) => {
|
|
64
|
-
const baseConfigFile = configPath(
|
|
64
|
+
const baseConfigFile = configPath({
|
|
65
|
+
...input,
|
|
66
|
+
env: void 0
|
|
67
|
+
});
|
|
65
68
|
const baseConfig = importConfigFromPath(baseConfigFile);
|
|
66
69
|
let overrides = input?.overrides || {};
|
|
67
70
|
if (input?.env) {
|
|
71
|
+
console.log("INPUT", input);
|
|
68
72
|
const devConfig = importConfigFromPath(configPath(input));
|
|
69
73
|
overrides = mergeDeep(devConfig, overrides);
|
|
70
74
|
}
|
package/dist/index.mjs
CHANGED
|
@@ -40,10 +40,14 @@ var importConfigFromPath = (path) => {
|
|
|
40
40
|
throw new Error(`Path not found: {path}`);
|
|
41
41
|
};
|
|
42
42
|
var loadConfig = (input) => {
|
|
43
|
-
const baseConfigFile = configPath(
|
|
43
|
+
const baseConfigFile = configPath({
|
|
44
|
+
...input,
|
|
45
|
+
env: void 0
|
|
46
|
+
});
|
|
44
47
|
const baseConfig = importConfigFromPath(baseConfigFile);
|
|
45
48
|
let overrides = input?.overrides || {};
|
|
46
49
|
if (input?.env) {
|
|
50
|
+
console.log("INPUT", input);
|
|
47
51
|
const devConfig = importConfigFromPath(configPath(input));
|
|
48
52
|
overrides = mergeDeep(devConfig, overrides);
|
|
49
53
|
}
|