@candlerip/shared3 0.0.54 → 0.0.56

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,4 +1,4 @@
1
1
  #!/usr/bin/bash
2
2
 
3
- docker build -t reveszimre/$1 --build-arg ENVIRONMENT_MODE=production .
3
+ docker build -t reveszimre/$1 --build-arg NODE_ENV=production .
4
4
  docker push reveszimre/$1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@candlerip/shared3",
3
- "version": "0.0.54",
3
+ "version": "0.0.56",
4
4
  "type": "module",
5
5
  "main": "src/index.js",
6
6
  "bin": {
@@ -12,7 +12,7 @@ export const loadEnvFile = (environmentMode, projectName) => {
12
12
  }
13
13
  const environmentVariables = ENVIRONMENT_VARIABLES[projectName];
14
14
  return {
15
- data: Object.keys(environmentVariables).reduce((acc, key) => {
15
+ data: environmentVariables.reduce((acc, key) => {
16
16
  const data = {};
17
17
  if (ENVIRONMENT_VARIABLE[key] === 'boolean') {
18
18
  data[key] = Boolean(parsed[key] === 'true');
@@ -9,6 +9,7 @@ export const EnvironmentVariablesWorker = (() => {
9
9
  if ('customError' in resp) {
10
10
  return resp;
11
11
  }
12
+ envs = resp.data;
12
13
  return resp;
13
14
  };
14
15
  const isDevelopment = () => isDev(NODE_ENV);