@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.
@@ -110,15 +110,21 @@ module.exports = (opts)=>{
110
110
  }
111
111
  }
112
112
  const jsonPath = path.resolve(projectRoot,'package.json');
113
- if(fs.existsSync(jsonPath)){
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(dir,"electron","expo-ui.json"))
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),JSON.stringify(electronPaths, null, "\t"));
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;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fto-consult/expo-ui",
3
- "version": "7.5.8",
3
+ "version": "7.5.9",
4
4
  "description": "Bibliothèque de composants UI Expo,react-native",
5
5
  "scripts": {
6
6
  "clear-npx-cache": "npx clear-npx-cache",