Typecheck the Turbopack ECMAScript runtime in CI (#98422)
### What? Integrate the Turbopack ECMAScript runtime package checks into the repository TypeScript task graph and resolve the latent type errors those checks expose. ### Why? The runtime package already had checks for its environment-specific TypeScript projects, but CI never executed them. This allowed its public runtime context types to diverge from their implementations, including the `EsmExport` binding representation. ### How? The package now participates in the existing Turbo `typescript` task used by CI. Its package-local Turbo configuration builds workspace dependencies first, ensuring the React Refresh type output is available on clean checkouts without adding build dependencies to every repository typecheck. The runtime declarations now reflect the actual flat ESM binding format and HMR behavior. Browser development references and return types also mirror the runtime files and concatenation order used by the Rust runtime builder. Turbopack snapshots that embed these runtime sources and source maps are regenerated to match. ### Verification - `cargo nextest run -p turbopack-tests -E 'test(snapshot)'` (125 passed) - `pnpm --dir turbopack/crates/turbopack-ecmascript-runtime/js check` - `pnpm lint-typescript --filter=@vercel/turbopack-ecmascript-runtime --log-order=stream --force` after removing `packages/react-refresh-utils/dist` - Focused Prettier and ESLint checks - `git diff --check` <!-- NEXT_JS_LLM --> <!-- fleet 56074f5a-b0e2-4b27-ac56-a2b6cebe3c8e --> --------- Co-authored-by:vercel-fleet-prod[bot] <318278635+vercel-fleet-prod[bot]@users.noreply.github.com> Co-authored-by:
Tobias Koppers <1365881+sokra@users.noreply.github.com>
Showing
This source diff could not be displayed because it is too large.
You can
view the blob
instead.
This source diff could not be displayed because it is too large.
You can
view the blob
instead.
This diff is collapsed.
This source diff could not be displayed because it is too large.
You can
view the blob
instead.
This source diff could not be displayed because it is too large.
You can
view the blob
instead.
This source diff could not be displayed because it is too large.
You can
view the blob
instead.
This source diff could not be displayed because it is too large.
You can
view the blob
instead.
This source diff could not be displayed because it is too large.
You can
view the blob
instead.
This source diff could not be displayed because it is too large.
You can
view the blob
instead.
Please
register
or
sign in
to comment