Skip to content

Commit

Permalink
fix: detect package manager when configuring bob
Browse files Browse the repository at this point in the history
  • Loading branch information
satya164 committed Oct 2, 2023
1 parent e232d5a commit 8c0cbae
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion packages/react-native-builder-bob/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -327,6 +327,10 @@ yargs
}
}

const packageManager = (await fs.pathExists(path.join(root, 'yarn.lock')))
? 'yarn'
: 'npm';

console.log(
dedent(`
Project ${kleur.yellow(pkg.name)} configured successfully!
Expand All @@ -335,7 +339,7 @@ yargs
`${kleur.bold('Perform last steps')} by running`
)}${kleur.gray(':')}
${kleur.gray(':')} yarn
${kleur.gray('$')} ${packageManager} install
${kleur.yellow('Good luck!')}
`)
Expand Down

0 comments on commit 8c0cbae

Please sign in to comment.