@fto-consult/expo-ui 5.6.8 → 5.6.9
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/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/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fto-consult/expo-ui",
|
|
3
|
-
"version": "5.6.
|
|
3
|
+
"version": "5.6.9",
|
|
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",
|