Skip to content

Commit

Permalink
fix project cleanup on windows (#1675)
Browse files Browse the repository at this point in the history
  • Loading branch information
johann-sonntagbauer authored and gaearon committed Feb 28, 2017
1 parent a2c5be9 commit 0b46850
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions packages/create-react-app/index.js
Original file line number Diff line number Diff line change
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 0b46850

Please sign in to comment.