@fto-consult/expo-ui 7.5.9 → 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 +0 -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,14 +109,7 @@ module.exports = (opts)=>{
|
|
109
109
|
electronPaths.logo = logoPath;
|
110
110
|
}
|
111
111
|
}
|
112
|
-
const jsonPath = path.resolve(projectRoot,'package.json');
|
113
|
-
const localElectronDir = path.resolve(dir,"electron");
|
114
112
|
const expoUIElectronPath = path.resolve(projectRoot,"electron")
|
115
|
-
if(fs.existsSync(jsonPath) && fs.existsSync(localElectronDir)){
|
116
|
-
try {
|
117
|
-
require("./electron/utils/copy")(jsonPath,path.resolve(localElectronDir,"expo-ui.json"))
|
118
|
-
} catch{}
|
119
|
-
}
|
120
113
|
const pathsSringified = JSON.stringify(electronPaths, null, "\t");
|
121
114
|
///on sauvegarde les chemins des fichiers utiles, qui seront utilisées par la variable electron plus tard
|
122
115
|
try {
|
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
|
-
}
|