DEV Community

Learn how to contribute to the TypeScript compiler on GitHub through a real-world example

Remo H. Jansen on January 09, 2018

A few days ago I managed to send my first PR to the TypeScript project on GitHub. This is something that I've been trying to do for a very long tim...
Collapse
 
surgeboris profile image
surgeboris • Edited

Thank you very much for such a useful article! I'd like to contribute to it - I think there is a couple of typos in it (correct me if I'm wrong, but I think those are typos):

though that I would be able to find where the error Object is possibly 'null' is thrown and change it for one of the others errors when the object is a function.

though → thought

when the object is a function → when the object is not a function.

Collapse
 
remojansen profile image
Remo H. Jansen

Thanks, I have updated it :)

Collapse
 
jkillian profile image
Jason Killian

Great article Remo! I was looking for information on the architecture of the TypeScript compiler, so I appreciated the list of resources you provided. Also, I appreciate your persistence in finding a bug to fix and making a PR to the TS compiler!

Collapse
 
tobjoern profile image
Tobjoern

Thanks for this great post!
I'm trying to follow your footsteps, by following your instructions.
But when I type 'jake runtests-parallel', after installing jake, I get the following error:

'jake aborted.
Error: No Jakefile. Specify a valid path with -f/--jakefile, or place one in the current directory.
at api.fail (/usr/local/lib/node_modules/jake/lib/api.js:336:18)
at EventEmitter.utils.mixin.run (/usr/local/lib/node_modules/jake/lib/jake.js:328:9)
(See full trace by running task with --trace)'

I followed your instructions precisely (you can see the repo here: github.com/Tobjoern/TypeScript), is there anything I can do to get the JakeFile?

Collapse
 
nickytonline profile image
Nick Taylor

Thanks for the write up Remo! It's on my todo list to contribute at least one PR to TypeScript this year.

Collapse
 
remojansen profile image
Remo H. Jansen

Thaks! I would also like to contribute more this year :)

Collapse
 
elshadhu profile image
ElshadHu

Excellent, i loved how you did research. Now i want to contribute to the TypeScript compiler. I am doing a research based on a specific bug. Your post helped me a lot.

Collapse
 
devmonte profile image
Grzegorz Jońca

Quite long but also very useful article. Thanks, after reading it I will consider contribution to some project also :)

Collapse
 
agmeteor profile image
Allan Guwatudde

Hey Remo, thanks a lot for this. Just made a TS PR and this really helped me get started. I am to write a post like this one.

Collapse
 
elshadhu profile image
ElshadHu

Excellent article! It was nice read.