@prisma/client-generator-ts 6.15.0-dev.7 → 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 +4 -4
- package/dist/index.mjs +4 -4
- package/package.json +9 -9
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("
|
|
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
|
|
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
|
|
4122
|
+
const __prisma__dirname = path.dirname(fileURLToPath(import.meta.url))
|
|
4123
4123
|
`;
|
|
4124
4124
|
}
|
|
4125
4125
|
return preamble;
|
|
@@ -6632,7 +6632,7 @@ var import_get_tsconfig = require("get-tsconfig");
|
|
|
6632
6632
|
var import_ts_pattern2 = require("ts-pattern");
|
|
6633
6633
|
|
|
6634
6634
|
// package.json
|
|
6635
|
-
var version = "6.15.0-
|
|
6635
|
+
var version = "6.15.0-integration-fix-prisma-client-dirname-aws-lambda.1";
|
|
6636
6636
|
|
|
6637
6637
|
// src/module-format.ts
|
|
6638
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("
|
|
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
|
|
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
|
|
4121
|
+
const __prisma__dirname = path.dirname(fileURLToPath(import.meta.url))
|
|
4122
4122
|
`;
|
|
4123
4123
|
}
|
|
4124
4124
|
return preamble;
|
|
@@ -6631,7 +6631,7 @@ import { getTsconfig } from "get-tsconfig";
|
|
|
6631
6631
|
import { match as match2 } from "ts-pattern";
|
|
6632
6632
|
|
|
6633
6633
|
// package.json
|
|
6634
|
-
var version = "6.15.0-
|
|
6634
|
+
var version = "6.15.0-integration-fix-prisma-client-dirname-aws-lambda.1";
|
|
6635
6635
|
|
|
6636
6636
|
// src/module-format.ts
|
|
6637
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-
|
|
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/
|
|
38
|
-
"@prisma/
|
|
39
|
-
"@prisma/
|
|
40
|
-
"@prisma/
|
|
41
|
-
"@prisma/generator": "6.15.0-
|
|
42
|
-
"@prisma/get-platform": "6.15.0-
|
|
43
|
-
"@prisma/
|
|
44
|
-
"@prisma/
|
|
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",
|