Improve default app README.mdex (#4893)

This commit is contained in:
Hariom Balhara authored and GitHub committed 2022-10-07 07:29:09 +00:00
1 parent 0098591a56
commit 44fd1b9fef
5 files changed
+12 -13

No files matched your search

+5 -5
View File
@@ -119,11 +119,11 @@ const BaseAppFork = {
fs.writeFileSync(`${appDirPath}/config.json`, JSON.stringify(config, null, 2));
fs.writeFileSync(
`${appDirPath}/README.mdx`,
fs.readFileSync(`${appDirPath}/README.mdx`).toString().replace("_DESCRIPTION_", appDescription)
);
fs.writeFileSync(
`${appDirPath}/README.mdx`,
fs.readFileSync(`${appDirPath}/README.mdx`).toString().replace("_DESCRIPTION_", appDescription)
fs
.readFileSync(`${appDirPath}/README.mdx`)
.toString()
.replace(/_DESCRIPTION_/g, appDescription)
.replace(/_APP_DIR_/g, slug)
);
message = !editMode ? "Forked base app" : "Updated app";
yield message;