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

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,7 @@ 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
4123
  `;
4124
4124
  }
4125
4125
  return preamble;
@@ -6606,6 +6606,7 @@ async function deleteOutputDir(outputDir) {
6606
6606
  (await (0, import_fast_glob.glob)(
6607
6607
  [
6608
6608
  `${outputDir}/**/*.{js,ts,mts,cts,d.ts}`,
6609
+ `${outputDir}/**/*.wasm`,
6609
6610
  `${outputDir}/*.node`,
6610
6611
  `${outputDir}/{query,schema}-engine-*`,
6611
6612
  `${outputDir}/package.json`,
@@ -6631,7 +6632,7 @@ var import_get_tsconfig = require("get-tsconfig");
6631
6632
  var import_ts_pattern2 = require("ts-pattern");
6632
6633
 
6633
6634
  // package.json
6634
- var version = "6.15.0-dev.6";
6635
+ var version = "6.15.0-integration-fix-prisma-client-dirname-aws-lambda.1";
6635
6636
 
6636
6637
  // src/module-format.ts
6637
6638
  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,7 @@ 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
4122
  `;
4123
4123
  }
4124
4124
  return preamble;
@@ -6605,6 +6605,7 @@ async function deleteOutputDir(outputDir) {
6605
6605
  (await glob(
6606
6606
  [
6607
6607
  `${outputDir}/**/*.{js,ts,mts,cts,d.ts}`,
6608
+ `${outputDir}/**/*.wasm`,
6608
6609
  `${outputDir}/*.node`,
6609
6610
  `${outputDir}/{query,schema}-engine-*`,
6610
6611
  `${outputDir}/package.json`,
@@ -6630,7 +6631,7 @@ import { getTsconfig } from "get-tsconfig";
6630
6631
  import { match as match2 } from "ts-pattern";
6631
6632
 
6632
6633
  // package.json
6633
- var version = "6.15.0-dev.6";
6634
+ var version = "6.15.0-integration-fix-prisma-client-dirname-aws-lambda.1";
6634
6635
 
6635
6636
  // src/module-format.ts
6636
6637
  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.6",
3
+ "version": "6.15.0-integration-fix-prisma-client-dirname-aws-lambda.1",
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.6",
38
- "@prisma/debug": "6.15.0-dev.6",
39
- "@prisma/dmmf": "6.15.0-dev.6",
40
- "@prisma/get-platform": "6.15.0-dev.6",
41
- "@prisma/fetch-engine": "6.15.0-dev.6",
42
- "@prisma/generator": "6.15.0-dev.6",
43
- "@prisma/internals": "6.15.0-dev.6",
44
- "@prisma/ts-builders": "6.15.0-dev.6"
37
+ "@prisma/client-common": "6.15.0-integration-fix-prisma-client-dirname-aws-lambda.1",
38
+ "@prisma/debug": "6.15.0-integration-fix-prisma-client-dirname-aws-lambda.1",
39
+ "@prisma/dmmf": "6.15.0-integration-fix-prisma-client-dirname-aws-lambda.1",
40
+ "@prisma/fetch-engine": "6.15.0-integration-fix-prisma-client-dirname-aws-lambda.1",
41
+ "@prisma/generator": "6.15.0-integration-fix-prisma-client-dirname-aws-lambda.1",
42
+ "@prisma/get-platform": "6.15.0-integration-fix-prisma-client-dirname-aws-lambda.1",
43
+ "@prisma/ts-builders": "6.15.0-integration-fix-prisma-client-dirname-aws-lambda.1",
44
+ "@prisma/internals": "6.15.0-integration-fix-prisma-client-dirname-aws-lambda.1"
45
45
  },
46
46
  "devDependencies": {
47
47
  "@types/pluralize": "0.0.33",