Add tapioca config

This commit is contained in:
Douglas Eichelberger 2024-02-16 11:24:14 -08:00
parent fa23636c44
commit d05e9c5473
2 changed files with 9 additions and 7 deletions

View File

@ -46,13 +46,8 @@ module Homebrew
HOMEBREW_LIBRARY_PATH.cd do
if update
safe_system "bundle", "exec", "tapioca", "dsl"
# RBI files already provided by Sorbet:
excluded_gems = [
"json",
"msgpack",
]
tapioca_args = ["--exclude", *excluded_gems, "--pre", "sorbet/tapioca/prerequire.rb"]
tapioca_args << "--all" if args.update_all?
# Prefer adding args here: Library/Homebrew/sorbet/tapioca/config.yml
tapioca_args = args.update_all? ? ["--all"] : []
ohai "Updating homegrown RBI files..."
safe_system "bundle", "exec", "ruby", "sorbet/custom_generators/tty.rb"

View File

@ -0,0 +1,7 @@
---
# see https://github.com/Shopify/tapioca?tab=readme-ov-file#configuration
gem:
exclude:
- json
- msgpack
prerequire: sorbet/tapioca/prerequire.rb