@fto-consult/expo-ui 2.7.7 → 2.7.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.
Files changed (2) hide show
  1. package/expo-ui-path.js +5 -4
  2. package/package.json +1 -1
package/expo-ui-path.js CHANGED
@@ -9,19 +9,20 @@ const yargs = require('yargs/yargs');
9
9
  ///retourne le chemin vers le package @expo-ui
10
10
  module.exports = function (...args){
11
11
  const argv = yargs(hideBin(process.argv)).argv
12
- console.log(argv," is arggggggggggggggg");
13
12
  let isBuild = false;
14
13
  const expoUIPath = "@fto-consult/expo-ui";
15
14
  if(typeof argv == 'object' && argv && !Array.isArray(argv)){
16
15
  for(let i in argv){
17
- i = (i+"").toLowerCase();
18
- if(i.includes('build') || i.includes('production') || i.includes('export') || i.includes('android')){
16
+ const v = args[i];
17
+ if(typeof v !='string' || !v) continue;
18
+ v = v.toLowerCase();
19
+ i = (i+'').toLocaleLowerCase();
20
+ if(i.includes("export") || v.includes('build') || v.includes('production') || v.includes('export') || v.includes('android')){
19
21
  isBuild = true;
20
22
  break;
21
23
  }
22
24
  }
23
25
  }
24
- console.log(isBuild,args," is build anda arr")
25
26
  if(isBuild){
26
27
  return expoUIPath;
27
28
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fto-consult/expo-ui",
3
- "version": "2.7.7",
3
+ "version": "2.7.9",
4
4
  "description": "Bibliothèque de composants UI Expo,react-native",
5
5
  "main": "index.js",
6
6
  "resolutions": {