🎥 Make videos programmatically with React
update list of remotion packages and add a test for it
Jonny Burger97a765e19abe
diff --git a/packages/cli/src/index.tsx b/packages/cli/src/index.tsxindex 460186b79d..6bcf583f77 100644--- a/packages/cli/src/index.tsx+++ b/packages/cli/src/index.tsx@@ -15,6 +15,7 @@ import {getImageFormat} from './image-formats';import {initializeCli} from './initialize-cli';import {installCommand, INSTALL_COMMAND} from './install';import {lambdaCommand} from './lambda-command';+import {listOfRemotionPackages} from './list-of-remotion-packages';import {Log} from './log';import {makeProgressBar} from './make-progress-bar';import {BooleanFlags, parsedCli, quietFlagProvided} from './parse-command-line';@@ -114,4 +115,5 @@ export const CliInternals = {findEntryPoint,getImageFormat,printCompositions,+ listOfRemotionPackages,};diff --git a/packages/cli/src/list-of-remotion-packages.ts b/packages/cli/src/list-of-remotion-packages.tsindex 1fd1994416..095a47b5a9 100644--- a/packages/cli/src/list-of-remotion-packages.ts+++ b/packages/cli/src/list-of-remotion-packages.ts@@ -1,3 +1,4 @@+// Keep in sync with create-videoexport const listOfRemotionPackages = ['@remotion/bundler','@remotion/cli',diff --git a/packages/create-video/src/index.ts b/packages/create-video/src/index.tsindex 06e91785a7..9c361bb36c 100644--- a/packages/create-video/src/index.ts+++ b/packages/create-video/src/index.ts@@ -1,7 +1,9 @@+import {listOfRemotionPackages} from './patch-package-json';import {FEATURED_TEMPLATES} from './templates';export const CreateVideoInternals = {FEATURED_TEMPLATES,+ listOfRemotionPackages,};export {Template} from './templates';diff --git a/packages/create-video/src/patch-package-json.ts b/packages/create-video/src/patch-package-json.tsindex 453b148dc8..3aecb77cd1 100644--- a/packages/create-video/src/patch-package-json.ts+++ b/packages/create-video/src/patch-package-json.ts@@ -6,6 +6,7 @@ export const listOfRemotionPackages = ['@remotion/bundler','@remotion/cli','@remotion/eslint-config',+ '@remotion/eslint-plugin','@remotion/renderer','@remotion/skia','@remotion/lottie',@@ -20,6 +21,7 @@ export const listOfRemotionPackages = ['@remotion/preload','@remotion/three','@remotion/gif',+ '@remotion/shapes','remotion',];diff --git a/packages/it-tests/package.json b/packages/it-tests/package.jsonindex 1b937c05f5..897fef41e0 100644--- a/packages/it-tests/package.json+++ b/packages/it-tests/package.json@@ -13,6 +13,7 @@"@remotion/cli": "3.3.39","@remotion/lambda": "3.3.39","@remotion/renderer": "3.3.39",+ "create-video": "3.3.39","@types/sharp": "^0.28.5","execa": "5.1.1","remotion": "3.3.39",diff --git a/packages/it-tests/src/package-sync.test.ts b/packages/it-tests/src/package-sync.test.tsnew file mode 100644index 0000000000..136564bfe7--- /dev/null+++ b/packages/it-tests/src/package-sync.test.ts@@ -0,0 +1,10 @@+import { expect, test } from "vitest";++import { CliInternals } from "@remotion/cli";+import { CreateVideoInternals } from "create-video";++test("create-video and cli should have the same list of packages", () => {+ expect(CreateVideoInternals.listOfRemotionPackages).toEqual(+ CliInternals.listOfRemotionPackages+ );+});diff --git a/pnpm-lock.yaml b/pnpm-lock.yamlindex 05bd36840b..7c0c700c01 100644--- a/pnpm-lock.yaml+++ b/pnpm-lock.yaml@@ -599,6 +599,7 @@ importers:'@remotion/lambda': 3.3.39'@remotion/renderer': 3.3.39'@types/sharp': ^0.28.5+ create-video: 3.3.39execa: 5.1.1remotion: 3.3.39sharp: 0.30.6@@ -611,6 +612,7 @@ importers:'@remotion/lambda': link:../lambda'@remotion/renderer': link:../renderer'@types/sharp': 0.28.6+ create-video: link:../create-videoexeca: 5.1.1remotion: link:../coresharp: 0.30.6