It seems that cli does not yet support typescript compilation as shown in the examples accompanying the following release.
(I apologize if I'm wrong.)
https://github.com/riot/riot/releases/tag/v5.4.0
Are there any plans to make it possible to compile typescript in cli in the future?