@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.
Files changed (2) hide show
  1. package/expo-ui-path.js +5 -6
  2. 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 rPath = path.resolve(p,"..");
16
- const src = path.resolve(rPath,"src");
17
- if(fs.existsSync(src) && fs.existsSync((path.resolve(rPath,"babel.config.js")))){
18
- const expoUIPath = path.resolve(p,"expo-ui-path.js");
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(rPath);
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));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fto-consult/expo-ui",
3
- "version": "1.1.25",
3
+ "version": "1.1.28",
4
4
  "description": "Bibliothèque de composants UI Expo,react-native",
5
5
  "main": "index.js",
6
6
  "scripts": {