From 8ce6dd4bba96bea8f232dd499372a8766a80f86a Mon Sep 17 00:00:00 2001 From: Jake Bailey <5341706+jakebailey@users.noreply.github.com> Date: Mon, 2 Feb 2026 15:30:05 -0800 Subject: [PATCH 1/2] Correct npm client options --- packages/utils/src/npm.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/packages/utils/src/npm.ts b/packages/utils/src/npm.ts index 87763da9bc..708e06781d 100644 --- a/packages/utils/src/npm.ts +++ b/packages/utils/src/npm.ts @@ -43,9 +43,9 @@ export class NpmPublishClient { const manifest = { ...packageJson, readme } as unknown as { name: string; version: string }; await publish(manifest, tarballBuffer, { - token: this.token, + forceAuth: { token: this.token }, access: "public", - tag: this.defaultTag, + defaultTag: this.defaultTag, }); } @@ -57,7 +57,7 @@ export class NpmPublishClient { await npmFetch(`/-/package/${encodeURIComponent(packageName)}/dist-tags/${encodeURIComponent(distTag)}`, { method: "PUT", - token: this.token, + forceAuth: { token: this.token }, body: JSON.stringify(version), headers: { "content-type": "application/json", From 2f1b7387a99cf4032b19a8f6d2bf89d901ac61ff Mon Sep 17 00:00:00 2001 From: Jake Bailey <5341706+jakebailey@users.noreply.github.com> Date: Mon, 2 Feb 2026 15:32:18 -0800 Subject: [PATCH 2/2] changeset --- .changeset/petite-jars-train.md | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 .changeset/petite-jars-train.md diff --git a/.changeset/petite-jars-train.md b/.changeset/petite-jars-train.md new file mode 100644 index 0000000000..4b101d4b67 --- /dev/null +++ b/.changeset/petite-jars-train.md @@ -0,0 +1,5 @@ +--- +"@definitelytyped/utils": patch +--- + +Correct npm options