Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Meta
create-react-app
Commits
3509dcd1
Commit
3509dcd1
authored
8 years ago
by
Johann Hubert Sonntagbauer
Committed by
Dan Abramov
8 years ago
Browse files
Options
Download
Email Patches
Plain Diff
fix project cleanup on windows (#1675)
parent
c51a6119
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
packages/create-react-app/index.js
+1
-0
packages/create-react-app/index.js
with
1 addition
and
0 deletions
+1
-0
packages/create-react-app/index.js
+
1
-
0
View file @
3509dcd1
...
...
@@ -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.
'
);
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment