Skip to content

Commit 24c8efb

Browse files
committed
Fix rbs validation
1 parent 94d61d8 commit 24c8efb

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

Rakefile

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -212,7 +212,14 @@ task :validate => :compile do
212212
end
213213

214214
libs.each do |lib|
215-
sh "#{ruby} #{rbs} -r #{lib} validate --exit-error-on-syntax-error"
215+
args = ["-r", lib]
216+
217+
if lib == "rbs"
218+
args << "-r"
219+
args << "prism"
220+
end
221+
222+
sh "#{ruby} #{rbs} #{args.join(' ')} validate --exit-error-on-syntax-error"
216223
end
217224
end
218225

0 commit comments

Comments
 (0)