agroplan-ai-cli 1.0.2 → 1.0.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +2 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -591,7 +591,8 @@ async function setupCommand() {
|
|
|
591
591
|
try {
|
|
592
592
|
if (existsSync6(backendDir)) {
|
|
593
593
|
console.log(" \uD83D\uDDD1\uFE0F Removendo instala\xE7\xE3o anterior...");
|
|
594
|
-
|
|
594
|
+
const { rmSync } = await import("fs");
|
|
595
|
+
rmSync(backendDir, { recursive: true, force: true });
|
|
595
596
|
}
|
|
596
597
|
cpSync(templateDir, backendDir, { recursive: true });
|
|
597
598
|
console.log(" \u2705 Arquivos copiados com sucesso");
|