Skip to content

Commit

Permalink
chore: remove unused function
Browse files Browse the repository at this point in the history
  • Loading branch information
reggi committed Dec 2, 2024
1 parent 07e23f4 commit 0fdcab6
Showing 1 changed file with 0 additions and 10 deletions.
10 changes: 0 additions & 10 deletions lib/commands/publish.js
Original file line number Diff line number Diff line change
Expand Up @@ -224,16 +224,6 @@ class Publish extends BaseCommand {
}
}

async #latestDistTag (spec) {
try {
const tags = await DistTag.fetchTags(spec, this.npm.flatOptions)
return tags.latest
} catch (_e) {
// this will fail if the package is new, so just return null
return null
}
}

// if it's a directory, read it from the file system
// otherwise, get the full metadata from whatever it is
// XXX can't pacote read the manifest from a directory?
Expand Down

0 comments on commit 0fdcab6

Please sign in to comment.