@fto-consult/expo-ui 6.20.5 → 6.20.6
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 +2 -2
- package/package.json +1 -1
package/bin/create-app.js
CHANGED
|
@@ -6,9 +6,9 @@ module.exports = function(parsedArgs,{projectRoot}){
|
|
|
6
6
|
const packageObj = require("../package.json");
|
|
7
7
|
let root = process.cwd(), mainPackagePath = path.resolve(root,"package.json");
|
|
8
8
|
let mainPackage = fs.existsSync(mainPackagePath) && require(`${mainPackagePath}`) || null;
|
|
9
|
-
const name = argvName && argvName.trim() || String(mainPackage?.name).trim();
|
|
9
|
+
const name = argvName && argvName.trim() || mainPackage?.name && String(mainPackage?.name).trim();
|
|
10
10
|
if(!name){
|
|
11
|
-
return thowError(name," nom de l'application invalide, veuillez spécifier un nom d'application valide",argv);
|
|
11
|
+
return thowError(name," nom de l'application invalide, veuillez spécifier un nom d'application valide",argvName,process.argv);
|
|
12
12
|
}
|
|
13
13
|
const devDependencies = packageObj.devDependencies;
|
|
14
14
|
let hasPackage = String(mainPackage?.name)?.toLowerCase() !== name?.toLowerCase() ? false : mainPackage && typeof mainPackage =='object';
|