@fto-consult/expo-ui 6.19.9 → 6.19.11

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/bin/create-app.js CHANGED
@@ -10,7 +10,8 @@ module.exports = function(parsedArgs,{projectRoot}){
10
10
  if(!name){
11
11
  return thowError(name," nom de l'application invalide, veuillez spécifier un nom d'application valide",argv);
12
12
  }
13
- let hasPackage = mainPackage && String(mainPackage.name)?.toLowerCase() !== name?.toLowerCase() || !!mainPackage && typeof mainPackage =='object';
13
+ let hasPackage = mainPackage && String(mainPackage.name)?.toLowerCase() === name?.toLowerCase() || mainPackage && typeof mainPackage =='object';
14
+ thowError(hasPackage,name," has package for name ",argvName," is arvv ",process.argv);
14
15
  if(!hasPackage){
15
16
  mainPackage = {
16
17
  name,
@@ -24,7 +25,6 @@ module.exports = function(parsedArgs,{projectRoot}){
24
25
  const newDir = createDirSync(path.resolve(root,name.trim()));
25
26
  projectRoot = newDir || projectRoot;
26
27
  mainPackagePath = path.resolve(projectRoot,"package.json");
27
- console.log(projectRoot," is new project root ",mainPackage);
28
28
  }
29
29
  const cb = ()=>{
30
30
  const devDpendencies = packageObj.devDependencies;
@@ -8,7 +8,7 @@ const _exec = (cmd,cmdOpts,logMessages,sync)=>{
8
8
  if(sync) {
9
9
  cmdOpts.stdio = cmdOpts.stdio || "inherit";
10
10
  }
11
- const timer = cmdOpts.loader !==false ? loaderTimer(cmd) : null;
11
+ const timer = cmdOpts.loader !==false && !sync ? loaderTimer(cmd) : null;
12
12
  if(sync){
13
13
  try {
14
14
  return execSync(cmd,cmdOpts);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fto-consult/expo-ui",
3
- "version": "6.19.9",
3
+ "version": "6.19.11",
4
4
  "description": "Bibliothèque de composants UI Expo,react-native",
5
5
  "main": "index.js",
6
6
  "scripts": {