@fto-consult/expo-ui 9.1.1 → 9.2.1
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.js +0 -2
- package/bin/find-licenses.js +4 -4
- package/metro.config.js +2 -0
- package/package.json +1 -1
package/babel.config.js
CHANGED
@@ -11,8 +11,6 @@ module.exports = function(api,opts) {
|
|
11
11
|
if(typeof options.aliasMutator =="function"){
|
12
12
|
options.aliasMutator({...options,alias});
|
13
13
|
}
|
14
|
-
require(`${path.resolve(__dirname,"bin","generate-tables")}`)();//génère les tables des bases de données
|
15
|
-
require(`${path.resolve(__dirname,"bin","find-licenses")}`); //met à jour les licenses de l'application
|
16
14
|
const plugins = (Array.isArray(opts.plugins) ? options.plugins : []);
|
17
15
|
let reanimated = "react-native-reanimated/plugin";
|
18
16
|
const filteredPlugins = plugins.filter((p)=>{
|
package/bin/find-licenses.js
CHANGED
@@ -105,15 +105,15 @@ const findLicencesMain = (options)=>{
|
|
105
105
|
}
|
106
106
|
}
|
107
107
|
|
108
|
-
module.exports = ()=>{
|
108
|
+
module.exports = (projectRoot)=>{
|
109
109
|
///on génère les librairies open sources utilisées par l'application
|
110
|
-
|
110
|
+
projectRoot = typeof projectRoot === "string" && fs.existsSync(path.resolve(projectRoot)) ? path.resolve(projectRoot) : process.cwd();
|
111
111
|
const expoUI = require("../expo-ui-path")();
|
112
|
-
const localNodeModule = path.resolve(
|
112
|
+
const localNodeModule = path.resolve(projectRoot,"node_modules");
|
113
113
|
const HelpScreen = path.resolve(expoUI,"src","screens","Help");
|
114
114
|
const outputPath = path.resolve(HelpScreen,"openLibraries.js");
|
115
115
|
return findLicencesMain({
|
116
|
-
paths : [
|
116
|
+
paths : [projectRoot,path.resolve(__dirname)],
|
117
117
|
nodeModulesPath : fs.existsSync(localNodeModule) ? localNodeModule : path.resolve(expoUI,"node_modules"),
|
118
118
|
outputPath
|
119
119
|
});
|
package/metro.config.js
CHANGED
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@fto-consult/expo-ui",
|
3
|
-
"version": "9.
|
3
|
+
"version": "9.2.1",
|
4
4
|
"description": "Bibliothèque de composants UI Expo,react-native",
|
5
5
|
"react-native-paper-doc": "https://github.com/callstack/react-native-paper/tree/main/docs/docs/guides",
|
6
6
|
"scripts": {
|