This is completely up to you, just depends on whether or not you want the compiled code or the source code to live in your repo. Typically I keep the original code (anything I wrote in ES6 syntax BEFORE compiling it - aka the "lib" folder) in the github, and ignore the compiled code. This is just to keep the repo slim, because if i wanna fork it somewhere else, I can just recompile it after I've pulled in the repo.
That being said, I've also been in situations where I needed the compiled code to live directly in the repo (although this is more rare). For example, I once had a free tier server on AWS that took forever to compile the code because it was so slow. So I compiled the code before I pushed it to github, that way the compiled code could be pulled directly into the server.