Skip to content

Commit 86703ef

Browse files
johann-sonntagbauerSpaceK33z
authored andcommitted
fix project cleanup on windows (facebook#1675)
1 parent 8fe8579 commit 86703ef

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

packages/create-react-cy-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)