@fto-consult/expo-ui 6.19.2 → 6.19.3
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/index.js +3 -3
- package/package.json +1 -1
package/bin/index.js
CHANGED
|
@@ -20,9 +20,6 @@ const path= require("path");
|
|
|
20
20
|
const fs = require("fs");
|
|
21
21
|
const dir = path.resolve(__dirname);
|
|
22
22
|
const projectRoot = path.resolve(process.cwd());
|
|
23
|
-
if(projectRoot == dir){
|
|
24
|
-
throwError(`Invalid project root ${projectRoot}; project root must be different to ${dir}`);
|
|
25
|
-
}
|
|
26
23
|
const parsedArgs = require("../electron/utils/parseArgs")(null,supportedScript);
|
|
27
24
|
parsedArgs.script = typeof parsedArgs.script =='string' && parsedArgs.script && parsedArgs.script.toLowerCase().trim() || "";
|
|
28
25
|
if(!parsedArgs.script || !(parsedArgs.script in supportedScript)){
|
|
@@ -38,6 +35,9 @@ const script = parsedArgs.script;
|
|
|
38
35
|
* url = [url-to-start-electron-to]
|
|
39
36
|
* */
|
|
40
37
|
if(parsedArgs.electron){
|
|
38
|
+
if(projectRoot == dir){
|
|
39
|
+
throwError(`Invalid project root ${projectRoot}; project root must be different to ${dir}`);
|
|
40
|
+
}
|
|
41
41
|
const pathsJSON = path.resolve(electronDir,"paths.json");
|
|
42
42
|
if(!fs.existsSync(pathsJSON)){
|
|
43
43
|
throwError("Le fichier des chemins d'accès à l'application est innexistant, rassurez vous de tester l'application en environnement web, via la cmde <npx expo start>, avant l'exécution du script electron.");
|