For those who use BrighterScript programmatically, there's no clear way to transpile the entire project. ProgramBuilder has a createPackageIfEnabled() method, but that's really only used for the normal run flow.
So, create a transpile function that does all the heavy lifting, and call that from createPackageIfEnabled.