diff --git a/packages/publisher/src/publish-registry.ts b/packages/publisher/src/publish-registry.ts index cec468d614..491e07f626 100644 --- a/packages/publisher/src/publish-registry.ts +++ b/packages/publisher/src/publish-registry.ts @@ -235,21 +235,14 @@ interface Registry { async function generateRegistry(typings: readonly TypingsData[]): Promise { return { entries: Object.fromEntries( - await nAtATime( - 10, - typings, - async (typing) => { - const tags = await retry( - async () => (await pacote.packument(typing.name, { cache: cacheDir }))["dist-tags"], - /*count*/ 2, - /*delaySeconds*/ 5, - ); - return [ - typing.typesDirectoryName, - filterTags(tags), - ]; - }, - ), + await nAtATime(10, typings, async (typing) => { + const tags = await retry( + async () => (await pacote.packument(typing.name, { cache: cacheDir }))["dist-tags"], + /*count*/ 2, + /*delaySeconds*/ 5, + ); + return [typing.typesDirectoryName, filterTags(tags)]; + }), ), };