Skip to content

Commit

Permalink
feat(dependencies): hide install option if no package manager detected
Browse files Browse the repository at this point in the history
Closes #45
  • Loading branch information
6km committed Jun 3, 2024
1 parent 31934f2 commit 3d1d874
Showing 1 changed file with 2 additions and 8 deletions.
10 changes: 2 additions & 8 deletions src/hooks/dependencies.ts
Original file line number Diff line number Diff line change
Expand Up @@ -38,14 +38,8 @@ const registerInstallationHook = (
knownPackageManagerNames.filter((_, index) => results[index]),
)

// show error message if no package manager is installed
if (!installedPackageManagerNames.length) {
console.log(
chalk.red('×'),
'No package manager found. Please install one any try again.',
)
return exit(1)
}
// hide install dependencies option if no package manager is installed
if (installedPackageManagerNames.length) return

if (typeof installArg === 'boolean') {
installDeps = installArg
Expand Down

0 comments on commit 3d1d874

Please sign in to comment.