Skip to content

Commit 8c0cbae

Browse files
committed
fix: detect package manager when configuring bob
1 parent e232d5a commit 8c0cbae

File tree

1 file changed

+5
-1
lines changed
  • packages/react-native-builder-bob/src

1 file changed

+5
-1
lines changed

packages/react-native-builder-bob/src/index.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -327,6 +327,10 @@ yargs
327327
}
328328
}
329329

330+
const packageManager = (await fs.pathExists(path.join(root, 'yarn.lock')))
331+
? 'yarn'
332+
: 'npm';
333+
330334
console.log(
331335
dedent(`
332336
Project ${kleur.yellow(pkg.name)} configured successfully!
@@ -335,7 +339,7 @@ yargs
335339
`${kleur.bold('Perform last steps')} by running`
336340
)}${kleur.gray(':')}
337341
338-
${kleur.gray(':')} yarn
342+
${kleur.gray('$')} ${packageManager} install
339343
340344
${kleur.yellow('Good luck!')}
341345
`)

0 commit comments

Comments
 (0)