remotion-upgrade
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
ChineseUpgrade Remotion
升级Remotion
-
Inspect the project manifests and lockfile to identify the package manager and workspaces. Preserve unrelated changes.
-
Determine whetheris locally available. If it is, run:
@remotion/clibashnpx remotion upgradeSkip the manual package upgrade below. -
Ifis not available, upgrade manually:
@remotion/cli- Get the latest stable Remotion version with .
npm view remotion version - Find every installed and
remotiondependency across the project and upgrade them all to that exact version. Preserve their dependency sections and the project's workspace or catalog conventions.@remotion/* - Read the current Mediabunny compatibility page and determine the Mediabunny version compatible with the target Remotion version. Upgrade every installed and
mediabunnypackage to the documented compatible version.@mediabunny/* - Run the project's package manager to update its lockfile.
- Get the latest stable Remotion version with
-
Update the installed Remotion skills:bash
npx remotion skills update -
Review the manifest and lockfile diff. Ensure all Remotion packages use one version and all installed Mediabunny packages use the compatible version. If the CLI is available, runas an additional check.
npx remotion versions
The Remotion releases contain the changelog and may be useful for summarizing relevant changes after the upgrade.
-
检查项目清单和锁定文件,以确定包管理器和工作区。保留无关更改。
-
判断是否本地可用。如果可用,运行:
@remotion/clibashnpx remotion upgrade跳过下方的手动包升级步骤。 -
如果不可用,则手动升级:
@remotion/cli- 使用获取Remotion的最新稳定版本。
npm view remotion version - 在项目中找到所有已安装的和
remotion依赖项,将它们全部升级到该确切版本。保留它们的依赖项部分以及项目的工作区或目录约定。@remotion/* - 查看当前的Mediabunny兼容性页面,确定与目标Remotion版本兼容的Mediabunny版本。将所有已安装的和
mediabunny包升级到文档中指定的兼容版本。@mediabunny/* - 运行项目的包管理器以更新其锁定文件。
- 使用
-
更新已安装的Remotion skills:bash
npx remotion skills update -
查看清单和锁定文件的差异。确保所有Remotion包使用同一版本,所有已安装的Mediabunny包使用兼容版本。如果CLI可用,可额外运行进行检查。
npx remotion versions
Remotion发布记录包含变更日志,在升级后总结相关变更时可能会有用。