@lousy-agents/cli 2.3.2 → 2.3.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 -11
- package/dist/index.js.map +1 -1
- package/package.json +4 -4
package/dist/index.js
CHANGED
|
@@ -30213,16 +30213,7 @@ var Eta = class extends Eta$1 {
|
|
|
30213
30213
|
|
|
30214
30214
|
|
|
30215
30215
|
|
|
30216
|
-
|
|
30217
|
-
* Checks if a file or directory exists
|
|
30218
|
-
*/ async function filesystem_structure_fileExists(path) {
|
|
30219
|
-
try {
|
|
30220
|
-
await (0,promises_.access)(path);
|
|
30221
|
-
return true;
|
|
30222
|
-
} catch {
|
|
30223
|
-
return false;
|
|
30224
|
-
}
|
|
30225
|
-
}
|
|
30216
|
+
|
|
30226
30217
|
/**
|
|
30227
30218
|
* Singleton Eta instance for template processing
|
|
30228
30219
|
*/ const eta = new Eta();
|
|
@@ -30250,7 +30241,7 @@ var Eta = class extends Eta$1 {
|
|
|
30250
30241
|
for (const node of structure.nodes){
|
|
30251
30242
|
const fullPath = (0,external_node_path_.join)(targetDir, node.path);
|
|
30252
30243
|
// Skip if already exists to preserve existing files/directories
|
|
30253
|
-
if (await
|
|
30244
|
+
if (await fileExists(fullPath)) {
|
|
30254
30245
|
consola.debug(`Skipping existing: ${fullPath}`);
|
|
30255
30246
|
continue;
|
|
30256
30247
|
}
|