@fto-consult/expo-ui 6.19.8 → 6.19.10
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 +1 -3
- package/electron/utils/exec.js +1 -1
- package/package.json +1 -1
package/bin/create-app.js
CHANGED
|
@@ -6,12 +6,11 @@ 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
|
-
thowError(argvName," is argv naeme ",process.argv);
|
|
10
9
|
const name = argvName && argvName.trim() || String(parsedArgs.name||parsedArgs.appName || mainPackage?.name).trim();
|
|
11
10
|
if(!name){
|
|
12
11
|
return thowError(name," nom de l'application invalide, veuillez spécifier un nom d'application valide",argv);
|
|
13
12
|
}
|
|
14
|
-
let hasPackage = mainPackage?.
|
|
13
|
+
let hasPackage = mainPackage && String(mainPackage.name)?.toLowerCase() === name?.toLowerCase() || mainPackage && typeof mainPackage =='object';
|
|
15
14
|
if(!hasPackage){
|
|
16
15
|
mainPackage = {
|
|
17
16
|
name,
|
|
@@ -25,7 +24,6 @@ module.exports = function(parsedArgs,{projectRoot}){
|
|
|
25
24
|
const newDir = createDirSync(path.resolve(root,name.trim()));
|
|
26
25
|
projectRoot = newDir || projectRoot;
|
|
27
26
|
mainPackagePath = path.resolve(projectRoot,"package.json");
|
|
28
|
-
console.log(projectRoot," is new project root ",mainPackage);
|
|
29
27
|
}
|
|
30
28
|
const cb = ()=>{
|
|
31
29
|
const devDpendencies = packageObj.devDependencies;
|
package/electron/utils/exec.js
CHANGED
|
@@ -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);
|