@fto-consult/expo-ui 2.7.10 → 2.7.12
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 +5 -4
- package/package.json +1 -1
package/expo-ui-path.js
CHANGED
|
@@ -13,7 +13,7 @@ module.exports = function (...args){
|
|
|
13
13
|
const expoUIPath = "@fto-consult/expo-ui";
|
|
14
14
|
if(typeof argv == 'object' && argv && !Array.isArray(argv)){
|
|
15
15
|
for(let i in argv){
|
|
16
|
-
|
|
16
|
+
let v = argv[i];
|
|
17
17
|
if(typeof v !='string' || !v) continue;
|
|
18
18
|
v = v.toLowerCase();
|
|
19
19
|
i = (i+'').toLocaleLowerCase();
|
|
@@ -23,12 +23,13 @@ module.exports = function (...args){
|
|
|
23
23
|
}
|
|
24
24
|
}
|
|
25
25
|
}
|
|
26
|
+
const suffix = path.join(...args);
|
|
27
|
+
const sep = path.sep;
|
|
26
28
|
if(isBuild){
|
|
27
|
-
|
|
29
|
+
const pp = suffix ? path.join(expoUIPath,suffix).replace(sep,"/") : expoUIPath;
|
|
30
|
+
return pp;
|
|
28
31
|
}
|
|
29
|
-
const suffix = path.join(...args);
|
|
30
32
|
const p = require("./lookup-expo-ui-path")();
|
|
31
|
-
const sep = path.sep;
|
|
32
33
|
if(p && fs.existsSync(p)){
|
|
33
34
|
const rootPath = path.resolve(p,"..");
|
|
34
35
|
const src = path.resolve(rootPath,"src");
|