Skip to content

Commit

Permalink
fix: add debugging comments to plugin unfriendly name registry lookup (
Browse files Browse the repository at this point in the history
  • Loading branch information
RasPhilCo authored Oct 13, 2020
1 parent 8cf8131 commit 82f8434
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/plugins.ts
Original file line number Diff line number Diff line change
Expand Up @@ -194,9 +194,11 @@ export default class Plugins {

async maybeUnfriendlyName(name: string): Promise<string> {
const unfriendly = this.unfriendlyName(name)
this.debug(`checking registry for expanded package name ${unfriendly}`)
if (unfriendly && await this.npmHasPackage(unfriendly)) {
return unfriendly
}
this.debug(`expanded package name ${unfriendly} not found, using given package name ${name}`)
return name
}

Expand Down

0 comments on commit 82f8434

Please sign in to comment.