Skip to content

Commit 9f9dbb6

Browse files
ceonizmFrançois Boukhalfa
authored and
François Boukhalfa
committed
avoid passing the list of files when using options.passThrough
Update compile.js
1 parent 23f720e commit 9f9dbb6

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

tasks/modules/compile.js

+3-2
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

tasks/modules/compile.ts

+2-1
Original file line numberDiff line numberDiff line change
@@ -208,13 +208,14 @@ export function compileAllFiles(options: Partial<IGruntTSOptions>, compilationIn
208208
// Quote the files to compile. Needed for command line parsing by tsc
209209
files = _.map(files, item => utils.possiblyQuotedRelativePath(item));
210210

211-
let args: string[] = files.slice(0);
211+
let args: string[] = [];
212212

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

215215
if (tsconfig && tsconfig.passThrough) {
216216
args.push('--project', tsconfig.tsconfig);
217217
} else {
218+
args = files.slice(0);
218219
if (options.sourceMap) {
219220
args.push('--sourcemap');
220221
}

0 commit comments

Comments
 (0)