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 +14 -6
- package/dist/src/app/js/index.js +1 -1
- package/package.json +1 -1
- package/vendor/autoload.php +25 -25
- package/vendor/composer/ClassLoader.php +579 -579
- package/vendor/composer/InstalledVersions.php +359 -359
- package/vendor/composer/LICENSE +21 -21
- package/vendor/composer/autoload_classmap.php +10 -10
- package/vendor/composer/autoload_namespaces.php +9 -9
- package/vendor/composer/autoload_real.php +38 -38
- package/vendor/composer/installed.json +825 -825
- package/vendor/composer/installed.php +132 -132
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(
|
|
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
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
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
|