prisma-client-php 0.0.5 → 0.0.6

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 +4 -1
  2. package/package.json +1 -1
package/dist/init.js CHANGED
@@ -22,8 +22,11 @@ function copyRecursiveSync(src, dest, base = src, isPrismaPHP = false) {
22
22
  for (const entry of entries) {
23
23
  const srcPath = path.join(src, entry.name);
24
24
  const destPath = path.join(dest, entry.name);
25
+ // **Normalize Path to Avoid Issues on Windows**
26
+ const relativePath = path.relative(__dirname, srcPath);
27
+ const validatorFile = path.normalize("src/Lib/Validator.php");
25
28
  // **Skip Validator.php when isPrismaPHP is true**
26
- if (isPrismaPHP && srcPath.endsWith("src/Lib/Validator.php")) {
29
+ if (isPrismaPHP && relativePath === validatorFile) {
27
30
  console.log(`Skipping file: ${srcPath}`);
28
31
  continue;
29
32
  }
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.5",
4
+ "version": "0.0.6",
5
5
  "main": "index.js",
6
6
  "type": "module",
7
7
  "scripts": {