Changed the typescript dependency from a dev dependency to a library dependency.
The reason for this is in the index.js line 48 breaks when it's being used by another package.
 This gets called when no compiler option is set and so  does a requires("typescript").
 In this case typescript wouldn't have been installed as a dependency and so it fails.