Преглед изворни кода

Don't explicitly rm before snapshot

Otherwise it removes the .git folders. Let the emptyDirectory logic kick in instead.
Loris Leiva пре 1 година
родитељ
комит
8e2ffa9c71
1 измењених фајлова са 0 додато и 6 уклоњено
  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}:`)));