@prisma/client-generator-ts 6.15.0-dev.8 → 6.15.0-integration-fix-prisma-client-dirname-aws-lambda.2

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
@@ -4058,7 +4058,7 @@ function createClientFile(context, options) {
4058
4058
  const exports2 = [
4059
4059
  ts6.moduleExportFrom(context.importFileName("./enums")).asNamespace("$Enums"),
4060
4060
  ts6.moduleExport(
4061
- ts6.constDeclaration("PrismaClient").setValue(ts6.functionCall("$Class.getPrismaClientClass", [ts6.namedValue("__dirname")]))
4061
+ ts6.constDeclaration("PrismaClient").setValue(ts6.functionCall("$Class.getPrismaClientClass", [ts6.namedValue("__prisma__dirname")]))
4062
4062
  ).setDocComment(getPrismaClientClassDocComment(context)),
4063
4063
  ts6.moduleExport(
4064
4064
  ts6.typeDeclaration(
@@ -4111,7 +4111,7 @@ ${modelEnumsAliases.length > 0 ? `${modelEnumsAliases.join("\n\n")}` : ""}
4111
4111
  }
4112
4112
  function buildPreamble(edge, moduleFormat) {
4113
4113
  if (edge) {
4114
- return `const __dirname = '/'
4114
+ return `const __prisma__dirname = '/'
4115
4115
  `;
4116
4116
  }
4117
4117
  let preamble = `import * as process from 'node:process'
@@ -4119,7 +4119,10 @@ import * as path from 'node:path'
4119
4119
  `;
4120
4120
  if (moduleFormat === "esm") {
4121
4121
  preamble += `import { fileURLToPath } from 'node:url'
4122
- const __dirname = path.dirname(fileURLToPath(import.meta.url))
4122
+ const __prisma__dirname = path.dirname(fileURLToPath(import.meta.url))
4123
+ `;
4124
+ } else {
4125
+ preamble += `const __prisma__dirname = __dirname
4123
4126
  `;
4124
4127
  }
4125
4128
  return preamble;
@@ -6632,7 +6635,7 @@ var import_get_tsconfig = require("get-tsconfig");
6632
6635
  var import_ts_pattern2 = require("ts-pattern");
6633
6636
 
6634
6637
  // package.json
6635
- var version = "6.15.0-dev.8";
6638
+ var version = "6.15.0-integration-fix-prisma-client-dirname-aws-lambda.2";
6636
6639
 
6637
6640
  // src/module-format.ts
6638
6641
  function parseModuleFormat(format) {
package/dist/index.mjs CHANGED
@@ -4057,7 +4057,7 @@ function createClientFile(context, options) {
4057
4057
  const exports = [
4058
4058
  ts6.moduleExportFrom(context.importFileName("./enums")).asNamespace("$Enums"),
4059
4059
  ts6.moduleExport(
4060
- ts6.constDeclaration("PrismaClient").setValue(ts6.functionCall("$Class.getPrismaClientClass", [ts6.namedValue("__dirname")]))
4060
+ ts6.constDeclaration("PrismaClient").setValue(ts6.functionCall("$Class.getPrismaClientClass", [ts6.namedValue("__prisma__dirname")]))
4061
4061
  ).setDocComment(getPrismaClientClassDocComment(context)),
4062
4062
  ts6.moduleExport(
4063
4063
  ts6.typeDeclaration(
@@ -4110,7 +4110,7 @@ ${modelEnumsAliases.length > 0 ? `${modelEnumsAliases.join("\n\n")}` : ""}
4110
4110
  }
4111
4111
  function buildPreamble(edge, moduleFormat) {
4112
4112
  if (edge) {
4113
- return `const __dirname = '/'
4113
+ return `const __prisma__dirname = '/'
4114
4114
  `;
4115
4115
  }
4116
4116
  let preamble = `import * as process from 'node:process'
@@ -4118,7 +4118,10 @@ import * as path from 'node:path'
4118
4118
  `;
4119
4119
  if (moduleFormat === "esm") {
4120
4120
  preamble += `import { fileURLToPath } from 'node:url'
4121
- const __dirname = path.dirname(fileURLToPath(import.meta.url))
4121
+ const __prisma__dirname = path.dirname(fileURLToPath(import.meta.url))
4122
+ `;
4123
+ } else {
4124
+ preamble += `const __prisma__dirname = __dirname
4122
4125
  `;
4123
4126
  }
4124
4127
  return preamble;
@@ -6631,7 +6634,7 @@ import { getTsconfig } from "get-tsconfig";
6631
6634
  import { match as match2 } from "ts-pattern";
6632
6635
 
6633
6636
  // package.json
6634
- var version = "6.15.0-dev.8";
6637
+ var version = "6.15.0-integration-fix-prisma-client-dirname-aws-lambda.2";
6635
6638
 
6636
6639
  // src/module-format.ts
6637
6640
  function parseModuleFormat(format) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@prisma/client-generator-ts",
3
- "version": "6.15.0-dev.8",
3
+ "version": "6.15.0-integration-fix-prisma-client-dirname-aws-lambda.2",
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.15.0-dev.8",
38
- "@prisma/debug": "6.15.0-dev.8",
39
- "@prisma/dmmf": "6.15.0-dev.8",
40
- "@prisma/fetch-engine": "6.15.0-dev.8",
41
- "@prisma/generator": "6.15.0-dev.8",
42
- "@prisma/get-platform": "6.15.0-dev.8",
43
- "@prisma/internals": "6.15.0-dev.8",
44
- "@prisma/ts-builders": "6.15.0-dev.8"
37
+ "@prisma/client-common": "6.15.0-integration-fix-prisma-client-dirname-aws-lambda.2",
38
+ "@prisma/debug": "6.15.0-integration-fix-prisma-client-dirname-aws-lambda.2",
39
+ "@prisma/dmmf": "6.15.0-integration-fix-prisma-client-dirname-aws-lambda.2",
40
+ "@prisma/get-platform": "6.15.0-integration-fix-prisma-client-dirname-aws-lambda.2",
41
+ "@prisma/generator": "6.15.0-integration-fix-prisma-client-dirname-aws-lambda.2",
42
+ "@prisma/fetch-engine": "6.15.0-integration-fix-prisma-client-dirname-aws-lambda.2",
43
+ "@prisma/internals": "6.15.0-integration-fix-prisma-client-dirname-aws-lambda.2",
44
+ "@prisma/ts-builders": "6.15.0-integration-fix-prisma-client-dirname-aws-lambda.2"
45
45
  },
46
46
  "devDependencies": {
47
47
  "@types/pluralize": "0.0.33",