@fto-consult/expo-ui 2.7.2 → 2.7.4
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/expo-ui-path.js +16 -1
- package/package.json +4 -3
package/expo-ui-path.js
CHANGED
|
@@ -6,6 +6,21 @@ const fs = require("fs");
|
|
|
6
6
|
const path = require("path");
|
|
7
7
|
///retourne le chemin vers le package @expo-ui
|
|
8
8
|
module.exports = function (...args){
|
|
9
|
+
const argv = require('args-parser')(process.argv);
|
|
10
|
+
let isBuild = false;
|
|
11
|
+
const expoUIPath = "@fto-consult/expo-ui";
|
|
12
|
+
if(typeof argv == 'object' && argv && !Array.isArray(argv)){
|
|
13
|
+
for(let i in argv){
|
|
14
|
+
i = (i+"").toLowerCase();
|
|
15
|
+
if(i.includes('build') || i.includes('production') || i.includes('export') || i.includes('android')){
|
|
16
|
+
isBuild = true;
|
|
17
|
+
break;
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
if(isBuild){
|
|
22
|
+
return expoUIPath;
|
|
23
|
+
}
|
|
9
24
|
const suffix = path.join(...args);
|
|
10
25
|
const p = require("./lookup-expo-ui-path")();
|
|
11
26
|
const sep = path.sep;
|
|
@@ -16,6 +31,6 @@ module.exports = function (...args){
|
|
|
16
31
|
return path.resolve(p,suffix).replace(sep,(sep+sep));
|
|
17
32
|
}
|
|
18
33
|
}
|
|
19
|
-
return suffix ? path.join(
|
|
34
|
+
return suffix ? path.join(expoUIPath,suffix).replace(sep,"/"): expoUIPath;
|
|
20
35
|
};
|
|
21
36
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fto-consult/expo-ui",
|
|
3
|
-
"version": "2.7.
|
|
3
|
+
"version": "2.7.4",
|
|
4
4
|
"description": "Bibliothèque de composants UI Expo,react-native",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"resolutions": {
|
|
@@ -75,12 +75,14 @@
|
|
|
75
75
|
"@react-navigation/native": "^6.0.13",
|
|
76
76
|
"@react-navigation/native-stack": "^6.9.1",
|
|
77
77
|
"@shopify/flash-list": "1.3.1",
|
|
78
|
+
"args-parser": "^1.3.0",
|
|
78
79
|
"babel-plugin-inline-dotenv": "^1.7.0",
|
|
79
80
|
"babel-plugin-module-resolver": "^4.1.0",
|
|
80
81
|
"babel-plugin-transform-inline-environment-variables": "^0.4.4",
|
|
81
82
|
"expo": "^47.0.8",
|
|
82
83
|
"expo-camera": "~13.1.0",
|
|
83
84
|
"expo-clipboard": "~4.0.1",
|
|
85
|
+
"expo-font": "~11.0.1",
|
|
84
86
|
"expo-image-picker": "~14.0.2",
|
|
85
87
|
"expo-linking": "~3.2.3",
|
|
86
88
|
"expo-sqlite": "~11.0.0",
|
|
@@ -108,7 +110,6 @@
|
|
|
108
110
|
"react-native-web": "~0.18.7",
|
|
109
111
|
"react-native-webview": "11.23.1",
|
|
110
112
|
"sharp-cli": "^2.1.0",
|
|
111
|
-
"tippy.js": "^6.3.7"
|
|
112
|
-
"expo-font": "~11.0.1"
|
|
113
|
+
"tippy.js": "^6.3.7"
|
|
113
114
|
}
|
|
114
115
|
}
|