lib/tapioca/commands/abstract_gem.rb in tapioca-0.12.0 vs lib/tapioca/commands/abstract_gem.rb in tapioca-0.13.0
- old
+ new
@@ -116,10 +116,12 @@
rbi,
default_command(:gem, gem.name),
reason: "types exported from the `#{gem.name}` gem",
) if @file_header
- rbi.root = Tapioca::Gem::Pipeline.new(gem, include_doc: @include_doc, include_loc: @include_loc).compile
+ rbi.root = Runtime::Trackers::Autoload.with_disabled_exits do
+ Tapioca::Gem::Pipeline.new(gem, include_doc: @include_doc, include_loc: @include_loc).compile
+ end
merge_with_exported_rbi(gem, rbi) if @include_exported_rbis
if rbi.empty?
@rbi_formatter.write_empty_body_comment!(rbi)