@fto-consult/expo-ui 1.0.7 → 1.0.9
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/compiler.config.js +3 -1
- package/package.json +3 -3
- package/webpack.config.js +3 -2
package/compiler.config.js
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
const path = require("path");
|
|
2
|
-
module.exports = function({config,isNext,nodeModulesPath,dir}){
|
|
2
|
+
module.exports = function({config,isNext,nodeModulesPath,base,dir}){
|
|
3
3
|
const root = path.resolve(dir,"..");
|
|
4
|
+
base = base || dir;
|
|
4
5
|
nodeModulesPath = Array.isArray(nodeModulesPath)? nodeModulesPath : [];
|
|
5
6
|
config.resolve.modules = Array.isArray(config.resolve.modules)? config.resolve.modules:[]
|
|
6
7
|
config.resolve.modules = [path.resolve(dir, 'node_modules'),path.resolve(root, 'node_modules'), 'node_modules',...nodeModulesPath,...config.resolve.modules];
|
|
@@ -9,6 +10,7 @@ module.exports = function({config,isNext,nodeModulesPath,dir}){
|
|
|
9
10
|
test: /\.(js|jsx|ts|tsx)$/,
|
|
10
11
|
include: [
|
|
11
12
|
dir,
|
|
13
|
+
base,
|
|
12
14
|
path.resolve(dir,"node_modules","@fto-consult"),
|
|
13
15
|
/(common)/
|
|
14
16
|
],
|
package/package.json
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fto-consult/expo-ui",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.9",
|
|
4
4
|
"description": "Bibliothèque de composants UI Expo,react-native",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"scripts": {
|
|
7
7
|
"publish": "npm publish --access=public",
|
|
8
|
-
"unpublish": "npm -f unpublish @fto-consult/
|
|
8
|
+
"unpublish": "npm -f unpublish @fto-consult/expo-ui"
|
|
9
9
|
},
|
|
10
10
|
"repository": {
|
|
11
11
|
"type": "git",
|
|
@@ -26,7 +26,7 @@
|
|
|
26
26
|
"@emotion/native": "^11.10.0",
|
|
27
27
|
"@expo/metro-config": "^0.4.0",
|
|
28
28
|
"@expo/webpack-config": "^0.17.2",
|
|
29
|
-
"@fto-consult/common": "^1.0.
|
|
29
|
+
"@fto-consult/common": "^1.0.13",
|
|
30
30
|
"@gorhom/portal": "^1.0.14",
|
|
31
31
|
"@react-native-async-storage/async-storage": "~1.17.3",
|
|
32
32
|
"@react-native-community/netinfo": "9.3.0",
|
package/webpack.config.js
CHANGED
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
/**@see : https://www.npmjs.com/package/@expo/webpack-config/v/0.11.4 */
|
|
2
2
|
const createExpoWebpackConfigAsync = require('@expo/webpack-config')
|
|
3
3
|
// Expo CLI will await this method so you can optionally return a promise.
|
|
4
|
-
module.exports = async function(env, argv) {
|
|
4
|
+
module.exports = async function(env, argv,opts) {
|
|
5
5
|
const path = require("path");
|
|
6
6
|
const dir = path.resolve(__dirname);
|
|
7
|
+
opts = typeof opts =="object" && opts ? opts : {};
|
|
7
8
|
const config = await createExpoWebpackConfigAsync(
|
|
8
9
|
{
|
|
9
10
|
...env,
|
|
@@ -26,6 +27,6 @@ module.exports = async function(env, argv) {
|
|
|
26
27
|
if (config.mode === 'production') {
|
|
27
28
|
config.optimization.minimize = true;
|
|
28
29
|
}
|
|
29
|
-
require("./compiler.config.js")({config,dir})
|
|
30
|
+
require("./compiler.config.js")({config,...opts,dir})
|
|
30
31
|
return config;
|
|
31
32
|
};
|