<!--
title: Run Type Resolution Checks
domain: app-frameworks
topic: CI/CD
language: Json
source: colinhacks/zod
updated: 2025-04-09
url: https://awesomereviewers.com/reviewers/zod-run-type-resolution-checks/
-->

Add a CI/pre-release gate that validates your published package’s JavaScript + TypeScript type resolution. Use `@arethetypeswrong/cli` to catch broken `exports`/subpath import mappings across CJS/ESM and Node versions, and configure it to your supported runtime matrix (e.g., ignore known/unavoidable legacy Node failures via `--profile`).

Example (package-level CI step):
```bash
# install in repo (or as a package devDependency)
# npx @arethetypeswrong/cli --profile node16
# or, if you want multiple profiles:
# npx @arethetypeswrong/cli --profile node16 --profile bundler
```

Apply this when you change `package.json` fields like `exports`, `main/module/types`, or build outputs, so `latest`/release candidates are actually safe for consumers relying on subpath imports.
