prisma-client-php 0.0.36 → 0.0.38

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 +1 -7
  2. package/package.json +1 -1
package/dist/init.js CHANGED
@@ -135,11 +135,7 @@ function initPrisma() {
135
135
  async function installComposerDependencies(isPrismaPHP) {
136
136
  const currentDir = process.cwd();
137
137
  const composerJsonPath = path.join(currentDir, "composer.json");
138
- let composerJson;
139
- if (fs.existsSync(composerJsonPath)) {
140
- const composerJsonContent = fs.readFileSync(composerJsonPath, "utf8");
141
- composerJson = JSON.parse(composerJsonContent);
142
- } else {
138
+ if (!fs.existsSync(composerJsonPath)) {
143
139
  console.error("composer.json does not exist.");
144
140
  return;
145
141
  }
@@ -183,8 +179,6 @@ async function installComposerDependencies(isPrismaPHP) {
183
179
  } catch (error) {
184
180
  console.error("Error installing Composer dependencies:", error);
185
181
  }
186
- fs.writeFileSync(composerJsonPath, JSON.stringify(composerJson, null, 2));
187
- console.log("composer.json updated successfully.");
188
182
  }
189
183
  const readJsonFile = (filePath) => {
190
184
  const jsonData = fs.readFileSync(filePath, "utf8");
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.36",
4
+ "version": "0.0.38",
5
5
  "main": "index.js",
6
6
  "type": "module",
7
7
  "scripts": {