We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2d47243 commit 830b1c4Copy full SHA for 830b1c4
1 file changed
scripts/cleanup.ts
@@ -20,8 +20,25 @@ const removeAllReadmeFromApp = async (currentDirectory: string) => {
20
}
21
};
22
23
+const removeTheCleanupFromPackageJsonAndScripts = async () => {
24
+ const packageJson = JSON.parse(
25
+ await fs.readFile("package.json", { encoding: "utf-8" })
26
+ );
27
+
28
+ delete packageJson.scripts.cleanup;
29
+ await fs.writeFile(
30
+ "package.json",
31
+ JSON.stringify(packageJson, null, 2),
32
+ "utf-8"
33
34
35
+ console.log(chalk.green("Cleanup script is removed from package.json"));
36
+ await fs.unlink("scripts/cleanup.ts");
37
+};
38
39
removeAllReadmeFromApp(appDirectory).then(() => {
40
console.log(
41
chalk.green("All README.md files are removed from app directory")
42
);
43
});
44
+removeTheCleanupFromPackageJsonAndScripts();
0 commit comments