@fto-consult/expo-ui 5.6.7 → 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/babel.config.alias.js +0 -2
- package/copy-env-file.js +4 -4
- package/package.json +2 -2
package/babel.config.alias.js
CHANGED
|
@@ -2,8 +2,6 @@ const path = require("path");
|
|
|
2
2
|
const fs = require("fs");
|
|
3
3
|
const writeFile = require("./electron/utils/writeFile");
|
|
4
4
|
module.exports = (opts)=>{
|
|
5
|
-
console.log(process.env.EXPO_UI_PATH," is process envvvvv");
|
|
6
|
-
console.log(JSON.stringify(process.env)," is stringityffff");
|
|
7
5
|
const dir = path.resolve(__dirname);
|
|
8
6
|
const base = opts.base || process.cwd();
|
|
9
7
|
const assets = path.resolve(dir,"assets");
|
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
|
|
@@ -6,13 +7,12 @@ const writeFile = require("./electron/utils/writeFile");
|
|
|
6
7
|
*/
|
|
7
8
|
module.exports = (projectRoot,forceCreate)=>{
|
|
8
9
|
projectRoot = projectRoot && typeof projectRoot =="string" && fs.existsSync(projectRoot) && projectRoot || process.cwd();
|
|
9
|
-
const environmentPath = path.resolve(projectRoot,"
|
|
10
|
-
const localEnv = path.resolve(__dirname,"
|
|
11
|
-
console.log(localEnv,environmentPath," is local and tooo")
|
|
10
|
+
const environmentPath = path.resolve(projectRoot,".env");
|
|
11
|
+
const localEnv = path.resolve(__dirname,".env");
|
|
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",
|