🎥 Make videos programmatically with React
docs: document mediabunny and zod support in CLI commands
Jonny Burger2aea3a265fc5
diff --git a/packages/docs/docs/cli/add.mdx b/packages/docs/docs/cli/add.mdxindex f8c335cbda..dd9948b215 100644--- a/packages/docs/docs/cli/add.mdx+++ b/packages/docs/docs/cli/add.mdx@@ -7,6 +7,8 @@ crumb: CLI ReferenceAdds one or more Remotion packages to your project with the same version as your other Remotion packages.+Also supports adding `zod` and `mediabunny` with the correct version for your Remotion installation.+```npx remotion add <package-name...>```@@ -27,7 +29,7 @@ npx remotion add @remotion/transitions @remotion/three @remotion/lottieThis command will:-1. Verify that all package names are valid Remotion packages+1. Verify that all package names are valid Remotion packages (or supported extra packages: `zod`, `mediabunny`)2. Check which packages are already installed (and skip them)3. Detect the version of your currently installed Remotion packages4. Install the specified packages with the matching versiondiff --git a/packages/docs/docs/cli/upgrade.mdx b/packages/docs/docs/cli/upgrade.mdxindex 3a9b53813d..4e821bdc50 100644--- a/packages/docs/docs/cli/upgrade.mdx+++ b/packages/docs/docs/cli/upgrade.mdx@@ -7,6 +7,8 @@ crumb: CLI ReferenceUpgrades all Remotion-related packages.+If `mediabunny` is installed, it will also be upgraded to the version [compatible with the new Remotion version](/docs/mediabunny/version).+```npx remotion upgrade```diff --git a/packages/docs/docs/cli/versions.mdx b/packages/docs/docs/cli/versions.mdxindex e058aad0b9..3eb86618ef 100644--- a/packages/docs/docs/cli/versions.mdx+++ b/packages/docs/docs/cli/versions.mdx@@ -9,6 +9,8 @@ crumb: CLI ReferencePrints out which versions of Remotion packages are installed.+Also checks if `zod` and [`mediabunny`](/docs/mediabunny/version) are installed with the correct versions.+```npx remotion versions```diff --git a/packages/docs/docs/mediabunny/version.mdx b/packages/docs/docs/mediabunny/version.mdxindex 698ccb803c..4744f8561e 100644--- a/packages/docs/docs/mediabunny/version.mdx+++ b/packages/docs/docs/mediabunny/version.mdx@@ -12,7 +12,11 @@ The following package of Remotion is using [Mediabunny](https://mediabunny.dev):The current version of Remotion uses version [`1.29.0`](https://github.com/Vanilagy/mediabunny/releases/tag/v1.29.0) of Mediabunny.-If you use Mediabunny as a direct dependency in your project, you can use this version number to not have two versions of Mediabunny installed.+If you use Mediabunny as a direct dependency in your project, you can install it with the correct version using:++```bash+npx remotion add mediabunny+```## Historydiff --git a/packages/docs/docs/schemas.mdx b/packages/docs/docs/schemas.mdxindex ada5dd85e3..00a3e80b22 100644--- a/packages/docs/docs/schemas.mdx+++ b/packages/docs/docs/schemas.mdx@@ -12,7 +12,9 @@ As an alternative to [using TypeScript types](/docs/parameterized-rendering) toIf you want to use this feature, install `[email protected]` and [`@remotion/zod-types`](/docs/zod-types) for Remotion-specific types:-<Installation pkg="@remotion/zod-types [email protected]" />+```bash+npx remotion add @remotion/zod-types zod+```## Defining a schema