@fto-consult/expo-ui 5.6.8 → 5.6.10
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/copy-env-file.js +2 -2
- package/electron/utils/writeFile.js +0 -1
- package/expo-ui-path.js +1 -1
- package/package.json +2 -2
package/copy-env-file.js
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
const fs = require("fs");
|
|
2
|
+
const fsExtra = require("fs-extra");
|
|
2
3
|
const path = require("path");
|
|
3
4
|
const writeFile = require("./electron/utils/writeFile");
|
|
4
5
|
/*** create and copy environment path to this directory
|
|
@@ -8,11 +9,10 @@ module.exports = (projectRoot,forceCreate)=>{
|
|
|
8
9
|
projectRoot = projectRoot && typeof projectRoot =="string" && fs.existsSync(projectRoot) && projectRoot || process.cwd();
|
|
9
10
|
const environmentPath = path.resolve(projectRoot,".env");
|
|
10
11
|
const localEnv = path.resolve(__dirname,".env");
|
|
11
|
-
console.log(localEnv,environmentPath," is local and environment exists ? ",fs.existsSync(environmentPath))
|
|
12
12
|
if(environmentPath && fs.existsSync(environmentPath)){
|
|
13
13
|
// File ".env" will be created or overwritten by default.
|
|
14
14
|
try {
|
|
15
|
-
|
|
15
|
+
fsExtra.copySync(environmentPath, localEnv,{overwrite:true});
|
|
16
16
|
}
|
|
17
17
|
catch (e){}
|
|
18
18
|
}
|
package/expo-ui-path.js
CHANGED
|
@@ -20,7 +20,7 @@ module.exports = function (){
|
|
|
20
20
|
try {
|
|
21
21
|
const envPath = path.resolve(rootPath,".env");
|
|
22
22
|
const envObj = fs.existsSync(envPath)? require("./parse-env")(fs.readFileSync(envPath,'utf8')) : {};
|
|
23
|
-
const euPathm = typeof envObj.
|
|
23
|
+
const euPathm = typeof envObj.EXPO_UI_ROOT_PATH =="string" && envObj.EXPO_UI_ROOT_PATH && path.resolve(envObj.EXPO_UI_ROOT_PATH)||'';
|
|
24
24
|
const eu = euPathm && fs.existsSync(euPathm)? euPathm : null;
|
|
25
25
|
console.log(eu," is eu path and env object is",envObj," is env objecct feeeeee");
|
|
26
26
|
if(eu && fs.existsSync(path.resolve(eu,"src")) && fs.existsSync(path.resolve(eu,"webpack.config.js"))){
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fto-consult/expo-ui",
|
|
3
|
-
"version": "5.6.
|
|
3
|
+
"version": "5.6.10",
|
|
4
4
|
"description": "Bibliothèque de composants UI Expo,react-native",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"scripts": {
|
|
@@ -81,7 +81,7 @@
|
|
|
81
81
|
"expo-system-ui": "~2.2.1",
|
|
82
82
|
"expo-web-browser": "~12.1.1",
|
|
83
83
|
"file-saver": "^2.0.5",
|
|
84
|
-
"fs-extra": "^11.1.
|
|
84
|
+
"fs-extra": "^11.1.1",
|
|
85
85
|
"google-libphonenumber": "^3.2.31",
|
|
86
86
|
"htmlparser2-without-node-native": "^3.9.2",
|
|
87
87
|
"process": "^0.11.10",
|