diff --git a/Tasks/Common/PowershellHelpers/tsconfig.json b/Tasks/Common/PowershellHelpers/tsconfig.json deleted file mode 100644 index 0438b79f69ac..000000000000 --- a/Tasks/Common/PowershellHelpers/tsconfig.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "compilerOptions": { - "target": "ES6", - "module": "commonjs" - } -} \ No newline at end of file diff --git a/Tasks/Common/RemoteDeployer/tsconfig.json b/Tasks/Common/RemoteDeployer/tsconfig.json deleted file mode 100644 index 0438b79f69ac..000000000000 --- a/Tasks/Common/RemoteDeployer/tsconfig.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "compilerOptions": { - "target": "ES6", - "module": "commonjs" - } -} \ No newline at end of file diff --git a/Tasks/Common/Sanitizer/tsconfig.json b/Tasks/Common/Sanitizer/tsconfig.json deleted file mode 100644 index 0438b79f69ac..000000000000 --- a/Tasks/Common/Sanitizer/tsconfig.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "compilerOptions": { - "target": "ES6", - "module": "commonjs" - } -} \ No newline at end of file diff --git a/Tasks/Common/VstsAzureHelpers_/tsconfig.json b/Tasks/Common/VstsAzureHelpers_/tsconfig.json deleted file mode 100644 index 0438b79f69ac..000000000000 --- a/Tasks/Common/VstsAzureHelpers_/tsconfig.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "compilerOptions": { - "target": "ES6", - "module": "commonjs" - } -} \ No newline at end of file diff --git a/Tasks/Common/VstsAzureRestHelpers_/tsconfig.json b/Tasks/Common/VstsAzureRestHelpers_/tsconfig.json deleted file mode 100644 index 0438b79f69ac..000000000000 --- a/Tasks/Common/VstsAzureRestHelpers_/tsconfig.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "compilerOptions": { - "target": "ES6", - "module": "commonjs" - } -} \ No newline at end of file diff --git a/make-util.js b/make-util.js index cb85bad27605..79ace36d465e 100644 --- a/make-util.js +++ b/make-util.js @@ -253,11 +253,11 @@ var buildNodeTask = function (taskPath, outDir, isServerBuild) { // Use the tsc version supplied by the task if it is available, otherwise use the global default. if (overrideTscPath) { var tscExec = path.join(overrideTscPath, "bin", "tsc"); - run(`node ${tscExec} --outDir "${outDir}" --rootDir "${taskPath}" ${getAdditionalTypeScriptArguments()}`); + run(`node ${tscExec} --outDir "${outDir}" --project ${taskPath}/tsconfig.json --rootDir "${taskPath}" ${getAdditionalTypeScriptArguments()}`); // Don't include typescript in node_modules rm("-rf", overrideTscPath); } else { - run(`tsc --outDir "${outDir}" --rootDir "${taskPath}" ${getAdditionalTypeScriptArguments()}`); + run(`tsc --outDir "${outDir}" --project ${taskPath}/tsconfig.json --rootDir "${taskPath}" ${getAdditionalTypeScriptArguments()}`); } cd(originalDir); diff --git a/package-lock.json b/package-lock.json index 44996048a264..72d2c8a4a427 100644 --- a/package-lock.json +++ b/package-lock.json @@ -15,7 +15,6 @@ "@types/adm-zip": "^0.4.34", "@types/minimatch": "^3.0.2", "@types/minimist": "^1.2.5", - "@types/node": "^20.19.9", "@types/semver": "^5.5.0", "@types/shelljs": "^0.8.17", "@types/validator": "^13.15.2", diff --git a/package.json b/package.json index 1ab0c2432966..e3aecafb09fc 100644 --- a/package.json +++ b/package.json @@ -34,7 +34,6 @@ "@types/adm-zip": "^0.4.34", "@types/minimatch": "^3.0.2", "@types/minimist": "^1.2.5", - "@types/node": "^20.19.9", "@types/semver": "^5.5.0", "@types/shelljs": "^0.8.17", "@types/validator": "^13.15.2",