Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
fix project cleanup on windows
  • Loading branch information
johann-sonntagbauer committed Feb 28, 2017
commit db54c22db3fead6771546a312316d6cd854dfd1a
1 change: 1 addition & 0 deletions packages/create-react-app/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -203,6 +203,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