create-react-app
Advanced tools
Comparing version 2.1.5 to 2.1.6
@@ -271,6 +271,17 @@ /** | ||
if (useYarn) { | ||
fs.copySync( | ||
require.resolve('./yarn.lock.cached'), | ||
path.join(root, 'yarn.lock') | ||
); | ||
let yarnUsesDefaultRegistry = true; | ||
try { | ||
yarnUsesDefaultRegistry = | ||
execSync('yarnpkg config get registry') | ||
.toString() | ||
.trim() === 'https://registry.yarnpkg.com'; | ||
} catch (e) { | ||
// ignore | ||
} | ||
if (yarnUsesDefaultRegistry) { | ||
fs.copySync( | ||
require.resolve('./yarn.lock.cached'), | ||
path.join(root, 'yarn.lock') | ||
); | ||
} | ||
} | ||
@@ -458,3 +469,3 @@ | ||
knownGeneratedFiles.forEach(fileToMatch => { | ||
// This remove all of knownGeneratedFiles. | ||
// This removes all knownGeneratedFiles. | ||
if (file === fileToMatch) { | ||
@@ -461,0 +472,0 @@ console.log(`Deleting generated file... ${chalk.cyan(file)}`); |
{ | ||
"name": "create-react-app", | ||
"version": "2.1.5", | ||
"version": "2.1.6", | ||
"keywords": [ | ||
@@ -5,0 +5,0 @@ "react" |
Sorry, the diff of this file is not supported yet
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
451915
912
3