From 0fdcab6d6cd79f0bd88af94ba33ec2b1af10bda6 Mon Sep 17 00:00:00 2001 From: reggi Date: Mon, 2 Dec 2024 12:10:30 -0500 Subject: [PATCH] chore: remove unused function --- lib/commands/publish.js | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/lib/commands/publish.js b/lib/commands/publish.js index 08547b2163729..12614c335c4b7 100644 --- a/lib/commands/publish.js +++ b/lib/commands/publish.js @@ -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?