Commit 3509dcd1 authored by Johann Hubert Sonntagbauer's avatar Johann Hubert Sonntagbauer Committed by Dan Abramov
Browse files

fix project cleanup on windows (#1675)

parent c51a6119
4 merge requests!12191Lim.Pisey.168:/Identified - We are currently investigating reports of missing build logs. The issue has been identified and a resolution is in progress. We will provide a further update when available.Mar 21, 09:02 UTC,!12853brikk,!5717Automatically extract project file structure from build bundle file,!1933Add note about installing watchman
Showing with 1 addition and 0 deletions
+1 -0
...@@ -212,6 +212,7 @@ function run(root, appName, version, verbose, originalDirectory, template) { ...@@ -212,6 +212,7 @@ function run(root, appName, version, verbose, originalDirectory, template) {
if (!remainingFiles.length) { if (!remainingFiles.length) {
// Delete target folder if empty // Delete target folder if empty
console.log('Deleting', chalk.cyan(appName + '/'), 'from', chalk.cyan(path.resolve(root, '..'))); console.log('Deleting', chalk.cyan(appName + '/'), 'from', chalk.cyan(path.resolve(root, '..')));
process.chdir(path.resolve(root, '..'));
fs.removeSync(path.join(root)); fs.removeSync(path.join(root));
} }
console.log('Done.'); console.log('Done.');
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment