@fto-consult/expo-ui 7.5.4 → 7.5.6

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/bin/index.js CHANGED
@@ -174,12 +174,12 @@ program.command('electron')
174
174
  if(packageImport || opts.import){ //on importe le projet existant electron forge, @see : https://www.electronforge.io/import-existing-project
175
175
  console.log("importing electron forge existing project....");
176
176
  cmd = "npm install --save-dev @electron-forge/cli";
177
- return exec({cmd,projectRoot:electronProjectRoot}).then(()=>{
177
+ return exec({cmd,projectRoot:electronProjectRoot}).finally(()=>{
178
178
  cmd = `npm exec --package=@electron-forge/cli -c "electron-forge import"`;
179
179
  return exec({cmd,projectRoot:electronProjectRoot}).then(()=>{
180
180
  console.log("package electron forge importé avec succèss");
181
181
  });
182
- }).catch(throwError);
182
+ });
183
183
 
184
184
  } else {
185
185
  const electronPackage = require(`${path.resolve(electronProjectRoot,'package.json')}`);
package/bin/init.js CHANGED
@@ -23,11 +23,10 @@ module.exports = ({projectRoot,electronProjectRoot,paths,pathsJSON})=>{
23
23
  projectRootPackage.dependencies = dependencies.main;
24
24
  projectRootPackage.devDependencies = dependencies.dev;
25
25
  projectRootPackage.scripts = {
26
- "compile" : `npx ${mainPackageName} electron compile`,
26
+ "build" : `npx ${mainPackageName} electron build`,
27
27
  "start" : `npx ${mainPackageName} electron start`,
28
- "compile2start" : `npx ${mainPackageName} electron start compile`,
29
- "package" : `npx ${mainPackageName} electron package`,
30
- "compile2package" : `npx ${mainPackageName} electron package compile`
28
+ "run-dev" : `npx ${mainPackageName} electron start`,
29
+ "compile2start" : `npx ${mainPackageName} electron start --build`,
31
30
  }
32
31
  projectRootPackage.name = projectRootPackage.name.trim().toUpperCase();
33
32
  projectRootPackage.realAppName = typeof projectRootPackage.realAppName =="string" && projectRootPackage.realAppName || projectRootPackage.name;
@@ -4,10 +4,10 @@ module.exports = {
4
4
  "node-machine-id": "latest",
5
5
  "fs-extra" : "latest",
6
6
  "node-sqlite" : "latest",
7
- "commander" : "latest"
7
+ "commander" : "latest",
8
+ "@fto-consult/expo-ui" : "latest",
8
9
  },
9
10
  "dev" : {
10
- "electron": "latest",
11
- "electron-packager": "latest",
11
+ "electron": "latest"
12
12
  }
13
13
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fto-consult/expo-ui",
3
- "version": "7.5.4",
3
+ "version": "7.5.6",
4
4
  "description": "Bibliothèque de composants UI Expo,react-native",
5
5
  "scripts": {
6
6
  "clear-npx-cache": "npx clear-npx-cache",