From 75f85e5e9d97add45fc459d55faf850f26438afe Mon Sep 17 00:00:00 2001 From: Boris Letocha Date: Thu, 29 Aug 2019 21:15:37 +0200 Subject: [PATCH] patch TypeScript 3.6.2 bug https://github.com/microsoft/TypeScript/issues/33142 --- CHANGELOG.md | 1 + Lib/ToolsDir/ToolsDir.cs | 3 +++ TestProjects/BbApp/yarn.lock | 6 +++--- 3 files changed, 7 insertions(+), 3 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 918b216f..27988af5 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,6 +5,7 @@ ### Fixed - js and css files in html head are treated like resources (not touched just copied to output dir). +- patch TypeScript 3.6.2 bug https://github.com/microsoft/TypeScript/issues/33142 ## 0.91.3 diff --git a/Lib/ToolsDir/ToolsDir.cs b/Lib/ToolsDir/ToolsDir.cs index 394a2af8..f6c785fd 100644 --- a/Lib/ToolsDir/ToolsDir.cs +++ b/Lib/ToolsDir/ToolsDir.cs @@ -131,6 +131,9 @@ public string TypeScriptJsContent } } + // patch https://github.com/microsoft/TypeScript/issues/33142 in 3.6.2 + _typeScriptJsContent = _typeScriptJsContent.Replace("process.argv", "\"\""); + // Remove too defensive check for TS2742 - it is ok in Bobril-build to have relative paths into node_modules when in sandboxes _typeScriptJsContent = _typeScriptJsContent.Replace(".indexOf(\"/node_modules/\") >= 0", "===null"); } diff --git a/TestProjects/BbApp/yarn.lock b/TestProjects/BbApp/yarn.lock index b8ebbf36..878089ec 100644 --- a/TestProjects/BbApp/yarn.lock +++ b/TestProjects/BbApp/yarn.lock @@ -20,6 +20,6 @@ moment@^2.10.6: integrity sha512-bV7f+6l2QigeBBZSM/6yTNq4P2fNpSWj/0e7jQcy87A8e7o2nAfP/34/2ky5Vw4B9S446EtIhodAzkFCcR4dQg== typescript@*: - version "3.5.3" - resolved "https://registry.yarnpkg.com/typescript/-/typescript-3.5.3.tgz#c830f657f93f1ea846819e929092f5fe5983e977" - integrity sha512-ACzBtm/PhXBDId6a6sDJfroT2pOWt/oOnk4/dElG5G33ZL776N3Y6/6bKZJBFpd+b05F3Ct9qDjMeJmRWtE2/g== + version "3.6.2" + resolved "https://registry.yarnpkg.com/typescript/-/typescript-3.6.2.tgz#105b0f1934119dde543ac8eb71af3a91009efe54" + integrity sha512-lmQ4L+J6mnu3xweP8+rOrUwzmN+MRAj7TgtJtDaXE5PMyX2kCrklhg3rvOsOIfNeAWMQWO2F1GPc1kMD2vLAfw==