@fto-consult/expo-ui 7.5.14 → 7.5.15
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 +6 -6
- package/electron/index.js +1 -1
- package/package.json +1 -1
package/bin/index.js
CHANGED
@@ -151,12 +151,12 @@ program.command('electron')
|
|
151
151
|
try {
|
152
152
|
writeFile(packagePath,JSON.stringify({...packageObj,homepage:"./"},null,"\t"));
|
153
153
|
} catch{}
|
154
|
-
|
155
|
-
|
156
|
-
|
157
|
-
|
158
|
-
|
159
|
-
|
154
|
+
cmd = "npx expo export:web";
|
155
|
+
return exec({cmd,projectRoot}).then(next).catch(reject).finally(()=>{
|
156
|
+
try {
|
157
|
+
writeFile(packagePath,JSON.stringify({...packageObj,homepage},null,"\t"));
|
158
|
+
} catch{}
|
159
|
+
});
|
160
160
|
}
|
161
161
|
next();
|
162
162
|
});
|
package/electron/index.js
CHANGED
@@ -189,7 +189,7 @@ function createWindow () {
|
|
189
189
|
win.loadURL(pUrl);
|
190
190
|
} else {
|
191
191
|
if(!fs.existsSync(indexFilePath)){
|
192
|
-
throw
|
192
|
+
throw `Unable to start the application: index file located at [${indexFilePath}] does not exists : projectRoot : [${projectRoot}], electronProjectRoot = [${electronProjectRoot}]`
|
193
193
|
} else win.loadFile(indexFilePath)
|
194
194
|
}
|
195
195
|
|