Skip to content

🎥 Make videos programmatically with React

Internal: Commit generated files in new script

JonnyBurger9c98270f1d2d
diff --git a/new b/new
index 4f6fd400a4..d7669062f3 100755
--- a/new
+++ b/new
@@ -137,6 +137,16 @@ run(
projectRoot,
);
+if (gitInit.exitCode === 0) {
+ Bun.spawnSync(['git', 'add', '--all'], {cwd: projectRoot});
+ Bun.spawnSync(
+ ['git', 'commit', '--quiet', '-m', 'Install dependencies and agent skills'],
+ {
+ cwd: projectRoot,
+ },
+ );
+}
+
console.log(`\nNew Remotion project ready at ${projectRoot}`);
process.chdir(projectRoot);