@fto-consult/expo-ui 7.20.1 → 7.20.3

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fto-consult/expo-ui",
3
- "version": "7.20.1",
3
+ "version": "7.20.3",
4
4
  "description": "Bibliothèque de composants UI Expo,react-native",
5
5
  "scripts": {
6
6
  "clear-npx-cache": "npx clear-npx-cache",
@@ -71,7 +71,7 @@
71
71
  "@expo/html-elements": "^0.5.1",
72
72
  "@expo/vector-icons": "^13.0.0",
73
73
  "@faker-js/faker": "^8.0.2",
74
- "@fto-consult/common": "^4.4.1",
74
+ "@fto-consult/common": "^4.5.4",
75
75
  "@fto-consult/electron-gen": "^2.3.1",
76
76
  "@fto-consult/expo-ui": "^7.17.9",
77
77
  "@pchmn/expo-material3-theme": "^1.3.1",
package/webpack.config.js CHANGED
@@ -17,12 +17,13 @@ module.exports = async function(env, argv,opts) {
17
17
  opts = typeof opts =="object" && opts ? opts : {};
18
18
  const babel = isObj(opts.babel)? opts.babel : {};
19
19
  const isElectron = process.env.isElectron || process.env.platform =="electron" || typeof env.platform =="string" && env.platform.toLowerCase().trim() ==='electron';
20
- if(isElectron){
21
- env.platform = "electron";
20
+ const isNeutralino = process.env.isNeutralino || process.env.platform =="neutralino";
21
+ if(isElectron || isNeutralino){
22
+ env.platform = isElectron ? "electron":"neutralino";
22
23
  env.mode = env.mode =="production" && "production" || "development";
23
24
  env.pwa = false;
24
25
  }
25
- const platform = isElectron && "electron" || process.env.platform && supportedPlatforms.includes(process.platform) && process.platform || typeof opts.platform =="string" && supportedPlatforms.includes(opts.platform)? opts.platform : "web";
26
+ const platform = isElectron && "electron" || isNeutralino && "neutralino" || process.env.platform && supportedPlatforms.includes(process.platform) && process.platform || typeof opts.platform =="string" && supportedPlatforms.includes(opts.platform)? opts.platform : "web";
26
27
  const transpileModules = Array.isArray(opts.transpileModules)? opts.transpileModules : [];
27
28
  const projectRoot = opts.projectRoot && typeof opts.projectRoot =="string" && fs.existsSync(opts.projectRoot) && opts.projectRoot || process.cwd();
28
29
  const config = await createExpoWebpackConfigAsync(
@@ -64,9 +65,9 @@ module.exports = async function(env, argv,opts) {
64
65
  config.devtool = (config.mode === 'development') ? 'inline-source-map' : false;
65
66
  require("./compiler.config.js")({config,...opts});
66
67
  const extensions = config.resolve.extensions;
67
- if(isElectron){
68
+ if(isElectron || isNeutralino){
68
69
  mainExtensions.map((ex)=>{
69
- const nExt = `.electron${ex}`;
70
+ const nExt = `.${isElectron?"electron":"neu"}${ex}`;
70
71
  if(!extensions.includes(nExt)){
71
72
  extensions.unshift(nExt);
72
73
  }