Remotion Upgrade

作者 remotion-dev32b241b97f4e无许可证收录于 2026年10月8日更新于 2026年10月8日

Upgrade Remotion, and related packages

AI 生成的概览

升级项目中的 Remotion 及相关包,统一版本并更新锁文件。

功能
指导代理升级项目中的 Remotion 及所有 @remotion/* 包。它会检查清单文件和锁文件以确定包管理器与工作区,然后运行 Remotion CLI 升级命令,或在 CLI 不可用时手动升级到最新稳定版本。它还会将 zod、mediabunny、@huggingface/transformers 等辅助包对齐到 @remotion/studio 要求的版本,更新锁文件并检查变更差异。
适用场景
当项目依赖 Remotion 且需要将 Remotion 相关包升级到一致且较新的版本时使用。也适用于需要将辅助包对齐到目标 Remotion 版本,或在升级后核对清单与锁文件的场景。不适用于无关的依赖更新。
运行要求
需要一个使用 npm/npx 的 Node.js 项目,并能访问 npm 仓库网络;不包含脚本,仅为操作说明。

Upgrade Remotion

  1. Inspect the project manifests and lockfile to identify the package manager and workspaces. Preserve unrelated changes.

  2. Determine whether @remotion/cli is locally available. If it is, run:

    bash
    npx remotion upgrade

    This also updates project-local Remotion skills. Skip the manual upgrade below.

  3. If @remotion/cli is not available, upgrade manually:

    • Get the latest stable Remotion version with npm view remotion version.
    • Find every installed remotion and @remotion/* dependency across the project and upgrade them all to that exact version. Preserve their dependency sections and the project's workspace or catalog conventions.
    • Read the @remotion/studio dependencies for the target Remotion version using npm view @remotion/studio@<version> dependencies --json. Align installed auxiliary packages such as zod, mediabunny, and @huggingface/transformers with the versions listed there. Use the mediabunny version for installed @mediabunny/* packages.
    • Run the project's package manager to update its lockfile.
  4. If @remotion/cli is not available, update the installed Remotion skills:

    bash
    npx skills update remotion-best-practices remotion-captions remotion-create remotion-docs remotion-interactivity remotion-maps remotion-markup remotion-multimedia remotion-render remotion-saas remotion-studio remotion-upgrade --yes
  5. Review the manifest and lockfile diff. Ensure all Remotion packages use one version and installed auxiliary packages use their recommended versions. If the CLI is available, run npx remotion versions as an additional check.

The Remotion releases contain the changelog and may be useful for summarizing relevant changes after the upgrade.

来源与署名

来源:remotion-dev/skills位于skills/remotion-upgrade提交32b241b

许可证: 无许可证

内容归原作者所有。SourceWeft 从公开仓库中收录这些内容。

举报或申请下架