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 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",