create-prisma-php-app 2.0.7 → 2.0.9

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 +3 -7
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -32,11 +32,11 @@ async function installNpmDependencies(baseDir, dependencies, isDev = false) {
32
32
  cwd: baseDir,
33
33
  });
34
34
  }
35
- async function installComposerDependencies(baseDir, dependencies, projectName) {
35
+ async function installComposerDependencies(baseDir, dependencies) {
36
36
  console.log("Initializing new Composer project...");
37
37
  // Initialize a composer.json if it doesn't exist
38
38
  if (!fs.existsSync(path.join(baseDir, "composer.json"))) {
39
- execSync(`composer init -n --name="${projectName}" --require="php:^8.2"`, {
39
+ execSync(`composer init -n --name="vendor/package" --require="php:^8.2"`, {
40
40
  stdio: "inherit",
41
41
  cwd: baseDir,
42
42
  });
@@ -224,11 +224,7 @@ async function main() {
224
224
  execSync("npm install -g prisma-client-php", { stdio: "inherit" });
225
225
  }
226
226
  await installNpmDependencies(projectPath, npmDependencies, true);
227
- await installComposerDependencies(
228
- projectPath,
229
- composerDependencies,
230
- projectName
231
- );
227
+ await installComposerDependencies(projectPath, composerDependencies);
232
228
  if (!projectName) {
233
229
  execSync("npx tsc --init", { stdio: "inherit" });
234
230
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "create-prisma-php-app",
3
- "version": "2.0.7",
3
+ "version": "2.0.9",
4
4
  "description": "Prisma-PHP: A Revolutionary Library Bridging PHP with Prisma ORM",
5
5
  "main": "dist/index.js",
6
6
  "type": "module",