create-prisma-php-app 3.1.19 → 3.1.21

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 CHANGED
@@ -33,15 +33,23 @@ async function installNpmDependencies(baseDir, dependencies, isDev = false) {
33
33
  });
34
34
  }
35
35
  async function installComposerDependencies(baseDir, dependencies) {
36
- console.log("Initializing new Composer project...");
36
+ console.log(
37
+ chalk.green(
38
+ `Composer project initialization: ${
39
+ updateAnswer?.isUpdate
40
+ ? "Updating existing project..."
41
+ : "Setting up new project..."
42
+ }`
43
+ )
44
+ );
37
45
  // Initialize a composer.json if it doesn't exist
38
46
  if (!fs.existsSync(path.join(baseDir, "composer.json"))) {
39
47
  execSync(
40
- `composer init -n --name="tsnc/prisma-php-app" --require="php:^8.2"`,
41
- {
42
- stdio: "inherit",
43
- cwd: baseDir,
44
- }
48
+ `composer init -n \
49
+ --name="tsnc/prisma-php-app" \
50
+ --require="php:^8.2" \
51
+ --version="1.0.0"`,
52
+ { stdio: "inherit", cwd: baseDir }
45
53
  );
46
54
  }
47
55
  // Log the dependencies being installed