@fto-consult/expo-ui 8.4.0 → 8.4.2

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/create-app.js CHANGED
@@ -25,7 +25,6 @@ module.exports = function(appName,{projectRoot:root}){
25
25
  const euModule = "@fto-consult/expo-ui";
26
26
  let hasUpdateDeps = false;
27
27
  const rnModule = "react-native";
28
- const expoModule = "expo";
29
28
  console.log("creating application name "+name);
30
29
  if(!hasPackage){
31
30
  mainPackage = {
@@ -45,7 +44,7 @@ module.exports = function(appName,{projectRoot:root}){
45
44
  "dependencies" : {
46
45
  [euModule] : packageObj.version,
47
46
  [rnModule] : packageObj.dependencies[rnModule],
48
- [expoModule] : packageObj.devDependencies[euModule],
47
+ "expo" : packageObj.devDependencies.expo,
49
48
  },
50
49
  devDependencies : devDeps
51
50
  }
@@ -196,9 +195,10 @@ const createAPPJSONFile = (projectRoot,{name,version})=>{
196
195
  appJSONManager.save();
197
196
  }
198
197
  const eas = path.resolve(projectRoot,"eas.json");
199
- if(!fs.existsSync(eas)){
198
+ const cEas = path.resolve(__dirname,"..","eas.json");
199
+ if(!fs.existsSync(eas) && fs.existsSync(cEas)){
200
200
  try {
201
- copy(path.resolve(__dirname,"eas.json"),eas,{overwrite:false})
201
+ copy(cEas,eas,{overwrite:false})
202
202
  } catch{}
203
203
  }
204
204
  return fs.existsSync(appJSONPath);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fto-consult/expo-ui",
3
- "version": "8.4.0",
3
+ "version": "8.4.2",
4
4
  "description": "Bibliothèque de composants UI Expo,react-native",
5
5
  "scripts": {
6
6
  "clear-npx-cache": "npx clear-npx-cache",