@prisma/client-generator-ts 6.7.0-dev.50 → 6.7.0-dev.51

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 CHANGED
@@ -6436,15 +6436,24 @@ async function deleteOutputDir(outputDir) {
6436
6436
  if (files.length === 0) {
6437
6437
  return;
6438
6438
  }
6439
- if (!files.includes("client.ts") && !files.includes("client.mts") && !files.includes("client.cts")) {
6439
+ if (!files.includes("client.ts") && !files.includes("client.mts") && !files.includes("client.cts") && !files.includes("client.d.ts")) {
6440
6440
  throw new Error(
6441
6441
  `${outputDir} exists and is not empty but doesn't look like a generated Prisma Client. Please check your output path and remove the existing directory if you indeed want to generate the Prisma Client in that location.`
6442
6442
  );
6443
6443
  }
6444
6444
  await Promise.allSettled(
6445
- (await (0, import_fast_glob.glob)([`${outputDir}/**/*.{ts,mts,cts}`, `${outputDir}/*.node`, `${outputDir}/{query,schema}-engine-*`], {
6446
- followSymbolicLinks: false
6447
- })).map(import_promises.default.unlink)
6445
+ (await (0, import_fast_glob.glob)(
6446
+ [
6447
+ `${outputDir}/**/*.{js,ts,mts,cts,d.ts}`,
6448
+ `${outputDir}/*.node`,
6449
+ `${outputDir}/{query,schema}-engine-*`,
6450
+ `${outputDir}/package.json`,
6451
+ `${outputDir}/**/*.prisma`
6452
+ ],
6453
+ {
6454
+ followSymbolicLinks: false
6455
+ }
6456
+ )).map(import_promises.default.unlink)
6448
6457
  );
6449
6458
  } catch (error) {
6450
6459
  if (error.code !== "ENOENT") {
@@ -6461,7 +6470,7 @@ var import_get_tsconfig = require("get-tsconfig");
6461
6470
  var import_ts_pattern2 = require("ts-pattern");
6462
6471
 
6463
6472
  // package.json
6464
- var version = "6.7.0-dev.50";
6473
+ var version = "6.7.0-dev.51";
6465
6474
 
6466
6475
  // src/module-format.ts
6467
6476
  function parseModuleFormat(format) {
package/dist/index.mjs CHANGED
@@ -6435,15 +6435,24 @@ async function deleteOutputDir(outputDir) {
6435
6435
  if (files.length === 0) {
6436
6436
  return;
6437
6437
  }
6438
- if (!files.includes("client.ts") && !files.includes("client.mts") && !files.includes("client.cts")) {
6438
+ if (!files.includes("client.ts") && !files.includes("client.mts") && !files.includes("client.cts") && !files.includes("client.d.ts")) {
6439
6439
  throw new Error(
6440
6440
  `${outputDir} exists and is not empty but doesn't look like a generated Prisma Client. Please check your output path and remove the existing directory if you indeed want to generate the Prisma Client in that location.`
6441
6441
  );
6442
6442
  }
6443
6443
  await Promise.allSettled(
6444
- (await glob([`${outputDir}/**/*.{ts,mts,cts}`, `${outputDir}/*.node`, `${outputDir}/{query,schema}-engine-*`], {
6445
- followSymbolicLinks: false
6446
- })).map(fs.unlink)
6444
+ (await glob(
6445
+ [
6446
+ `${outputDir}/**/*.{js,ts,mts,cts,d.ts}`,
6447
+ `${outputDir}/*.node`,
6448
+ `${outputDir}/{query,schema}-engine-*`,
6449
+ `${outputDir}/package.json`,
6450
+ `${outputDir}/**/*.prisma`
6451
+ ],
6452
+ {
6453
+ followSymbolicLinks: false
6454
+ }
6455
+ )).map(fs.unlink)
6447
6456
  );
6448
6457
  } catch (error) {
6449
6458
  if (error.code !== "ENOENT") {
@@ -6460,7 +6469,7 @@ import { getTsconfig } from "get-tsconfig";
6460
6469
  import { match as match2 } from "ts-pattern";
6461
6470
 
6462
6471
  // package.json
6463
- var version = "6.7.0-dev.50";
6472
+ var version = "6.7.0-dev.51";
6464
6473
 
6465
6474
  // src/module-format.ts
6466
6475
  function parseModuleFormat(format) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@prisma/client-generator-ts",
3
- "version": "6.7.0-dev.50",
3
+ "version": "6.7.0-dev.51",
4
4
  "description": "This package is intended for Prisma's internal use",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",
@@ -34,14 +34,14 @@
34
34
  "pkg-up": "3.1.0",
35
35
  "pluralize": "8.0.0",
36
36
  "ts-pattern": "5.6.2",
37
- "@prisma/client-common": "6.7.0-dev.50",
38
- "@prisma/debug": "6.7.0-dev.50",
39
- "@prisma/generator": "6.7.0-dev.50",
40
- "@prisma/get-platform": "6.7.0-dev.50",
41
- "@prisma/fetch-engine": "6.7.0-dev.50",
42
- "@prisma/internals": "6.7.0-dev.50",
43
- "@prisma/ts-builders": "6.7.0-dev.50",
44
- "@prisma/dmmf": "6.7.0-dev.50"
37
+ "@prisma/client-common": "6.7.0-dev.51",
38
+ "@prisma/debug": "6.7.0-dev.51",
39
+ "@prisma/dmmf": "6.7.0-dev.51",
40
+ "@prisma/fetch-engine": "6.7.0-dev.51",
41
+ "@prisma/generator": "6.7.0-dev.51",
42
+ "@prisma/get-platform": "6.7.0-dev.51",
43
+ "@prisma/internals": "6.7.0-dev.51",
44
+ "@prisma/ts-builders": "6.7.0-dev.51"
45
45
  },
46
46
  "devDependencies": {
47
47
  "@types/pluralize": "0.0.33",