@jayfong/x-utils 1.0.0-202409200008 → 1.0.0-202409200020
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/_cjs/env.js +4 -2
- package/env.js +4 -2
- package/package.json +1 -1
package/_cjs/env.js
CHANGED
|
@@ -52,8 +52,10 @@ class XEnv {
|
|
|
52
52
|
const dotenvContent = await import_fs.XFs.readFile(dotenvFile, "utf-8");
|
|
53
53
|
envVars = await import_dotenv.default.parse(dotenvContent);
|
|
54
54
|
}
|
|
55
|
-
|
|
56
|
-
|
|
55
|
+
if (!local) {
|
|
56
|
+
const localEnvVars = await XEnv.getEnvVarsFromFile(mode, true);
|
|
57
|
+
Object.assign(envVars, localEnvVars);
|
|
58
|
+
}
|
|
57
59
|
return envVars;
|
|
58
60
|
},
|
|
59
61
|
(mode, local) => `${mode}_${local}`
|
package/env.js
CHANGED
|
@@ -19,8 +19,10 @@ class XEnv {
|
|
|
19
19
|
const dotenvContent = await XFs.readFile(dotenvFile, "utf-8");
|
|
20
20
|
envVars = await dotenv.parse(dotenvContent);
|
|
21
21
|
}
|
|
22
|
-
|
|
23
|
-
|
|
22
|
+
if (!local) {
|
|
23
|
+
const localEnvVars = await XEnv.getEnvVarsFromFile(mode, true);
|
|
24
|
+
Object.assign(envVars, localEnvVars);
|
|
25
|
+
}
|
|
24
26
|
return envVars;
|
|
25
27
|
},
|
|
26
28
|
(mode, local) => `${mode}_${local}`
|