@prisma/config 6.5.0-dev.8 → 6.5.0-dev.80
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.d.ts +282 -6
- package/dist/index.js +317 -272
- package/package.json +4 -4
- package/dist/PrismaConfig.d.ts +0 -109
- package/dist/PrismaConfig.js +0 -22215
- package/dist/defaultConfig.d.ts +0 -8
- package/dist/defaultConfig.js +0 -22197
- package/dist/defaultTestConfig.d.ts +0 -6
- package/dist/defaultTestConfig.js +0 -22197
- package/dist/defineConfig.d.ts +0 -6
- package/dist/defineConfig.js +0 -22398
- package/dist/loadConfigFromFile.d.ts +0 -44
- package/dist/loadConfigFromFile.js +0 -22667
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@prisma/config",
|
|
3
|
-
"version": "6.5.0-dev.
|
|
3
|
+
"version": "6.5.0-dev.80",
|
|
4
4
|
"description": "Internal package used to define and read Prisma configuration files",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
@@ -16,14 +16,14 @@
|
|
|
16
16
|
"esbuild-register": "3.6.0"
|
|
17
17
|
},
|
|
18
18
|
"devDependencies": {
|
|
19
|
-
"@swc/core": "1.
|
|
19
|
+
"@swc/core": "1.11.5",
|
|
20
20
|
"@swc/jest": "0.2.37",
|
|
21
21
|
"effect": "3.12.10",
|
|
22
22
|
"esbuild-register": "3.6.0",
|
|
23
23
|
"jest": "29.7.0",
|
|
24
24
|
"jest-junit": "16.0.0",
|
|
25
|
-
"@prisma/
|
|
26
|
-
"@prisma/
|
|
25
|
+
"@prisma/driver-adapter-utils": "6.5.0-dev.80",
|
|
26
|
+
"@prisma/get-platform": "6.5.0-dev.80"
|
|
27
27
|
},
|
|
28
28
|
"files": [
|
|
29
29
|
"dist"
|
package/dist/PrismaConfig.d.ts
DELETED
|
@@ -1,109 +0,0 @@
|
|
|
1
|
-
import { Schema as Shape } from 'effect';
|
|
2
|
-
import type { Either } from 'effect/Either';
|
|
3
|
-
import type { ParseError } from 'effect/ParseResult';
|
|
4
|
-
declare const PrismaSchemaConfigShape: Shape.Union<[Shape.Struct<{
|
|
5
|
-
/**
|
|
6
|
-
* Tell Prisma to use a single `.prisma` schema file.
|
|
7
|
-
*/
|
|
8
|
-
kind: Shape.Literal<["single"]>;
|
|
9
|
-
/**
|
|
10
|
-
* The path to a single `.prisma` schema file.
|
|
11
|
-
*/
|
|
12
|
-
filePath: typeof Shape.String;
|
|
13
|
-
}>, Shape.Struct<{
|
|
14
|
-
/**
|
|
15
|
-
* Tell Prisma to use multiple `.prisma` schema files, via the `prismaSchemaFolder` preview feature.
|
|
16
|
-
*/
|
|
17
|
-
kind: Shape.Literal<["multi"]>;
|
|
18
|
-
/**
|
|
19
|
-
* The path to a folder containing multiple `.prisma` schema files.
|
|
20
|
-
* All of the files in this folder will be used.
|
|
21
|
-
*/
|
|
22
|
-
folderPath: typeof Shape.String;
|
|
23
|
-
}>]>;
|
|
24
|
-
export type PrismaSchemaConfigShape = typeof PrismaSchemaConfigShape.Type;
|
|
25
|
-
export declare const createPrismaConfigShape: () => Shape.Struct<{
|
|
26
|
-
/**
|
|
27
|
-
* Whether features with an unstable API are enabled.
|
|
28
|
-
*/
|
|
29
|
-
earlyAccess: Shape.Literal<[true]>;
|
|
30
|
-
/**
|
|
31
|
-
* The configuration for the Prisma schema file(s).
|
|
32
|
-
*/
|
|
33
|
-
schema: Shape.optional<Shape.Union<[Shape.Struct<{
|
|
34
|
-
/**
|
|
35
|
-
* Tell Prisma to use a single `.prisma` schema file.
|
|
36
|
-
*/
|
|
37
|
-
kind: Shape.Literal<["single"]>;
|
|
38
|
-
/**
|
|
39
|
-
* The path to a single `.prisma` schema file.
|
|
40
|
-
*/
|
|
41
|
-
filePath: typeof Shape.String;
|
|
42
|
-
}>, Shape.Struct<{
|
|
43
|
-
/**
|
|
44
|
-
* Tell Prisma to use multiple `.prisma` schema files, via the `prismaSchemaFolder` preview feature.
|
|
45
|
-
*/
|
|
46
|
-
kind: Shape.Literal<["multi"]>;
|
|
47
|
-
/**
|
|
48
|
-
* The path to a folder containing multiple `.prisma` schema files.
|
|
49
|
-
* All of the files in this folder will be used.
|
|
50
|
-
*/
|
|
51
|
-
folderPath: typeof Shape.String;
|
|
52
|
-
}>]>>;
|
|
53
|
-
}>;
|
|
54
|
-
/**
|
|
55
|
-
* The configuration for the Prisma Development Kit, before it is passed to the `defineConfig` function.
|
|
56
|
-
* Thanks to the branding, this type is opaque and cannot be constructed directly.
|
|
57
|
-
*/
|
|
58
|
-
export type PrismaConfig = ReturnType<typeof createPrismaConfigShape>['Type'];
|
|
59
|
-
/**
|
|
60
|
-
* Parse a given input object to ensure it conforms to the `PrismaConfig` type Shape.
|
|
61
|
-
* This function may fail, but it will never throw.
|
|
62
|
-
*/
|
|
63
|
-
export declare function parsePrismaConfigShape(input: unknown): Either<PrismaConfig, ParseError>;
|
|
64
|
-
export declare const createPrismaConfigInternalShape: () => Shape.brand<Shape.Struct<{
|
|
65
|
-
/**
|
|
66
|
-
* Whether features with an unstable API are enabled.
|
|
67
|
-
*/
|
|
68
|
-
earlyAccess: Shape.Literal<[true]>;
|
|
69
|
-
/**
|
|
70
|
-
* The configuration for the Prisma schema file(s).
|
|
71
|
-
*/
|
|
72
|
-
schema: Shape.optional<Shape.Union<[Shape.Struct<{
|
|
73
|
-
/**
|
|
74
|
-
* Tell Prisma to use a single `.prisma` schema file.
|
|
75
|
-
*/
|
|
76
|
-
kind: Shape.Literal<["single"]>;
|
|
77
|
-
/**
|
|
78
|
-
* The path to a single `.prisma` schema file.
|
|
79
|
-
*/
|
|
80
|
-
filePath: typeof Shape.String;
|
|
81
|
-
}>, Shape.Struct<{
|
|
82
|
-
/**
|
|
83
|
-
* Tell Prisma to use multiple `.prisma` schema files, via the `prismaSchemaFolder` preview feature.
|
|
84
|
-
*/
|
|
85
|
-
kind: Shape.Literal<["multi"]>;
|
|
86
|
-
/**
|
|
87
|
-
* The path to a folder containing multiple `.prisma` schema files.
|
|
88
|
-
* All of the files in this folder will be used.
|
|
89
|
-
*/
|
|
90
|
-
folderPath: typeof Shape.String;
|
|
91
|
-
}>]>>;
|
|
92
|
-
/**
|
|
93
|
-
* The path from where the config was loaded.
|
|
94
|
-
* It's set to `null` if no config file was found and only default config is applied.
|
|
95
|
-
*/
|
|
96
|
-
loadedFromFile: Shape.NullOr<typeof Shape.String>;
|
|
97
|
-
}>, "PrismaConfigInternal">;
|
|
98
|
-
/**
|
|
99
|
-
* The configuration for the Prisma Development Kit, after it has been parsed and processed
|
|
100
|
-
* by the `defineConfig` function.
|
|
101
|
-
* Thanks to the branding, this type is opaque and cannot be constructed directly.
|
|
102
|
-
*/
|
|
103
|
-
export type PrismaConfigInternal = ReturnType<typeof createPrismaConfigInternalShape>['Type'];
|
|
104
|
-
/**
|
|
105
|
-
* Parse a given input object to ensure it conforms to the `PrismaConfigInternal` type Shape.
|
|
106
|
-
* This function may fail, but it will never throw.
|
|
107
|
-
*/
|
|
108
|
-
export declare function parsePrismaConfigInternalShape(input: unknown): Either<PrismaConfigInternal, ParseError>;
|
|
109
|
-
export {};
|