Skip to content

Commit

Permalink
Merge branch 'master' into users/sdobrodeev/google-play-promote-node1…
Browse files Browse the repository at this point in the history
…0-migration
  • Loading branch information
egor-bryzgalov committed Feb 2, 2021
2 parents 44a91f6 + 4b24cdd commit d845d2a
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion make-util.js
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,14 @@ var buildNodeTask = function (taskPath, outDir) {
if (overrideTscPath) {
var tscExec = path.join(overrideTscPath, "bin", "tsc");
run("node " + tscExec + ' --outDir "' + outDir + '" --rootDir "' + taskPath + '"');
// Don't include typescript in node_modules

// Don't include typescript in node_modules:
// remove tsc and tsserver symbolic links
if (os.platform !== 'win32') {
rm('-f', path.join(taskPath, 'node_modules', '.bin', 'tsc'));
rm('-f', path.join(taskPath, 'node_modules', '.bin', 'tsserver'));
}
// remove typescript from node_modules
rm("-rf", overrideTscPath);
} else {
run('tsc --outDir "' + outDir + '" --rootDir "' + taskPath + '"');
Expand Down

0 comments on commit d845d2a

Please sign in to comment.