create-prisma-php-app 1.11.531 → 1.11.533
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 -15
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -212,6 +212,8 @@ 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;
|
|
215
217
|
if (!fs.existsSync(dest)) fs.mkdirSync(dest, { recursive: true });
|
|
216
218
|
fs.readdirSync(src).forEach((childItemName) => {
|
|
217
219
|
copyRecursiveSync(
|
|
@@ -241,13 +243,6 @@ async function executeCopy(baseDir, directoriesToCopy, answer) {
|
|
|
241
243
|
directoriesToCopy.forEach(({ srcDir, destDir }) => {
|
|
242
244
|
const sourcePath = path.join(__dirname, srcDir);
|
|
243
245
|
const destPath = path.join(baseDir, destDir);
|
|
244
|
-
if (!answer.prisma && destPath.includes("prisma-client-php")) return;
|
|
245
|
-
if (
|
|
246
|
-
!answer.websocket &&
|
|
247
|
-
(destPath.includes("src/Lib/Websocket") ||
|
|
248
|
-
destPath.includes("src\\Lib\\Websocket"))
|
|
249
|
-
)
|
|
250
|
-
return;
|
|
251
246
|
copyRecursiveSync(sourcePath, destPath, answer);
|
|
252
247
|
});
|
|
253
248
|
}
|
|
@@ -365,14 +360,6 @@ async function createDirectoryStructure(baseDir, answer) {
|
|
|
365
360
|
);
|
|
366
361
|
}
|
|
367
362
|
}
|
|
368
|
-
// if (answer.websocket) {
|
|
369
|
-
// filesToCopy.push({
|
|
370
|
-
// src: "/../composer-websocket.lock",
|
|
371
|
-
// dest: "/composer.lock",
|
|
372
|
-
// });
|
|
373
|
-
// } else {
|
|
374
|
-
// filesToCopy.push({ src: "/../composer.lock", dest: "/composer.lock" });
|
|
375
|
-
// }
|
|
376
363
|
const directoriesToCopy = [
|
|
377
364
|
{
|
|
378
365
|
srcDir: "/settings",
|