Skip to content

Commit 0b46850

Browse files
johann-sonntagbauergaearon
authored andcommitted
fix project cleanup on windows (#1675)
1 parent a2c5be9 commit 0b46850

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

packages/create-react-app/index.js

+1
Original file line numberDiff line numberDiff line change
@@ -212,6 +212,7 @@ function run(root, appName, version, verbose, originalDirectory, template) {
212212
if (!remainingFiles.length) {
213213
// Delete target folder if empty
214214
console.log('Deleting', chalk.cyan(appName + '/'), 'from', chalk.cyan(path.resolve(root, '..')));
215+
process.chdir(path.resolve(root, '..'));
215216
fs.removeSync(path.join(root));
216217
}
217218
console.log('Done.');

0 commit comments

Comments
 (0)