@fto-consult/expo-ui 7.4.19 → 7.4.21
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 +1 -1
- package/electron/index.js +1 -1
- package/package.json +1 -1
package/bin/index.js
CHANGED
@@ -111,7 +111,7 @@ program.command('electron')
|
|
111
111
|
let cmd = undefined;
|
112
112
|
const start = x=>{
|
113
113
|
return new Promise((resolve,reject)=>{
|
114
|
-
cmd = `electron "${electronProjectRoot}"${url? ` --url ${url}`:''} --
|
114
|
+
cmd = `electron "${electronProjectRoot}"${url? ` --url ${url}`:''} --paths ${pathsJSON} --root ${projectRoot}`;
|
115
115
|
exec({
|
116
116
|
cmd,
|
117
117
|
projectRoot : electronProjectRoot,
|
package/electron/index.js
CHANGED
@@ -14,7 +14,7 @@ program
|
|
14
14
|
const programOptions = program.opts();
|
15
15
|
const {url:pUrl,paths:pathsJSON,root:mainProjectRoot} = programOptions
|
16
16
|
|
17
|
-
const pathsJ = pathsJSON && fs.existsSync(pathsJSON) && pathsJSON.
|
17
|
+
const pathsJ = pathsJSON && fs.existsSync(pathsJSON) && pathsJSON.endsWith("paths.json")? pathsJSON : null;
|
18
18
|
let paths = pathsJ ? require(`${pathsJ}`) : fs.existsSync(path.resolve("./paths.json")) ? require("./paths.json") : null;
|
19
19
|
const projectRoot = mainProjectRoot && fs.existsSync(mainProjectRoot) ? mainProjectRoot : paths.projectRoot || '';
|
20
20
|
const electronProjectRoot = projectRoot && fs.existsSync(path.resolve(projectRoot,"electron")) && path.resolve(projectRoot,"electron") || null;
|