create-prisma-php-app 1.11.533 → 1.11.534
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 +8 -6
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -212,8 +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
|
+
// if (!answer.websocket && dest.toLowerCase().includes("websocket")) return;
|
|
216
|
+
// if (!answer.prisma && dest.toLowerCase().includes("Prisma")) return;
|
|
217
217
|
if (!fs.existsSync(dest)) fs.mkdirSync(dest, { recursive: true });
|
|
218
218
|
fs.readdirSync(src).forEach((childItemName) => {
|
|
219
219
|
copyRecursiveSync(
|
|
@@ -365,15 +365,17 @@ async function createDirectoryStructure(baseDir, answer) {
|
|
|
365
365
|
srcDir: "/settings",
|
|
366
366
|
destDir: "/settings",
|
|
367
367
|
},
|
|
368
|
-
{
|
|
369
|
-
srcDir: "/prisma",
|
|
370
|
-
destDir: "/prisma",
|
|
371
|
-
},
|
|
372
368
|
{
|
|
373
369
|
srcDir: "/src",
|
|
374
370
|
destDir: "/src",
|
|
375
371
|
},
|
|
376
372
|
];
|
|
373
|
+
if (answer.prisma) {
|
|
374
|
+
directoriesToCopy.push({
|
|
375
|
+
srcDir: "/prisma",
|
|
376
|
+
destDir: "/prisma",
|
|
377
|
+
});
|
|
378
|
+
}
|
|
377
379
|
console.log("🚀 ~ directoriesToCopy:", directoriesToCopy);
|
|
378
380
|
filesToCopy.forEach(({ src, dest }) => {
|
|
379
381
|
const sourcePath = path.join(__dirname, src);
|