create-prisma-php-app 1.11.528 → 1.11.529
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 +16 -5
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -239,8 +239,16 @@ function copyRecursiveSync(src, dest, answer) {
|
|
|
239
239
|
// Function to execute the recursive copy for entire directories
|
|
240
240
|
async function executeCopy(baseDir, directoriesToCopy, answer) {
|
|
241
241
|
directoriesToCopy.forEach(({ srcDir, destDir }) => {
|
|
242
|
-
if (
|
|
243
|
-
|
|
242
|
+
if (
|
|
243
|
+
!answer.prisma &&
|
|
244
|
+
(srcDir === "/prisma-client-php" || srcDir === "\\prisma-client-php")
|
|
245
|
+
)
|
|
246
|
+
return;
|
|
247
|
+
if (
|
|
248
|
+
!answer.websocket &&
|
|
249
|
+
(srcDir === "/src/Lib/Websocket" || srcDir === "\\src\\Lib\\Websocket")
|
|
250
|
+
)
|
|
251
|
+
return;
|
|
244
252
|
const sourcePath = path.join(__dirname, srcDir);
|
|
245
253
|
const destPath = path.join(baseDir, destDir);
|
|
246
254
|
copyRecursiveSync(sourcePath, destPath, answer);
|
|
@@ -823,9 +831,12 @@ async function main() {
|
|
|
823
831
|
JSON.stringify(prismaPhpConfig, null, 2),
|
|
824
832
|
{ flag: "w" }
|
|
825
833
|
);
|
|
826
|
-
execSync(
|
|
827
|
-
|
|
828
|
-
|
|
834
|
+
execSync(
|
|
835
|
+
`D:\\xampp\\php\\php.exe C:\\ProgramData\\ComposerSetup\\bin\\composer.phar install`,
|
|
836
|
+
{
|
|
837
|
+
stdio: "inherit",
|
|
838
|
+
}
|
|
839
|
+
);
|
|
829
840
|
console.log(
|
|
830
841
|
`${chalk.green("Success!")} Prisma PHP project successfully created in ${
|
|
831
842
|
answer.projectName
|