Skip to content

Commit 124ed05

Browse files
committed
Merge pull request #8 from offslinker/master
Fix Ruby warning: File.exists? is a deprecated name, use File.exist? instead
2 parents cc4c3f1 + 3fc72a6 commit 124ed05

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Diff for: lib/typescript-node.rb

+2-2
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ def compile_file(source_file, *tsc_options)
2626
output_file = File.join(output_dir, 'out.js')
2727
stdout, stderr, exit_status = tsc(*tsc_options, '--out', output_file, source_file)
2828

29-
output_js = File.exists?(output_file) ? File.read(output_file) : nil
29+
output_js = File.exist?(output_file) ? File.read(output_file) : nil
3030
CompileResult.new(
3131
output_js,
3232
exit_status,
@@ -86,4 +86,4 @@ def check_node
8686
end
8787
end
8888

89-
TypeScript::Node.check_node
89+
TypeScript::Node.check_node

0 commit comments

Comments
 (0)