@fto-consult/expo-ui 1.1.25 → 1.1.28
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 -6
- package/package.json +1 -1
package/expo-ui-path.js
CHANGED
|
@@ -8,16 +8,15 @@ const dir = path.resolve(__dirname)
|
|
|
8
8
|
///retourne le chemin vers le package @expo-ui
|
|
9
9
|
module.exports = function (...args){
|
|
10
10
|
const suffix = path.join(...args);
|
|
11
|
-
console.log("suffix is suffix heinn ",suffix)
|
|
12
11
|
const p = lookupForExpoUIPath();
|
|
13
12
|
const sep = path.sep;
|
|
14
13
|
if(p && fs.existsSync(p)){
|
|
15
|
-
const
|
|
16
|
-
const src = path.resolve(
|
|
17
|
-
if(fs.existsSync(src) && fs.existsSync((path.resolve(
|
|
18
|
-
const expoUIPath = path.resolve(
|
|
14
|
+
const rootPath = path.resolve(p,"..");
|
|
15
|
+
const src = path.resolve(rootPath,"src");
|
|
16
|
+
if(fs.existsSync(src) && fs.existsSync((path.resolve(rootPath,"babel.config.js")))){
|
|
17
|
+
const expoUIPath = path.resolve(rootPath,"expo-ui-path.js");
|
|
19
18
|
try {
|
|
20
|
-
var writeStream = fs.createWriteStream(
|
|
19
|
+
var writeStream = fs.createWriteStream(expoUIPath);
|
|
21
20
|
writeStream.write("module.exports=\""+(p.replace(sep,(sep+sep)))+(sep+sep)+"\";");
|
|
22
21
|
writeStream.end();
|
|
23
22
|
return path.resolve(p,suffix).replace(sep,(sep+sep));
|