Skip to content

Commit 9321af2

Browse files
Specify tsconfig.json for each task when build
1 parent 8fb8034 commit 9321af2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

make-util.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -253,11 +253,11 @@ var buildNodeTask = function (taskPath, outDir, isServerBuild) {
253253
// Use the tsc version supplied by the task if it is available, otherwise use the global default.
254254
if (overrideTscPath) {
255255
var tscExec = path.join(overrideTscPath, "bin", "tsc");
256-
run(`node ${tscExec} --outDir "${outDir}" --rootDir "${taskPath}" ${getAdditionalTypeScriptArguments()}`);
256+
run(`node ${tscExec} --outDir "${outDir}" --project ${taskPath}/tsconfig.json --rootDir "${taskPath}" ${getAdditionalTypeScriptArguments()}`);
257257
// Don't include typescript in node_modules
258258
rm("-rf", overrideTscPath);
259259
} else {
260-
run(`tsc --outDir "${outDir}" --rootDir "${taskPath}" ${getAdditionalTypeScriptArguments()}`);
260+
run(`tsc --outDir "${outDir}" --project ${taskPath}/tsconfig.json --rootDir "${taskPath}" ${getAdditionalTypeScriptArguments()}`);
261261
}
262262

263263
cd(originalDir);

0 commit comments

Comments
 (0)