Bläddra i källkod

Don't explicitly rm before snapshot

Otherwise it removes the .git folders. Let the emptyDirectory logic kick in instead.
Loris Leiva 1 år sedan
förälder
incheckning
8e2ffa9c71
1 ändrade filer med 0 tillägg och 6 borttagningar
  1. 0 6
      scripts/snapshot.mjs

+ 0 - 6
scripts/snapshot.mjs

@@ -30,12 +30,6 @@ for (const projectName of projects) {
   // Go the submodules directory before creating each project.
   cd(projectsDirectory);
 
-  // Remove the project if it already exists.
-  const projectExists = fs.existsSync(projectName);
-  if (projectExists) {
-    fs.rmSync(projectName, { recursive: true, force: true });
-  }
-
   // Log project start.
   echo(chalk.blue(chalk.bold(`${projectName}:`)));