We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 73a07e6 commit f1dee01Copy full SHA for f1dee01
2 files changed
.changeset/large-mirrors-bathe.md
@@ -0,0 +1,5 @@
1
+---
2
+"@definitelytyped/utils": patch
3
4
+
5
+Fix missing dist-tag in deprecated package publish
packages/utils/src/npm.ts
@@ -15,12 +15,12 @@ export interface NpmPublishClientConfig {
15
16
export class NpmPublishClient {
17
static async create(token: string, config: NpmPublishClientConfig = {}): Promise<NpmPublishClient> {
18
- return new NpmPublishClient(token, config.defaultTag);
+ return new NpmPublishClient(token, config.defaultTag ?? "latest");
19
}
20
21
private constructor(
22
private readonly token: string,
23
- private readonly defaultTag: string | undefined,
+ private readonly defaultTag: string,
24
) {}
25
26
async publish(
0 commit comments