# TypeScript >= 5.2 turns the module/moduleResolution mismatch used by the
# upstream tsconfig files into a hard error (TS5110), so the incompatible
# options are overridden here instead of patching the upstream configs:
#   tsconfig.json     -> moduleResolution node16 requires module node16
#   tsconfig-esm.json -> module esnext requires an ESM resolution mode
#                        (moduleResolution bundler)
tsc -p tsconfig.json --module node16
tsc -p tsconfig-esm.json --moduleResolution bundler
bash ./scripts/fixup.sh
