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.
- package/package.json +1 -1
- package/src/index.js +15 -0
package/package.json
CHANGED
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"),
|