@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
@@ -17,13 +17,16 @@ export const loadEnvFile = (environmentMode, projectName) => {
|
|
17
17
|
};
|
18
18
|
}
|
19
19
|
const data = {};
|
20
|
-
Object.keys(
|
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,
|