create-prisma-php-app 1.11.535 → 1.11.537
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 +14 -2
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -212,8 +212,6 @@ function copyRecursiveSync(src, dest, answer) {
|
|
|
212
212
|
const stats = exists && fs.statSync(src);
|
|
213
213
|
const isDirectory = exists && stats && stats.isDirectory();
|
|
214
214
|
if (isDirectory) {
|
|
215
|
-
if (!answer.websocket && dest.toLowerCase().includes("websocket")) return;
|
|
216
|
-
// if (!answer.prisma && dest.toLowerCase().includes("Prisma")) return;
|
|
217
215
|
if (!fs.existsSync(dest)) fs.mkdirSync(dest, { recursive: true });
|
|
218
216
|
fs.readdirSync(src).forEach((childItemName) => {
|
|
219
217
|
copyRecursiveSync(
|
|
@@ -243,6 +241,20 @@ async function executeCopy(baseDir, directoriesToCopy, answer) {
|
|
|
243
241
|
directoriesToCopy.forEach(({ srcDir, destDir }) => {
|
|
244
242
|
const sourcePath = path.join(__dirname, srcDir);
|
|
245
243
|
const destPath = path.join(baseDir, destDir);
|
|
244
|
+
const destLower = destPath.toLowerCase();
|
|
245
|
+
console.log("🚀 ~ directoriesToCopy.forEach ~ destLower:", destLower);
|
|
246
|
+
const destIncludeWebsocket = destLower.includes("src\\\\lib\\\\websocket");
|
|
247
|
+
console.log(
|
|
248
|
+
"🚀 ~ directoriesToCopy.forEach ~ destIncludeWebsocket:",
|
|
249
|
+
destIncludeWebsocket
|
|
250
|
+
);
|
|
251
|
+
if (
|
|
252
|
+
!answer.websocket &&
|
|
253
|
+
(destLower.includes("src\\\\lib\\\\websocket") ||
|
|
254
|
+
destLower.includes("src/lib/websocket"))
|
|
255
|
+
)
|
|
256
|
+
return;
|
|
257
|
+
// if (!answer.prisma && dest.toLowerCase().includes("Prisma")) return;
|
|
246
258
|
copyRecursiveSync(sourcePath, destPath, answer);
|
|
247
259
|
});
|
|
248
260
|
}
|