From a2baf1e452bafbaa87b4c4b0433cbdb134efd387 Mon Sep 17 00:00:00 2001 From: Alex Slynko Date: Mon, 31 Aug 2015 23:12:33 +0100 Subject: [PATCH] Added support of different tsc.js path for 1.6 prerelase of Typescript --- lib/typescript-src.rb | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/lib/typescript-src.rb b/lib/typescript-src.rb index bff3bc6..a350861 100644 --- a/lib/typescript-src.rb +++ b/lib/typescript-src.rb @@ -27,7 +27,12 @@ def tsc_path # @return [Pathname] def js_path - typescript_path.join('bin/tsc.js') + bin_tsc = typescript_path.join('bin/tsc.js') + if ::File.exist?(bin_tsc) + bin_tsc + else + typescript_path.join('lib/tsc.js') + end end # @return [Pathname]