Add generated TypeScript source in front of main sources

Fixes #142