@fto-consult/expo-ui 6.44.0 → 6.44.3

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.
@@ -0,0 +1,16 @@
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
+ }
package/metro.config.js CHANGED
@@ -2,6 +2,7 @@ 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");
5
6
  const isDev = 'development' === process.env.NODE_ENV;
6
7
  opts = opts && typeof opts =='object'? opts : {};
7
8
  let {assetExts,sourceExts} = opts;
@@ -41,19 +42,5 @@ module.exports = function(opts){
41
42
  });*/
42
43
  ///on génère les librairies open sources utilisées par l'application
43
44
  require("./find-licenses");
44
-
45
- const packageJSonPath = path.resolve(projectRoot,"package.json");
46
- const mainAppPackage = path.resolve(projectRoot,"expo-ui.json");
47
- if(!fs.existsSync(mainAppPackage) && fs.existsSync(packageJSonPath)){
48
- try {
49
- const packageObj = require(`${packageJSonPath}`);
50
- if(packageObj && typeof packageObj =='object'){
51
- ["scripts","private","main","repository","keywords","bugs","dependencies","devDependencies"].map(v=>{
52
- delete packageObj[v];
53
- });
54
- fs.writeFileSync(mainAppPackage,JSON.stringify(packageObj,null,"\t"));
55
- }
56
- } catch{}
57
- }
58
45
  return config;
59
46
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fto-consult/expo-ui",
3
- "version": "6.44.0",
3
+ "version": "6.44.3",
4
4
  "description": "Bibliothèque de composants UI Expo,react-native",
5
5
  "main": "main",
6
6
  "scripts": {
@@ -120,8 +120,7 @@
120
120
  "sharp-cli": "^4.1.1",
121
121
  "tippy.js": "^6.3.7",
122
122
  "websql": "^2.0.3",
123
- "xlsx": "^0.18.5",
124
- "sentry-expo": "~7.0.0"
123
+ "xlsx": "^0.18.5"
125
124
  },
126
125
  "devDependencies": {
127
126
  "@expo/metro-config": "^0.10.7",