@prisma/generator 7.2.0 → 7.3.0-integration-prisma6-fix-cloudflare-engine.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/configuration.d.ts +17 -1
- package/package.json +2 -2
package/dist/configuration.d.ts
CHANGED
|
@@ -19,6 +19,7 @@ export interface GeneratorConfig {
|
|
|
19
19
|
};
|
|
20
20
|
binaryTargets: BinaryTargetsEnvValue[];
|
|
21
21
|
previewFeatures: string[];
|
|
22
|
+
envPaths?: EnvPaths;
|
|
22
23
|
sourceFilePath: string;
|
|
23
24
|
}
|
|
24
25
|
export interface EnvValue {
|
|
@@ -36,6 +37,8 @@ export interface DataSource {
|
|
|
36
37
|
name: string;
|
|
37
38
|
provider: ConnectorType;
|
|
38
39
|
activeProvider: ActiveConnectorType;
|
|
40
|
+
url: EnvValue;
|
|
41
|
+
directUrl?: EnvValue;
|
|
39
42
|
schemas: string[] | [];
|
|
40
43
|
sourceFilePath: string;
|
|
41
44
|
}
|
|
@@ -43,6 +46,16 @@ export type BinaryPaths = {
|
|
|
43
46
|
schemaEngine?: {
|
|
44
47
|
[binaryTarget: string]: string;
|
|
45
48
|
};
|
|
49
|
+
queryEngine?: {
|
|
50
|
+
[binaryTarget: string]: string;
|
|
51
|
+
};
|
|
52
|
+
libqueryEngine?: {
|
|
53
|
+
[binaryTarget: string]: string;
|
|
54
|
+
};
|
|
55
|
+
};
|
|
56
|
+
export type EnvPaths = {
|
|
57
|
+
rootEnvPath: string | null;
|
|
58
|
+
schemaEnvPath: string | undefined;
|
|
46
59
|
};
|
|
47
60
|
/** The options passed to the generator implementations */
|
|
48
61
|
export type GeneratorOptions = {
|
|
@@ -54,11 +67,14 @@ export type GeneratorOptions = {
|
|
|
54
67
|
datamodel: string;
|
|
55
68
|
version: string;
|
|
56
69
|
binaryPaths?: BinaryPaths;
|
|
70
|
+
postinstall?: boolean;
|
|
71
|
+
noEngine?: boolean;
|
|
57
72
|
noHints?: boolean;
|
|
58
73
|
allowNoModels?: boolean;
|
|
74
|
+
envPaths?: EnvPaths;
|
|
59
75
|
typedSql?: SqlQueryOutput[];
|
|
60
76
|
};
|
|
61
|
-
export type EngineType = 'schemaEngine';
|
|
77
|
+
export type EngineType = 'queryEngine' | 'libqueryEngine' | 'schemaEngine';
|
|
62
78
|
export type GeneratorManifest = {
|
|
63
79
|
prettyName?: string;
|
|
64
80
|
defaultOutput?: string;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@prisma/generator",
|
|
3
|
-
"version": "7.
|
|
3
|
+
"version": "7.3.0-integration-prisma6-fix-cloudflare-engine.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",
|
|
@@ -25,7 +25,7 @@
|
|
|
25
25
|
"license": "Apache-2.0",
|
|
26
26
|
"devDependencies": {
|
|
27
27
|
"vitest": "3.2.4",
|
|
28
|
-
"@prisma/dmmf": "7.
|
|
28
|
+
"@prisma/dmmf": "7.3.0-integration-prisma6-fix-cloudflare-engine.1"
|
|
29
29
|
},
|
|
30
30
|
"files": [
|
|
31
31
|
"dist"
|