Skip to content

Commit

Permalink
fix project cleanup on windows (facebook#1675)
Browse files Browse the repository at this point in the history
  • Loading branch information
johann-sonntagbauer authored and randycoulman committed May 8, 2017
1 parent 509f6a4 commit dc76eb5
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions packages/create-react-app/index.js
Expand Up @@ -212,6 +212,7 @@ function run(root, appName, version, verbose, originalDirectory, template) {
if (!remainingFiles.length) {
// Delete target folder if empty
console.log('Deleting', chalk.cyan(appName + '/'), 'from', chalk.cyan(path.resolve(root, '..')));
process.chdir(path.resolve(root, '..'));
fs.removeSync(path.join(root));
}
console.log('Done.');
Expand Down

0 comments on commit dc76eb5

Please sign in to comment.