@fto-consult/expo-ui 5.6.11 → 5.6.13

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.
@@ -13,22 +13,9 @@ module.exports = (opts)=>{
13
13
  delete opts.withPouchdb;
14
14
  const expoUI = require("./expo-ui-path")();
15
15
  const euCommon = path.resolve(expoUI,"node_modules","@fto-consult","common");
16
- let cpath = fs.existsSync(euCommon)? path.resolve(euCommon,"babel.config.alias") : "@fto-consult/common/babel.config.alias";
17
- try {
18
- const envPath = path.resolve(base,".env");
19
- const envObj = fs.existsSync(envPath)? require("./parse-env")(fs.readFileSync(envPath,'utf8')) : {};
20
- const commonPathm = typeof envObj.COMMON_ROOT_PATH =="string" && envObj.COMMON_ROOT_PATH && path.resolve(envObj.COMMON_ROOT_PATH)||'';
21
- const cm = commonPathm && fs.existsSync(commonPathm)? commonPathm : null;
22
- if(cm && fs.existsSync(path.resolve(cm,"src")) && fs.existsSync(path.resolve(cm,"babel.config.alias.js"))){
23
- cpath = path.resolve(cm,"babel.config.alias.js");
24
- }
25
- } catch{}
16
+ const cpath = fs.existsSync(euCommon)? path.resolve(euCommon,"babel.config.alias") : "@fto-consult/common/babel.config.alias";
26
17
  const r = require(`${cpath}`)(opts);
27
18
  const expo = path.resolve(expoUI,"src");
28
- const cPathRoot = path.resolve(cpath,"..");
29
- r.$common = r.$common || cPathRoot;
30
- r["$common-root-path"] = cPathRoot;
31
- r["$common-src"] = r["$common-src"] || path.resolve(cPathRoot,"src");
32
19
  r["$eauth"] = path.resolve(expo,"auth");
33
20
  r["$ecomponents"] = r["$expo-components"] = path.resolve(expo,"components");
34
21
  r["$etableLink"] = r["$eTableLink"] = path.resolve(r["$ecomponents"],"TableLink");
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fto-consult/expo-ui",
3
- "version": "5.6.11",
3
+ "version": "5.6.13",
4
4
  "description": "Bibliothèque de composants UI Expo,react-native",
5
5
  "main": "index.js",
6
6
  "scripts": {