Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .changeset/large-mirrors-bathe.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@definitelytyped/utils": patch
---

Fix missing dist-tag in deprecated package publish
4 changes: 2 additions & 2 deletions packages/utils/src/npm.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,12 @@ export interface NpmPublishClientConfig {

export class NpmPublishClient {
static async create(token: string, config: NpmPublishClientConfig = {}): Promise<NpmPublishClient> {
return new NpmPublishClient(token, config.defaultTag);
return new NpmPublishClient(token, config.defaultTag ?? "latest");
}

private constructor(
private readonly token: string,
private readonly defaultTag: string | undefined,
private readonly defaultTag: string,
) {}

async publish(
Expand Down
Loading