We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e2f4455 commit 51651efCopy full SHA for 51651ef
lib/commands/publish.js
@@ -224,16 +224,6 @@ class Publish extends BaseCommand {
224
}
225
226
227
- async #latestDistTag (spec) {
228
- try {
229
- const tags = await DistTag.fetchTags(spec, this.npm.flatOptions)
230
- return tags.latest
231
- } catch (_e) {
232
- // this will fail if the package is new, so just return null
233
- return null
234
- }
235
236
-
237
// if it's a directory, read it from the file system
238
// otherwise, get the full metadata from whatever it is
239
// XXX can't pacote read the manifest from a directory?
0 commit comments