@fto-consult/expo-ui 7.5.8 → 7.5.10
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 +6 -7
- package/electron/utils/paths.js +0 -1
- package/metro.config.js +0 -1
- package/package.json +1 -1
- package/create-expo-ui-package.js +0 -16
package/babel.config.alias.js
CHANGED
@@ -109,16 +109,15 @@ module.exports = (opts)=>{
|
|
109
109
|
electronPaths.logo = logoPath;
|
110
110
|
}
|
111
111
|
}
|
112
|
-
const
|
113
|
-
|
114
|
-
try {
|
115
|
-
require("./electron/utils/copy")(jsonPath,path.resolve(dir,"electron","expo-ui.json"))
|
116
|
-
} catch{}
|
117
|
-
}
|
112
|
+
const expoUIElectronPath = path.resolve(projectRoot,"electron")
|
113
|
+
const pathsSringified = JSON.stringify(electronPaths, null, "\t");
|
118
114
|
///on sauvegarde les chemins des fichiers utiles, qui seront utilisées par la variable electron plus tard
|
119
115
|
try {
|
120
|
-
writeFile(paths(projectRoot),
|
116
|
+
writeFile(paths(projectRoot),pathsSringified);
|
121
117
|
} catch{}
|
118
|
+
if(fs.existsSync(expoUIElectronPath)){
|
119
|
+
writeFile(path.resolve(expoUIElectronPath,"paths.json"),pathsSringified);
|
120
|
+
}
|
122
121
|
r["$erealm"] = path.resolve(expo,'realm');
|
123
122
|
if(!r.$realm){
|
124
123
|
r.$realm = r.$erealm;
|
package/electron/utils/paths.js
CHANGED
@@ -7,6 +7,5 @@ const path = require("path");
|
|
7
7
|
|
8
8
|
module.exports = (projectRoot)=>{
|
9
9
|
projectRoot = projectRoot && fs.existsSync(projectRoot) && projectRoot || process.cwd();
|
10
|
-
const mainPackage = require("../../package.json");
|
11
10
|
return path.resolve(projectRoot,"node_modules",`expo-ui.paths.alias.json`);
|
12
11
|
}
|
package/metro.config.js
CHANGED
@@ -2,7 +2,6 @@ const path = require("path");
|
|
2
2
|
const fs = require("fs");
|
3
3
|
const { getDefaultConfig } = require('@expo/metro-config');
|
4
4
|
module.exports = function(opts){
|
5
|
-
//require("./create-expo-ui-package");
|
6
5
|
const isDev = 'development' === process.env.NODE_ENV;
|
7
6
|
opts = opts && typeof opts =='object'? opts : {};
|
8
7
|
let {assetExts,sourceExts} = opts;
|
package/package.json
CHANGED
@@ -1,16 +0,0 @@
|
|
1
|
-
const path = require("path"), fs = require("fs");
|
2
|
-
const projectRoot = process.cwd();
|
3
|
-
const packageJSonPath = path.resolve(projectRoot,"package.json");
|
4
|
-
const mainAppPackage = path.resolve(projectRoot,"expo-ui.json");
|
5
|
-
if(!fs.existsSync(mainAppPackage) && fs.existsSync(packageJSonPath)){
|
6
|
-
try {
|
7
|
-
const packageObj = require(`${packageJSonPath}`);
|
8
|
-
if(packageObj && typeof packageObj =='object'){
|
9
|
-
["scripts","private","main","repository","keywords","bugs","dependencies","devDependencies"].map(v=>{
|
10
|
-
delete packageObj[v];
|
11
|
-
});
|
12
|
-
fs.writeFileSync(mainAppPackage,JSON.stringify(packageObj,null,"\t"));
|
13
|
-
console.log("expo-ui.json file created")
|
14
|
-
}
|
15
|
-
} catch{}
|
16
|
-
}
|