소스 검색

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}:`)));