Skip to content

Commit

Permalink
avoid passing the list of files when using options.passThrough
Browse files Browse the repository at this point in the history
Update compile.js
  • Loading branch information
ceonizm authored and François Boukhalfa committed Oct 7, 2024
1 parent 23f720e commit 9f9dbb6
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
5 changes: 3 additions & 2 deletions tasks/modules/compile.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

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 9f9dbb6

Please sign in to comment.