Skip to content

Commit

Permalink
patch TypeScript 3.6.2 bug microsoft/TypeScript#33142
Browse files Browse the repository at this point in the history
  • Loading branch information
Bobris committed Aug 29, 2019
1 parent cbf20c4 commit 75f85e5
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Expand Up @@ -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

Expand Down
3 changes: 3 additions & 0 deletions Lib/ToolsDir/ToolsDir.cs
Expand Up @@ -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");
}
Expand Down
6 changes: 3 additions & 3 deletions TestProjects/BbApp/yarn.lock
Expand Up @@ -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==

0 comments on commit 75f85e5

Please sign in to comment.