Skip to content

Commit

Permalink
add support for not default registry for pnpm
Browse files Browse the repository at this point in the history
  • Loading branch information
attiasas committed Feb 11, 2024
1 parent f50aa6d commit 3f893a3
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion commands/audit/scarunner.go
Original file line number Diff line number Diff line change
Expand Up @@ -243,7 +243,10 @@ func SetResolutionRepoIfExists(params xrayutils.AuditParams, tech coreutils.Tech
if params.DepsRepo() != "" || params.IgnoreConfigFile() {
return
}

if tech == coreutils.Pnpm {
// Pnpm doesn't have a configuration file, it uses npm's configuration file.
tech = coreutils.Npm
}
configFilePath, exists, err := project.GetProjectConfFilePath(techType[tech])
if err != nil {
err = fmt.Errorf("failed while searching for %s.yaml config file: %s", tech.String(), err.Error())
Expand Down

0 comments on commit 3f893a3

Please sign in to comment.