@@ -14,7 +14,6 @@ import {
14
14
loggerWithErrors ,
15
15
LoggerWithErrors ,
16
16
defaultCacheDir ,
17
- nAtATime ,
18
17
} from "@definitelytyped/utils" ;
19
18
import {
20
19
AnyPackage ,
@@ -65,12 +64,16 @@ async function tag(dry: boolean, nProcesses: number, name?: string) {
65
64
await updateTypeScriptVersionTags ( pkg , version , publishClient , consoleLogger . info , dry ) ;
66
65
await updateLatestTag ( pkg . fullNpmName , version , publishClient , consoleLogger . info , dry ) ;
67
66
} else {
68
- await nAtATime ( 10 , await AllPackages . readLatestTypings ( ) , async ( pkg ) => {
69
- // Only update tags for the latest version of the package.
70
- const version = await getLatestTypingVersion ( pkg ) ;
71
- await updateTypeScriptVersionTags ( pkg , version , publishClient , consoleLogger . info , dry ) ;
72
- await updateLatestTag ( pkg . fullNpmName , version , publishClient , consoleLogger . info , dry ) ;
73
- } ) ;
67
+ await Promise . all (
68
+ (
69
+ await AllPackages . readLatestTypings ( )
70
+ ) . map ( async ( pkg ) => {
71
+ // Only update tags for the latest version of the package.
72
+ const version = await getLatestTypingVersion ( pkg ) ;
73
+ await updateTypeScriptVersionTags ( pkg , version , publishClient , consoleLogger . info , dry ) ;
74
+ await updateLatestTag ( pkg . fullNpmName , version , publishClient , consoleLogger . info , dry ) ;
75
+ } )
76
+ ) ;
74
77
}
75
78
// Don't tag notNeeded packages
76
79
}
0 commit comments