@fto-consult/expo-ui 7.5.8 → 7.5.9
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/babel.config.alias.js +9 -3
- package/package.json +1 -1
package/babel.config.alias.js
CHANGED
@@ -110,15 +110,21 @@ module.exports = (opts)=>{
|
|
110
110
|
}
|
111
111
|
}
|
112
112
|
const jsonPath = path.resolve(projectRoot,'package.json');
|
113
|
-
|
113
|
+
const localElectronDir = path.resolve(dir,"electron");
|
114
|
+
const expoUIElectronPath = path.resolve(projectRoot,"electron")
|
115
|
+
if(fs.existsSync(jsonPath) && fs.existsSync(localElectronDir)){
|
114
116
|
try {
|
115
|
-
require("./electron/utils/copy")(jsonPath,path.resolve(
|
117
|
+
require("./electron/utils/copy")(jsonPath,path.resolve(localElectronDir,"expo-ui.json"))
|
116
118
|
} catch{}
|
117
119
|
}
|
120
|
+
const pathsSringified = JSON.stringify(electronPaths, null, "\t");
|
118
121
|
///on sauvegarde les chemins des fichiers utiles, qui seront utilisées par la variable electron plus tard
|
119
122
|
try {
|
120
|
-
writeFile(paths(projectRoot),
|
123
|
+
writeFile(paths(projectRoot),pathsSringified);
|
121
124
|
} catch{}
|
125
|
+
if(fs.existsSync(expoUIElectronPath)){
|
126
|
+
writeFile(path.resolve(expoUIElectronPath,"paths.json"),pathsSringified);
|
127
|
+
}
|
122
128
|
r["$erealm"] = path.resolve(expo,'realm');
|
123
129
|
if(!r.$realm){
|
124
130
|
r.$realm = r.$erealm;
|