(path: string)
| 767 | } |
| 768 | |
| 769 | function isEmpty(path: string) { |
| 770 | const files = fs.readdirSync(path) |
| 771 | return files.length === 0 || (files.length === 1 && files[0] === '.git') |
| 772 | } |
| 773 | |
| 774 | function emptyDir(dir: string) { |
| 775 | if (!fs.existsSync(dir)) { |