@candlerip/shared3 0.0.137 → 0.0.139

Sign up to get free protection for your applications and to get access to all the features.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@candlerip/shared3",
3
- "version": "0.0.137",
3
+ "version": "0.0.139",
4
4
  "type": "module",
5
5
  "exports": {
6
6
  ".": "./src/index.js",
@@ -17,13 +17,16 @@ export const loadEnvFile = (environmentMode, projectName) => {
17
17
  };
18
18
  }
19
19
  const data = {};
20
- Object.keys(parsed).forEach((key) => {
20
+ Object.keys(config).forEach((key) => {
21
21
  if (config[key] === 'boolean') {
22
22
  data[key] = Boolean(parsed[key] === 'true');
23
23
  }
24
24
  else if (config[key] === 'number') {
25
25
  data[key] = parseInt(parsed[key]);
26
26
  }
27
+ else {
28
+ data[key] = parsed[key];
29
+ }
27
30
  });
28
31
  return {
29
32
  data: data,