prisma-client-php 0.0.33 → 0.0.34

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/init.js +2 -4
  2. package/package.json +1 -1
package/dist/init.js CHANGED
@@ -143,7 +143,7 @@ async function installComposerDependencies(isPrismaPHP) {
143
143
  console.error("composer.json does not exist.");
144
144
  return;
145
145
  }
146
- let composerDependencies = [];
146
+ let composerDependencies = [composerPkg("calicastle/cuid")];
147
147
  if (isPrismaPHP) {
148
148
  const configPath = path.join(currentDir, "prisma-php.json");
149
149
  if (fs.existsSync(configPath)) {
@@ -159,12 +159,10 @@ async function installComposerDependencies(isPrismaPHP) {
159
159
  excludeFiles: localSettings.excludeFiles ?? [],
160
160
  excludeFilePath: excludeFiles ?? [],
161
161
  };
162
- composerDependencies.push(composerPkg("calicastle/cuid"));
163
162
  }
164
163
  } else {
165
164
  composerDependencies.push(
166
165
  composerPkg("ezyang/htmlpurifier"),
167
- composerPkg("calicastle/cuid"),
168
166
  composerPkg("symfony/uid"),
169
167
  composerPkg("brick/math")
170
168
  );
@@ -176,7 +174,7 @@ async function installComposerDependencies(isPrismaPHP) {
176
174
  // Prepare the composer require command
177
175
  const composerRequireCommand = `C:\\xampp\\php\\php.exe C:\\ProgramData\\ComposerSetup\\bin\\composer.phar require ${composerDependencies.join(
178
176
  " "
179
- )} --no-interaction`;
177
+ )}`;
180
178
  // Execute the composer require command
181
179
  execSync(composerRequireCommand, {
182
180
  stdio: "inherit",
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "prisma-client-php",
3
3
  "description": "Prisma Client PHP is an auto-generated query builder that enables type-safe database access in PHP.",
4
- "version": "0.0.33",
4
+ "version": "0.0.34",
5
5
  "main": "index.js",
6
6
  "type": "module",
7
7
  "scripts": {