opencode-manifold 0.4.15 → 0.4.16
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/tui.js +7 -9
- package/package.json +1 -1
package/dist/tui.js
CHANGED
|
@@ -2793,23 +2793,21 @@ var tui = async (api) => {
|
|
|
2793
2793
|
});
|
|
2794
2794
|
};
|
|
2795
2795
|
async function copyMissingFiles(src, dest) {
|
|
2796
|
-
|
|
2797
|
-
const { join: join2 } = await import("path");
|
|
2798
|
-
if (!existsSync2(src))
|
|
2796
|
+
if (!existsSync(src))
|
|
2799
2797
|
return [];
|
|
2800
|
-
await
|
|
2798
|
+
await mkdir(dest, { recursive: true });
|
|
2801
2799
|
const copied = [];
|
|
2802
|
-
const entries = await
|
|
2800
|
+
const entries = await readdir(src, { withFileTypes: true });
|
|
2803
2801
|
for (const entry of entries) {
|
|
2804
|
-
const srcPath =
|
|
2805
|
-
const destPath =
|
|
2802
|
+
const srcPath = join(src, entry.name);
|
|
2803
|
+
const destPath = join(dest, entry.name);
|
|
2806
2804
|
if (entry.isDirectory()) {
|
|
2807
2805
|
const subCopied = await copyMissingFiles(srcPath, destPath);
|
|
2808
2806
|
if (subCopied.length > 0) {
|
|
2809
2807
|
copied.push(entry.name);
|
|
2810
2808
|
}
|
|
2811
|
-
} else if (!
|
|
2812
|
-
await
|
|
2809
|
+
} else if (!existsSync(destPath)) {
|
|
2810
|
+
await writeFile(destPath, await readFile(srcPath));
|
|
2813
2811
|
copied.push(entry.name);
|
|
2814
2812
|
}
|
|
2815
2813
|
}
|