@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 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}`:''} --path ${pathsJSON} --root ${projectRoot}`;
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.endsWiths("paths.json")? pathsJSON : null;
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;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fto-consult/expo-ui",
3
- "version": "7.4.19",
3
+ "version": "7.4.21",
4
4
  "description": "Bibliothèque de composants UI Expo,react-native",
5
5
  "main": "main",
6
6
  "scripts": {