@fto-consult/expo-ui 7.5.26 → 7.5.28
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/electron/index.js +3 -0
- package/package.json +1 -1
package/electron/index.js
CHANGED
@@ -15,6 +15,7 @@ const path = require("path");
|
|
15
15
|
const fs = require("fs");
|
16
16
|
const isValidUrl = require("./utils/isValidUrl");
|
17
17
|
|
18
|
+
throw "Before begin "+mainProjectRoot;
|
18
19
|
const distPath = path.join("dist",'index.html');
|
19
20
|
const processCWD = process.cwd();
|
20
21
|
const electronProjectRoot = mainProjectRoot && typeof mainProjectRoot =='string' && fs.existsSync(mainProjectRoot) && fs.existsSync(path.resolve(mainProjectRoot,distPath)) && mainProjectRoot || null;
|
@@ -22,6 +23,8 @@ const projectRoot = electronProjectRoot || fs.existsSync(path.resolve(processCW
|
|
22
23
|
const packageJSONPath = fs.existsSync(processCWD,"package.json")? path.resolve(processCWD,"package.json") : path.resolve(projectRoot,"package.json");
|
23
24
|
const packageJSON = fs.existsSync(packageJSONPath) ? require(`${packageJSONPath}`) : {};
|
24
25
|
|
26
|
+
throw `electron project root is ${electronProjectRoot} and project root is ${projectRoot}`;
|
27
|
+
|
25
28
|
const ObjectSize = (object)=>{
|
26
29
|
if(!object || typeof object !=='object' || Array.isArray(object)) return false;
|
27
30
|
for(let i in object){
|