create-uix-app 1.4.0 → 1.4.1-rc2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/src/index.js +15 -0
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "create-uix-app",
3
3
  "description": "Creates a starter project for UIx web app",
4
- "version": "1.4.0",
4
+ "version": "1.4.1-rc2",
5
5
  "author": {
6
6
  "name": "Roman Liutikov"
7
7
  },
package/src/index.js CHANGED
@@ -80,6 +80,21 @@ if (!projectName && !reFrame && !reactNative && !expo) {
80
80
  )
81
81
  .then(() => {
82
82
  if (expo) {
83
+ const appjson = JSON.parse(
84
+ fs.readFileSync(
85
+ path.join(process.cwd(), projectName, "app.json"),
86
+ "utf8"
87
+ )
88
+ );
89
+ appjson.expo.name = projectName;
90
+ appjson.expo.slug = projectName;
91
+ fs.writeFileSync(
92
+ path.join(process.cwd(), projectName, "app.json"),
93
+ prettier.format(JSON.stringify(appjson), {
94
+ parser: "json",
95
+ })
96
+ );
97
+
83
98
  const pkgjson = JSON.parse(
84
99
  fs.readFileSync(
85
100
  path.join(process.cwd(), projectName, "package.json"),