@@ -9,11 +9,15 @@ const pathToDtsLint = require.resolve("dtslint");
9
9
if ( module . parent === null ) { // tslint:disable-line no-null-keyword
10
10
let clone = false ;
11
11
let noInstall = false ;
12
+ let onlyTestTsNext = false ;
12
13
let nProcesses = cpus ( ) . length ;
13
14
const { argv } = process ;
14
15
for ( let i = 2 ; i < argv . length ; i ++ ) {
15
16
const arg = argv [ i ] ;
16
17
switch ( arg ) {
18
+ case "--onlyTestTsNext" :
19
+ onlyTestTsNext = true ;
20
+ break ;
17
21
case "--clone" :
18
22
clone = true ;
19
23
break ;
@@ -32,7 +36,7 @@ if (module.parent === null) { // tslint:disable-line no-null-keyword
32
36
}
33
37
}
34
38
35
- main ( clone , nProcesses , noInstall )
39
+ main ( clone , nProcesses , noInstall , onlyTestTsNext )
36
40
. then ( code => {
37
41
if ( code !== 0 ) {
38
42
console . error ( "FAILED" ) ;
@@ -45,7 +49,7 @@ if (module.parent === null) { // tslint:disable-line no-null-keyword
45
49
} ) ;
46
50
}
47
51
48
- async function main ( clone : boolean , nProcesses : number , noInstall : boolean ) : Promise < number > {
52
+ async function main ( clone : boolean , nProcesses : number , noInstall : boolean , onlyTestTsNext : boolean ) : Promise < number > {
49
53
if ( clone && ! noInstall ) {
50
54
await remove ( joinPaths ( process . cwd ( ) , "DefinitelyTyped" ) ) ;
51
55
await cloneDt ( process . cwd ( ) ) ;
@@ -67,7 +71,7 @@ async function main(clone: boolean, nProcesses: number, noInstall: boolean): Pro
67
71
const allFailures : Array < [ string , string ] > = [ ] ;
68
72
69
73
await runWithListeningChildProcesses ( {
70
- inputs : allPackages . map ( path => ( { path, onlyTestTsNext : false } ) ) ,
74
+ inputs : allPackages . map ( path => ( { path, onlyTestTsNext } ) ) ,
71
75
commandLineArgs : [ "--listen" ] ,
72
76
workerFile : pathToDtsLint ,
73
77
nProcesses,
0 commit comments