Conversation
…20260217.1 - Switch all packages from tsc to tsgo - Upgrade @typescript/native-preview from 7.0.0-dev.20260105.1 to 7.0.0-dev.20260217.1 - Add @typescript/native-preview as devDependency to all packages - Remove dotenv from example-videos (unused) Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Contributor
- Export types directly from @remotion/media-parser instead of via MediaParserInternalTypes - Update webcodecs to import types directly (SamplePosition, Writer, WriterInterface, etc.) - Export additional types from media-parser needed for tsgo declaration portability - Fix serverless-client re-exports with typeof annotations (same pattern as renderer) Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
- eslint-config-flat: Use Linter.Config[] instead of tseslint.ConfigArray - studio: Export AnyComposition from remotion, convert zod-dependent fns to declarations - lambda-client: Convert AWS client factories to function declarations - lambda: Extract parameter types, convert to function declarations - tailwind/tailwind-v4: Replace satisfies with explicit type annotations - template-still: Convert handler to function declaration - serverless-client: Add typeof annotations for re-exports Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
- docusaurus-plugin: Import BuildVisitor from 'unist-util-visit' (not /lib subpath) - three: Import VideoTexture from 'three' (not /src/textures subpath) - template-still: Convert handler to function declaration - lambda: Convert quotasIncreaseCommand to function declaration tsgo enforces exports field subpath restrictions that tsc ignored. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
v9 had no type declarations, causing tsgo TS7016 errors. v17 includes proper types in its exports field. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
v17 includes proper type declarations, so it works with tsgo. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Contributor
There was a problem hiding this comment.
Pull request overview
This PR migrates the entire Remotion monorepo from using the TypeScript compiler (tsc) to a new experimental TypeScript compiler called tsgo (from the @typescript/native-preview package). The migration affects 56 packages and includes:
Changes:
- Replace
tscwithtsgoin all build scripts across 56 packages - Upgrade
@typescript/native-previewfrom7.0.0-dev.20260105.1to7.0.0-dev.20260217.1 - Add explicit type exports in
@remotion/media-parserto make internal types publicly available, fixing TS2742 errors - Convert arrow function expressions to function declarations with explicit return types for better type inference with tsgo
- Update import paths (e.g.,
three/src/textures/VideoTexture→three,unist-util-visit/lib→unist-util-visit) - Remove unnecessary
@ts-expect-errorcomment inexample-videos - Update
dotenvdependency from9.0.2to17.3.1in multiple packages - Update Go dependency
golang.org/x/netfrom0.21.0to0.25.0 - Add Go version directive
go 1.24.3to Go modules
Reviewed changes
Copilot reviewed 112 out of 114 changed files in this pull request and generated no comments.
Show a summary per file
| File | Description |
|---|---|
| package.json (root) | Upgrade @typescript/native-preview to 7.0.0-dev.20260217.1 in catalog |
| 56 package.json files | Replace tsc with tsgo in make scripts, add @typescript/native-preview to devDependencies |
| packages/media-parser/src/index.ts | Export internal types publicly to avoid TS2742 errors |
| packages/webcodecs/src/writers/*.ts | Replace MediaParserInternalTypes with direct type imports |
| packages/webcodecs/src/create/*.ts | Replace MediaParserInternalTypes with direct type imports |
| packages/serverless-client/src/index.ts | Use explicit type annotations with eslint-disable to avoid TS2614 |
| packages/lambda-client/src/*.ts | Convert arrow functions to function declarations with explicit return types |
| packages/lambda/src/*.ts | Convert arrow functions to function declarations, extract inline types to named types |
| packages/studio/src/components/get-zod-if-possible.tsx | Convert arrow functions to function declarations |
| packages/studio/src/api/*.ts | Update type imports from _InternalTypes to direct imports |
| packages/core/src/index.ts | Export AnyComposition type |
| packages/tailwind*/src/enable.ts | Refactor type annotations for WebpackOverrideFn |
| packages/template-still/src/server/handler.ts | Convert arrow function to function declaration with explicit return type |
| packages/three/src/use-video-texture.ts | Fix import path from three/src/textures/VideoTexture to three |
| packages/docusaurus-plugin/src/shiki.ts | Fix import path from unist-util-visit/lib to unist-util-visit |
| packages/eslint-config-flat/src/index.ts | Replace tseslint.ConfigArray with Linter.Config[] |
| packages/example-videos/src/remote-videos.ts | Remove unnecessary @ts-expect-error comment |
| packages/example-videos/package.json | Move dotenv to devDependencies and upgrade to 17.3.1 |
| packages/example/package.json | Upgrade dotenv from 9.0.2 to 17.3.1 |
| packages/cli/package.json | Upgrade dotenv from 9.0.2 to 17.3.1 |
| packages/lambda-python/package.json | Upgrade dotenv from 9.0.2 to 17.3.1 |
| packages/lambda-go/go.mod | Add go version directive 1.24.3 |
| packages/lambda-go/go.sum | Update golang.org/x/net to 0.25.0 |
| packages/lambda-go-example/go.mod | Add go version directive 1.24.3 |
| bun.lock | Update dependencies to reflect all changes |
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
tsctotsgo@typescript/native-previewfrom7.0.0-dev.20260105.1to7.0.0-dev.20260217.1dotenvdependency fromexample-videosRemaining build errors
See PR description — several packages need fixes for TS2742 (declaration portability), TS2307 (missing modules), and TS7016 (missing type declarations).
🤖 Generated with Claude Code