Updated to 1.3 and replaced typescript.api package
Rewritten to use typescript-compiler api