Closed giolazzareschi closed 8 years ago
Hi @giolazzareschi,
You can use external TS compiler. See https://github.com/typescript-ruby/typescript-src-ruby#usage. I think TypeScript::Src.use_external_tsc
option will help you.
Thank you @bdrazhzhov ! It worked now :)
Hi!
I'm currently studying Angular 2 and Typescript, but I'm an enthusiast of Ruby (and Rails as well). I'm trying to create my projects with TS and RoR so I'm trying mix everything up. I put my configurations for typescript-rails in '/initializers/typescript.rb' like this:
Typescript::Rails::Compiler.default_options = [ '--target', 'ES5', '--noImplicitAny', '--emitDecoratorMetadata', '--experimentalDecorators' ]
but when the rails engine compiles a .ts file it show this errors:
error TS5023: Unknown compiler options 'emitdecoratormetadata'
error TS5023: Unknown compiler options 'experimentalDecorators'
I would like to know which version of TS the gem uses and if there is a way to update it by myself to the last typescript compiler or if these options will be supported (or already are).
Thanks!