Skip to content

Commit 5eb1547

Browse files
author
Maël Nison
committed
Removes the copied lockfile when the install fails
1 parent d631473 commit 5eb1547

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/create-react-app/createReactApp.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -429,7 +429,7 @@ function run(
429429
console.log();
430430

431431
// On 'exit' we will delete these files from target directory.
432-
const knownGeneratedFiles = ['package.json', 'node_modules'];
432+
const knownGeneratedFiles = ['package.json', 'yarn.lock', 'node_modules'];
433433
const currentFiles = fs.readdirSync(path.join(root));
434434
currentFiles.forEach(file => {
435435
knownGeneratedFiles.forEach(fileToMatch => {

0 commit comments

Comments
 (0)