@fto-consult/expo-ui 7.5.22 → 7.5.23

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.
Files changed (2) hide show
  1. package/bin/index.js +11 -11
  2. package/package.json +1 -1
package/bin/index.js CHANGED
@@ -90,6 +90,17 @@ program.command('electron')
90
90
  const isElectionInitialized = require("../electron/is-initialized")(electronProjectRoot);
91
91
  process.env.isElectron = true;
92
92
  process.env.isElectronScript = true;
93
+ const buildOutDir = path.resolve(electronProjectRoot,"dist");
94
+ const indexFile = path.resolve(buildOutDir,"index.html");
95
+ const webBuildDir = path.resolve(projectRoot,"web-build");
96
+ const packagePath = path.resolve(projectRoot,"package.json");
97
+ if(!fs.existsSync(packagePath)){
98
+ throwError("package.json file does not exist in "+projectRoot+". please make jure that your have running package script in expo root application");
99
+ }
100
+ const packageObj = require(`${packagePath}`);
101
+ const homepage = packageObj.homepage;
102
+ let cmd = undefined;
103
+ require("../electron/create-index-file")({electronProjectRoot,appName:packageObj.name});
93
104
  if(!isElectionInitialized || script =='init'){
94
105
  if(script !=='init'){
95
106
  console.log("initializing electron application before ....");
@@ -112,17 +123,6 @@ program.command('electron')
112
123
  console.warn("Logo de l'application innexistant!! Vous devez spécifier le logo de votre application, fichier ["+(logoPath)+"]")
113
124
  }
114
125
  }
115
- const buildOutDir = path.resolve(electronProjectRoot,"dist");
116
- const indexFile = path.resolve(buildOutDir,"index.html");
117
- const webBuildDir = path.resolve(projectRoot,"web-build");
118
- const packagePath = path.resolve(projectRoot,"package.json");
119
- if(!fs.existsSync(packagePath)){
120
- throwError("package.json file does not exist in "+projectRoot+". please make jure that your have running package script in expo root application");
121
- }
122
- const packageObj = require(`${packagePath}`);
123
- const homepage = packageObj.homepage;
124
- let cmd = undefined;
125
- require("../electron/create-index-file")({electronProjectRoot,appName:packageObj.name});
126
126
  const start = x=>{
127
127
  return new Promise((resolve,reject)=>{
128
128
  cmd = `electron "${electronProjectRoot}" --root ${electronProjectRoot} ${isValidUrl(url)? ` --url ${url}`:''}`;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fto-consult/expo-ui",
3
- "version": "7.5.22",
3
+ "version": "7.5.23",
4
4
  "description": "Bibliothèque de composants UI Expo,react-native",
5
5
  "scripts": {
6
6
  "clear-npx-cache": "npx clear-npx-cache",