-
-
Notifications
You must be signed in to change notification settings - Fork 226
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix error when Typescript is not installed #282
Conversation
Fixes #280. The code was referencing the `typescript` object when it is potentially `null`.
Codecov Report
@@ Coverage Diff @@
## master #282 +/- ##
=======================================
Coverage 98.04% 98.04%
=======================================
Files 29 29
Lines 461 461
=======================================
Hits 452 452
Misses 9 9
Continue to review full report at Codecov.
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice one
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good!
This one is hard. If the environment is complicated and stability is low, it may be not worth. |
* master: Upgrade all dependencies (#276) Fix error when Typescript is not installed (#282) Enable ES6/7 syntax in Typescript (#258) Update NPM tokens for deploy from Travis (#278) Recognize object arrays in Webpack module.rules.loaders (#233) Add support for import() expressions (#205) Bump Mocha to 5.x (#274) Fix ignore-bin-package default in ReadMe (#252) Fix typo: pasers -> parsers
Fixes #280. The code was referencing the
typescript
object when itis potentially
null
.It's not included in this PR, but we could consider adding a check to
catch this situation in CI (filed as an issue in #281).