@prisma/client-generator-ts 6.7.0-dev.34 → 6.7.0-dev.35

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
@@ -6106,6 +6106,21 @@ function buildTypedSql({
6106
6106
  return fileMap;
6107
6107
  }
6108
6108
 
6109
+ // src/utils/addPreamble.ts
6110
+ var generatedCodePreamble = `
6111
+ /* !!! This is code generated by Prisma. Do not edit directly. !!! */
6112
+ /* eslint-disable */
6113
+ `;
6114
+ function addPreambleToTSFiles(fileMap) {
6115
+ for (const [key, value] of Object.entries(fileMap)) {
6116
+ if (typeof value === "string" && key.endsWith(".ts")) {
6117
+ fileMap[key] = generatedCodePreamble + value;
6118
+ } else if (typeof value === "object" && value !== null) {
6119
+ addPreambleToTSFiles(value);
6120
+ }
6121
+ }
6122
+ }
6123
+
6109
6124
  // src/generateClient.ts
6110
6125
  var DenylistError = class extends Error {
6111
6126
  constructor(message) {
@@ -6179,6 +6194,7 @@ function buildClient({
6179
6194
  })
6180
6195
  };
6181
6196
  }
6197
+ addPreambleToTSFiles(fileMap);
6182
6198
  return {
6183
6199
  fileMap,
6184
6200
  // a map of file names to their contents
@@ -6439,7 +6455,7 @@ var import_get_tsconfig = require("get-tsconfig");
6439
6455
  var import_ts_pattern2 = require("ts-pattern");
6440
6456
 
6441
6457
  // package.json
6442
- var version = "6.7.0-dev.34";
6458
+ var version = "6.7.0-dev.35";
6443
6459
 
6444
6460
  // src/module-format.ts
6445
6461
  function parseModuleFormat(format) {
package/dist/index.mjs CHANGED
@@ -6105,6 +6105,21 @@ function buildTypedSql({
6105
6105
  return fileMap;
6106
6106
  }
6107
6107
 
6108
+ // src/utils/addPreamble.ts
6109
+ var generatedCodePreamble = `
6110
+ /* !!! This is code generated by Prisma. Do not edit directly. !!! */
6111
+ /* eslint-disable */
6112
+ `;
6113
+ function addPreambleToTSFiles(fileMap) {
6114
+ for (const [key, value] of Object.entries(fileMap)) {
6115
+ if (typeof value === "string" && key.endsWith(".ts")) {
6116
+ fileMap[key] = generatedCodePreamble + value;
6117
+ } else if (typeof value === "object" && value !== null) {
6118
+ addPreambleToTSFiles(value);
6119
+ }
6120
+ }
6121
+ }
6122
+
6108
6123
  // src/generateClient.ts
6109
6124
  var DenylistError = class extends Error {
6110
6125
  constructor(message) {
@@ -6178,6 +6193,7 @@ function buildClient({
6178
6193
  })
6179
6194
  };
6180
6195
  }
6196
+ addPreambleToTSFiles(fileMap);
6181
6197
  return {
6182
6198
  fileMap,
6183
6199
  // a map of file names to their contents
@@ -6438,7 +6454,7 @@ import { getTsconfig } from "get-tsconfig";
6438
6454
  import { match as match2 } from "ts-pattern";
6439
6455
 
6440
6456
  // package.json
6441
- var version = "6.7.0-dev.34";
6457
+ var version = "6.7.0-dev.35";
6442
6458
 
6443
6459
  // src/module-format.ts
6444
6460
  function parseModuleFormat(format) {
@@ -0,0 +1,5 @@
1
+ import { FileMap } from '../generateClient';
2
+ /**
3
+ * To ensure it is clear that this is generated code and shall not be lint checked.
4
+ */
5
+ export declare function addPreambleToTSFiles(fileMap: FileMap): void;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@prisma/client-generator-ts",
3
- "version": "6.7.0-dev.34",
3
+ "version": "6.7.0-dev.35",
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.34",
38
- "@prisma/dmmf": "6.7.0-dev.34",
39
- "@prisma/fetch-engine": "6.7.0-dev.34",
40
- "@prisma/generator": "6.7.0-dev.34",
41
- "@prisma/debug": "6.7.0-dev.34",
42
- "@prisma/internals": "6.7.0-dev.34",
43
- "@prisma/get-platform": "6.7.0-dev.34",
44
- "@prisma/ts-builders": "6.7.0-dev.34"
37
+ "@prisma/client-common": "6.7.0-dev.35",
38
+ "@prisma/dmmf": "6.7.0-dev.35",
39
+ "@prisma/fetch-engine": "6.7.0-dev.35",
40
+ "@prisma/generator": "6.7.0-dev.35",
41
+ "@prisma/get-platform": "6.7.0-dev.35",
42
+ "@prisma/debug": "6.7.0-dev.35",
43
+ "@prisma/internals": "6.7.0-dev.35",
44
+ "@prisma/ts-builders": "6.7.0-dev.35"
45
45
  },
46
46
  "devDependencies": {
47
47
  "@types/pluralize": "0.0.33",