Skip to content

🎥 Make videos programmatically with React

fix npm init video prob

Jonny Burger6d2ba151f530
diff --git a/packages/create-video/src/dotfiles.ts b/packages/create-video/src/dotfiles.ts
index 14c1d1f3c3..3f8fa40e35 100644
--- a/packages/create-video/src/dotfiles.ts
+++ b/packages/create-video/src/dotfiles.ts
@@ -5,7 +5,7 @@ const files = ['gitignore', 'eslintrc', 'prettierrc', 'dockerignore'];
export const turnIntoUnderscore = async (dir: string) => {
for (const file of files) {
- await execa(process.platform === 'win32' ? 'move' : 'mv', [
+ await execa(process.platform === 'win32' ? 'copy' : 'cp', [
path.join(dir, `.${file}`),
path.join(dir, `_${file}`),
]);
@@ -14,7 +14,7 @@ export const turnIntoUnderscore = async (dir: string) => {
export const turnIntoDot = async (dir: string) => {
for (const file of files) {
- await execa(process.platform === 'win32' ? 'move' : 'mv', [
+ await execa(process.platform === 'win32' ? 'copy' : 'cp', [
path.join(dir, `_${file}`),
path.join(dir, `.${file}`),
]);