prisma-client-php 0.0.36 → 0.0.37

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 +5 -0
  2. package/package.json +1 -1
package/dist/init.js CHANGED
@@ -133,8 +133,11 @@ function initPrisma() {
133
133
  }
134
134
  }
135
135
  async function installComposerDependencies(isPrismaPHP) {
136
+ console.log("🚀 ~ isPrismaPHP:", isPrismaPHP);
136
137
  const currentDir = process.cwd();
138
+ console.log("🚀 ~ currentDir:", currentDir);
137
139
  const composerJsonPath = path.join(currentDir, "composer.json");
140
+ console.log("🚀 ~ composerJsonPath:", composerJsonPath);
138
141
  let composerJson;
139
142
  if (fs.existsSync(composerJsonPath)) {
140
143
  const composerJsonContent = fs.readFileSync(composerJsonPath, "utf8");
@@ -146,8 +149,10 @@ async function installComposerDependencies(isPrismaPHP) {
146
149
  let composerDependencies = [composerPkg("calicastle/cuid")];
147
150
  if (isPrismaPHP) {
148
151
  const configPath = path.join(currentDir, "prisma-php.json");
152
+ console.log("🚀 ~ configPath:", configPath);
149
153
  if (fs.existsSync(configPath)) {
150
154
  const localSettings = readJsonFile(configPath);
155
+ console.log("🚀 ~ localSettings:", localSettings);
151
156
  let excludeFiles = [];
152
157
  localSettings.excludeFiles?.map((file) => {
153
158
  const filePath = path.join(currentDir, file);
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.37",
5
5
  "main": "index.js",
6
6
  "type": "module",
7
7
  "scripts": {