From f14e4f6b267e3c5d1192ddfd1419d7c5d4e18f24 Mon Sep 17 00:00:00 2001 From: Jake Bailey <5341706+jakebailey@users.noreply.github.com> Date: Tue, 17 Feb 2026 10:11:26 -0800 Subject: [PATCH 1/2] Always set latest tag in publish code --- packages/utils/src/npm.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/utils/src/npm.ts b/packages/utils/src/npm.ts index 708e06781d..a1bed575c1 100644 --- a/packages/utils/src/npm.ts +++ b/packages/utils/src/npm.ts @@ -15,12 +15,12 @@ export interface NpmPublishClientConfig { export class NpmPublishClient { static async create(token: string, config: NpmPublishClientConfig = {}): Promise { - 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( From 73756cb856a88cdae9747a7ecdf5a9dff386e7e3 Mon Sep 17 00:00:00 2001 From: Jake Bailey <5341706+jakebailey@users.noreply.github.com> Date: Tue, 17 Feb 2026 10:19:22 -0800 Subject: [PATCH 2/2] Changeset, sigh --- .changeset/large-mirrors-bathe.md | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 .changeset/large-mirrors-bathe.md diff --git a/.changeset/large-mirrors-bathe.md b/.changeset/large-mirrors-bathe.md new file mode 100644 index 0000000000..e17e859256 --- /dev/null +++ b/.changeset/large-mirrors-bathe.md @@ -0,0 +1,5 @@ +--- +"@definitelytyped/utils": patch +--- + +Fix missing dist-tag in deprecated package publish