We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1609cef commit 563e694Copy full SHA for 563e694
create-react-native-app/src/index.js
@@ -42,7 +42,7 @@ if (commands.length === 0) {
42
43
createApp(commands[0], !!argv.verbose, argv['scripts-version']).then(() => {});
44
45
-function isRespondYarn() {
+function userHasYarn() {
46
try {
47
const result = spawn.sync('yarnpkg', ['--version'], { stdio: 'ignore' });
48
if (result.error || result.status !== 0) {
@@ -68,7 +68,7 @@ function packageManagerType() {
68
return t ? t : defaultType;
69
}
70
71
- return isRespondYarn() ? 'yarn' : defaultType;
+ return userHasYarn() ? 'yarn' : defaultType;
72
73
74
function packageManagerCmd() {
0 commit comments