@fto-consult/expo-ui 6.37.9 → 6.37.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.
@@ -15,6 +15,10 @@ module.exports = (opts)=>{
15
15
  const expoUI = require("./expo-ui-path")();
16
16
  const euCommon = path.resolve(expoUI,"node_modules","@fto-consult","common");
17
17
  const cpath = fs.existsSync(euCommon)? path.resolve(euCommon,"babel.config.alias") : "@fto-consult/common/babel.config.alias";
18
+ const mainPackageJSON = path.resolve(dir,"mainPackageJSON.json");
19
+ if(fs.existsSync(mainPackageJSON)){
20
+ opts.$packageJSON = mainPackageJSON;
21
+ }
18
22
  const r = require(`${cpath}`)(opts);
19
23
  const expo = path.resolve(expoUI,"src");
20
24
  r["$ecomponents"] = r["$expo-components"] = path.resolve(expo,"components");
package/metro.config.js CHANGED
@@ -26,8 +26,19 @@ module.exports = function(opts){
26
26
  config.projectRoot = projectRoot;
27
27
  const mainPackagePath = path.resolve(projectRoot,"package.json");
28
28
  const mainPackage = fs.existsSync() && require(`${mainPackagePath}`) || null;
29
- const packageJSON = require("./package.json");
30
- const expoVersion = null;//getDependencyVersion(packageJSON,"expo");
29
+ const packageJSonPath = path.resolve(projectRoot,"package.json");
30
+ if(fs.existsSync(packageJSonPath)){
31
+ try {
32
+ const packageObj = require(`${packageJSonPath}`);
33
+ if(packageObj && typeof packageObj =='object'){
34
+ ["scripts","private","main","repository","keywords","bugs","dependencies","devDependencies"].map(v=>{
35
+ delete packageObj[v];
36
+ })
37
+ fs.writeFileSync(path.resolve(__dirname,"mainPackageJSON.json"),JSON.stringify(packageObj,null,"\t"));
38
+ }
39
+ } catch{}
40
+ }
41
+ const expoVersion = null;
31
42
  if(isObj(mainPackage) && isObj(mainPackage.dependencies)){
32
43
  if(expoVersion && mainPackage.dependencies["expo"] !== expoVersion){
33
44
  console.log("fix expo dependencies to ",expoVersion);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fto-consult/expo-ui",
3
- "version": "6.37.9",
3
+ "version": "6.37.10",
4
4
  "description": "Bibliothèque de composants UI Expo,react-native",
5
5
  "main": "main",
6
6
  "scripts": {
@@ -70,7 +70,7 @@
70
70
  "@expo/html-elements": "^0.5.1",
71
71
  "@expo/vector-icons": "^13.0.0",
72
72
  "@faker-js/faker": "^8.0.2",
73
- "@fto-consult/common": "^3.37.0",
73
+ "@fto-consult/common": "^3.37.1",
74
74
  "@pchmn/expo-material3-theme": "^1.3.1",
75
75
  "@react-native-async-storage/async-storage": "1.18.2",
76
76
  "@react-native-community/datetimepicker": "7.2.0",