Skip to content

Commit

Permalink
#1658 fix passThrough behavior
Browse files Browse the repository at this point in the history
avoid passing the list of files when using options.passThrough
  • Loading branch information
ceonizm authored Oct 7, 2024
1 parent 23f720e commit dbbb37c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tasks/modules/compile.ts
Original file line number Diff line number Diff line change
Expand Up @@ -208,13 +208,14 @@ export function compileAllFiles(options: Partial<IGruntTSOptions>, compilationIn
// Quote the files to compile. Needed for command line parsing by tsc
files = _.map(files, item => utils.possiblyQuotedRelativePath(item));

let args: string[] = files.slice(0);
let args: string[] = [];

grunt.log.verbose.writeln(`TypeScript path: ${tsc}`);

if (tsconfig && tsconfig.passThrough) {
args.push('--project', tsconfig.tsconfig);
} else {
args = files.slice(0);
if (options.sourceMap) {
args.push('--sourcemap');
}
Expand Down

0 comments on commit dbbb37c

Please sign in to comment.