mirror of
https://github.com/zhigang1992/create-react-app.git
synced 2026-01-12 22:46:30 +08:00
@@ -465,7 +465,7 @@ function run(
|
||||
const currentFiles = fs.readdirSync(path.join(root));
|
||||
currentFiles.forEach(file => {
|
||||
knownGeneratedFiles.forEach(fileToMatch => {
|
||||
// This remove all of knownGeneratedFiles.
|
||||
// This removes all knownGeneratedFiles.
|
||||
if (file === fileToMatch) {
|
||||
console.log(`Deleting generated file... ${chalk.cyan(file)}`);
|
||||
fs.removeSync(path.join(root, file));
|
||||
|
||||
Reference in New Issue
Block a user