Skip to content

Commit da66736

Browse files
committed
Merge pull request #7 from offslinker/master
Added support of different tsc.js path for 1.6 prerelase Typescript
2 parents 8323203 + a2baf1e commit da66736

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

lib/typescript-src.rb

+6-1
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,12 @@ def tsc_path
2727

2828
# @return [Pathname]
2929
def js_path
30-
typescript_path.join('bin/tsc.js')
30+
bin_tsc = typescript_path.join('bin/tsc.js')
31+
if ::File.exist?(bin_tsc)
32+
bin_tsc
33+
else
34+
typescript_path.join('lib/tsc.js')
35+
end
3136
end
3237

3338
# @return [Pathname]

0 commit comments

Comments
 (0)