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.
Files changed (2) hide show
  1. package/dist/index.js +16 -5
  2. 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 (!answer.prisma && srcDir === "/prisma-client-php") return;
243
- if (!answer.websocket && srcDir === "/src/Lib/Websocket") return;
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(`php C:\\ProgramData\\ComposerSetup\\bin\\composer.phar install`, {
827
- stdio: "inherit",
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
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "create-prisma-php-app",
3
- "version": "1.11.528",
3
+ "version": "1.11.529",
4
4
  "description": "Prisma-PHP: A Revolutionary Library Bridging PHP with Prisma ORM",
5
5
  "main": "dist/index.js",
6
6
  "type": "module",