@fto-consult/expo-ui 1.1.6 → 1.1.7

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/find-licenses.js CHANGED
@@ -53,7 +53,7 @@ const findLicences = (_path)=> new Promise((resolve,reject)=>{
53
53
  }
54
54
  resolve(openLibraries);
55
55
  })
56
- const parentPath = require("./parent-package")();
56
+ const parentPath = require("./parent-package");
57
57
  Promise.all([
58
58
  parentPath ? path.resolve(path.dirname(parentPath)): findLicences(dir),
59
59
  ]).then(()=>{
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fto-consult/expo-ui",
3
- "version": "1.1.6",
3
+ "version": "1.1.7",
4
4
  "description": "Bibliothèque de composants UI Expo,react-native",
5
5
  "main": "index.js",
6
6
  "scripts": {
package/parent-package.js CHANGED
@@ -3,10 +3,10 @@
3
3
  // license that can be found in the LICENSE file.
4
4
 
5
5
  /**** cette fonction a pour rôle de retourner le package parent à celui ci */
6
- module.exports = ()=>{
6
+ module.exports = (()=>{
7
7
  const pathToParent = require("parent-package-json")(); // Will return false if no parent exists
8
8
  if (pathToParent !== false) {
9
9
  return pathToParent.path;
10
10
  }
11
11
  return "";
12
- }
12
+ })();
@@ -2,7 +2,7 @@ const editJsonFile = require("./edit-json-file.js");
2
2
  const fs = require("fs");
3
3
  /***** le fichier de configuration doit être stocké dans le repertoire /src/config.js où src est le repertoire source du projet parent qui a installé l'application */
4
4
  const run = () => {
5
- const parentPackage = require("./parent-package")();
5
+ const parentPackage = require("./parent-package");
6
6
  if(!parentPackage) return;
7
7
  console.log("before updating parent package version ",parentPackage)
8
8
  const srcParent = path.dirname(parentPackage,"src","config.js");