@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.
Files changed (3) hide show
  1. package/_cjs/env.js +4 -2
  2. package/env.js +4 -2
  3. 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
- const localEnvVars = await XEnv.getEnvVarsFromFile(mode, true);
56
- Object.assign(envVars, localEnvVars);
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
- const localEnvVars = await XEnv.getEnvVarsFromFile(mode, true);
23
- Object.assign(envVars, localEnvVars);
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}`
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@jayfong/x-utils",
3
3
  "description": "123456",
4
- "version": "1.0.0-202409200008",
4
+ "version": "1.0.0-202409200020",
5
5
  "type": "module",
6
6
  "dependencies": {
7
7
  "vtils": "^4.115.0",