create-prisma-php-app 1.11.523 → 1.11.525

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 +11 -3
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -832,12 +832,20 @@ async function main() {
832
832
  console.log("currentDir by process", process.cwd());
833
833
  console.log("currentDir", currentDir);
834
834
  console.log("projectPath", projectPath);
835
- process.chdir(projectPath);
836
- console.log("currentDir", process.cwd());
835
+ // process.chdir(projectPath);
836
+ // console.log("currentDir", process.cwd());
837
837
  // execSync(`composer install`, { stdio: "inherit" });
838
838
  // execSync(`php composer install`, { stdio: "inherit" });
839
- execSync(`D:\\xampp\\php\\php.exe composer install`, { stdio: "inherit" });
839
+ // execSync(`D:\\xampp\\php\\php.exe composer install`, { stdio: "inherit" });
840
840
  // execSync(`D:\\xampp\\php\\php.exe php composer install`, { stdio: "inherit" });
841
+ // Use the full path to the PHP executable and the Composer.phar
842
+ // execSync(
843
+ // `D:\\xampp\\php\\php.exe C:\\ProgramData\\ComposerSetup\\bin\\composer.phar install`,
844
+ // { stdio: "inherit" }
845
+ // );
846
+ execSync(`php C:\\ProgramData\\ComposerSetup\\bin\\composer.phar install`, {
847
+ stdio: "inherit",
848
+ });
841
849
  console.log(
842
850
  `${chalk.green("Success!")} Prisma PHP project successfully created in ${
843
851
  answer.projectName
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "create-prisma-php-app",
3
- "version": "1.11.523",
3
+ "version": "1.11.525",
4
4
  "description": "Prisma-PHP: A Revolutionary Library Bridging PHP with Prisma ORM",
5
5
  "main": "dist/index.js",
6
6
  "type": "module",