create-prisma-php-app 1.6.40 → 1.6.42
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 +3 -3
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -168,9 +168,9 @@ function copyRecursiveSync(src, dest) {
|
|
|
168
168
|
const isDirectory = exists && stats && stats.isDirectory();
|
|
169
169
|
console.log("🚀 ~ copyRecursiveSync ~ isDirectory:", isDirectory);
|
|
170
170
|
if (isDirectory) {
|
|
171
|
-
if (fs.existsSync(dest)) {
|
|
172
|
-
|
|
173
|
-
}
|
|
171
|
+
// if (fs.existsSync(dest)) {
|
|
172
|
+
// fs.rmSync(dest, { recursive: true, force: true }); // Remove the directory if it exists
|
|
173
|
+
// }
|
|
174
174
|
fs.mkdirSync(dest, { recursive: true }); // Recreate the directory
|
|
175
175
|
fs.readdirSync(src).forEach((childItemName) => {
|
|
176
176
|
copyRecursiveSync(path.join(src, childItemName), path.join(dest, childItemName));
|