Skip to content

Commit

Permalink
chore: dedupe our lockfile names (#5749)
Browse files Browse the repository at this point in the history
### Description

Noticed that I added new instances of the lockfile names in #5531 when
they were already present in the package manager modules themselves.

This PR switches over to using those instead.

### Testing Instructions

👀

Co-authored-by: Chris Olszewski <Chris Olszewski>
  • Loading branch information
chris-olszewski authored Aug 18, 2023
1 parent 3f43617 commit 653bedc
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions crates/turborepo-lib/src/package_manager/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -432,9 +432,9 @@ impl PackageManager {

pub fn lockfile_name(&self) -> &'static str {
match self {
PackageManager::Npm => "package-lock.json",
PackageManager::Pnpm | PackageManager::Pnpm6 => "pnpm-lock.yaml",
PackageManager::Yarn | PackageManager::Berry => "yarn.lock",
PackageManager::Npm => npm::LOCKFILE,
PackageManager::Pnpm | PackageManager::Pnpm6 => pnpm::LOCKFILE,
PackageManager::Yarn | PackageManager::Berry => yarn::LOCKFILE,
}
}

Expand Down

0 comments on commit 653bedc

Please sign in to comment.