Skip to content

🎥 Make videos programmatically with React

Update patch-package-json.ts

Jonny Burger5ad8bf6ca3b1
diff --git a/packages/create-video/src/patch-package-json.ts b/packages/create-video/src/patch-package-json.ts
index 240d056220..247c27bc26 100644
--- a/packages/create-video/src/patch-package-json.ts
+++ b/packages/create-video/src/patch-package-json.ts
@@ -45,11 +45,12 @@ export const patchPackageJson = (
}, {});
});
- const updateScripts = (scripts: Record<string, string>) => {
- for (const [key, value] of Object.entries(scripts)) {
- scripts[key] = value.replace(/remotion\b/g, 'remotionb');
+ const updateScripts = (scriptsToUpdate: Record<string, string>) => {
+ for (const [key, value] of Object.entries(scriptsToUpdate)) {
+ scriptsToUpdate[key] = value.replace(/remotion\b/g, 'remotionb');
}
- return scripts;
+
+ return scriptsToUpdate;
};
// update scripts to use "remotionb" instead of "remotion" if Bun is used