@@ -14,29 +14,9 @@ const exec_1 = require("@actions/exec");
1414const path_1 = require ( "path" ) ;
1515function run ( ) {
1616 return __awaiter ( this , void 0 , void 0 , function * ( ) {
17- const project = ( 0 , core_1 . getInput ) ( 'project' ) ;
18- const build = ( 0 , core_1 . getInput ) ( 'build' ) ;
1917 const executable = ( 0 , core_1 . getInput ) ( 'executable' ) ;
2018 console . log ( `##[add-matcher]${ ( 0 , path_1 . join ) ( __dirname , '..' , '.github' , 'tsc.json' ) } ` ) ;
21- const args = [
22- `${ ( 0 , path_1 . join ) ( process . cwd ( ) , 'node_modules/.bin' , executable ) } ` ,
23- '--noEmit' ,
24- '--noErrorTruncation' ,
25- '--pretty' ,
26- 'false' ,
27- '--incremental' ,
28- 'false' ,
29- ] ;
30- if ( project ) {
31- args . push ( '--project' , project ) ;
32- }
33- if ( build ) {
34- args . splice ( 1 , 0 , '--build' , build ) ;
35- // Remove --noEmit and --noErrorTruncation, which are unsupported with --build
36- args . splice ( 3 , 2 ) ;
37- // Change --incremental false for --incremental true, as incremental builds are required for composite builds
38- args . splice ( - 1 , 1 , 'true' ) ;
39- }
19+ const args = [ `${ ( 0 , path_1 . join ) ( process . cwd ( ) , 'node_modules/.bin' , executable ) } ` ] ;
4020 try {
4121 yield ( 0 , exec_1 . exec ) ( 'node' , args ) ;
4222 }
0 commit comments