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 從公開儲存庫中收錄這些內容。

檢舉或申請下架