@fto-consult/expo-ui 1.0.10 → 1.0.11
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 +5 -0
- package/package.json +2 -1
package/babel.config.js
CHANGED
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
module.exports = function(api,opts) {
|
|
2
2
|
opts = typeof opts =='object' && opts ? opts : {};
|
|
3
|
+
///les chemin vers la variable d'environnement, le chemin du fichier .env,@see : https://github.com/brysgo/babel-plugin-inline-dotenv
|
|
4
|
+
const environmentPath = opts.environmentPath || opts.envPath;
|
|
3
5
|
const path = require("path");
|
|
4
6
|
const dir = path.resolve(__dirname);
|
|
5
7
|
api.cache(true);
|
|
@@ -13,6 +15,9 @@ module.exports = function(api,opts) {
|
|
|
13
15
|
['babel-plugin-root-import', {"paths": alias}],
|
|
14
16
|
['react-native-reanimated/plugin'],
|
|
15
17
|
['transform-inline-environment-variables'],
|
|
18
|
+
['inline-dotenv',{
|
|
19
|
+
...(environmentPath?{path:environmentPath} : {})
|
|
20
|
+
}]
|
|
16
21
|
]
|
|
17
22
|
};
|
|
18
23
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fto-consult/expo-ui",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.11",
|
|
4
4
|
"description": "Bibliothèque de composants UI Expo,react-native",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"scripts": {
|
|
@@ -67,6 +67,7 @@
|
|
|
67
67
|
"@react-navigation/native": "^6.0.13",
|
|
68
68
|
"@react-navigation/native-stack": "^6.9.1",
|
|
69
69
|
"@shopify/flash-list": "1.1.0",
|
|
70
|
+
"babel-plugin-inline-dotenv": "^1.7.0",
|
|
70
71
|
"babel-plugin-root-import": "^6.6.0",
|
|
71
72
|
"babel-plugin-transform-inline-environment-variables": "^0.4.4",
|
|
72
73
|
"circular-dependency-plugin": "^5.2.2",
|