@prisma/config 6.6.0-dev.42 → 6.6.0-dev.50
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 +4 -25
- package/dist/index.js +4 -26
- package/package.json +3 -3
package/dist/index.d.ts
CHANGED
|
@@ -129,9 +129,9 @@ export declare type PrismaConfig<Env extends EnvVars = never> = {
|
|
|
129
129
|
*/
|
|
130
130
|
earlyAccess: true;
|
|
131
131
|
/**
|
|
132
|
-
* The
|
|
132
|
+
* The path to the schema file or path to a folder that shall be recursively searched for .prisma files.
|
|
133
133
|
*/
|
|
134
|
-
schema?:
|
|
134
|
+
schema?: string;
|
|
135
135
|
/**
|
|
136
136
|
* The configuration for Prisma Studio.
|
|
137
137
|
*/
|
|
@@ -157,9 +157,9 @@ declare type _PrismaConfigInternal<Env extends EnvVars = never> = {
|
|
|
157
157
|
*/
|
|
158
158
|
earlyAccess: true;
|
|
159
159
|
/**
|
|
160
|
-
* The
|
|
160
|
+
* The path to the schema file or path to a folder that shall be recursively searched for .prisma files.
|
|
161
161
|
*/
|
|
162
|
-
schema?:
|
|
162
|
+
schema?: string;
|
|
163
163
|
/**
|
|
164
164
|
* The configuration for Prisma Studio.
|
|
165
165
|
*/
|
|
@@ -179,27 +179,6 @@ declare type PrismaMigrateConfigShape<Env extends EnvVars = never> = {
|
|
|
179
179
|
adapter: (env: Env) => Promise<SqlDriverAdapter>;
|
|
180
180
|
};
|
|
181
181
|
|
|
182
|
-
declare type PrismaSchemaConfigShape = {
|
|
183
|
-
/**
|
|
184
|
-
* Tell Prisma to use a single `.prisma` schema file.
|
|
185
|
-
*/
|
|
186
|
-
kind: 'single';
|
|
187
|
-
/**
|
|
188
|
-
* The path to a single `.prisma` schema file.
|
|
189
|
-
*/
|
|
190
|
-
filePath: string;
|
|
191
|
-
} | {
|
|
192
|
-
/**
|
|
193
|
-
* Tell Prisma to use multiple `.prisma` schema files, via the `prismaSchemaFolder` preview feature.
|
|
194
|
-
*/
|
|
195
|
-
kind: 'multi';
|
|
196
|
-
/**
|
|
197
|
-
* The path to a folder containing multiple `.prisma` schema files.
|
|
198
|
-
* All of the files in this folder will be used.
|
|
199
|
-
*/
|
|
200
|
-
folderPath: string;
|
|
201
|
-
};
|
|
202
|
-
|
|
203
182
|
declare type PrismaStudioConfigShape<Env extends EnvVars = never> = {
|
|
204
183
|
adapter: (env: Env) => Promise<SqlDriverAdapter>;
|
|
205
184
|
};
|
package/dist/index.js
CHANGED
|
@@ -22406,18 +22406,7 @@ var createPrismaMigrateConfigInternalShape = () => Schema_exports.Struct({
|
|
|
22406
22406
|
*/
|
|
22407
22407
|
adapter: adapterShape()
|
|
22408
22408
|
});
|
|
22409
|
-
var PrismaConfigSchemaSingleShape = Schema_exports.Struct({
|
|
22410
|
-
kind: Schema_exports.Literal("single"),
|
|
22411
|
-
filePath: Schema_exports.String
|
|
22412
|
-
});
|
|
22413
|
-
var PrismaConfigSchemaMultiShape = Schema_exports.Struct({
|
|
22414
|
-
kind: Schema_exports.Literal("multi"),
|
|
22415
|
-
folderPath: Schema_exports.String
|
|
22416
|
-
});
|
|
22417
|
-
var PrismaSchemaConfigShape = Schema_exports.Union(PrismaConfigSchemaSingleShape, PrismaConfigSchemaMultiShape);
|
|
22418
22409
|
if (false) {
|
|
22419
|
-
__testPrismaSchemaConfigShapeValueA;
|
|
22420
|
-
__testPrismaSchemaConfigShapeValueB;
|
|
22421
22410
|
__testPrismaStudioConfigShapeValueA;
|
|
22422
22411
|
__testPrismaStudioConfigShapeValueB;
|
|
22423
22412
|
__testPrismaMigrateConfigShapeValueA;
|
|
@@ -22425,7 +22414,7 @@ if (false) {
|
|
|
22425
22414
|
}
|
|
22426
22415
|
var createPrismaConfigShape = () => Schema_exports.Struct({
|
|
22427
22416
|
earlyAccess: Schema_exports.Literal(true),
|
|
22428
|
-
schema: Schema_exports.optional(
|
|
22417
|
+
schema: Schema_exports.optional(Schema_exports.String)
|
|
22429
22418
|
});
|
|
22430
22419
|
if (false) {
|
|
22431
22420
|
__testPrismaConfigValueA;
|
|
@@ -22439,7 +22428,7 @@ function parsePrismaConfigShape(input) {
|
|
|
22439
22428
|
var PRISMA_CONFIG_INTERNAL_BRAND = Symbol.for("PrismaConfigInternal");
|
|
22440
22429
|
var createPrismaConfigInternalShape = () => Schema_exports.Struct({
|
|
22441
22430
|
earlyAccess: Schema_exports.Literal(true),
|
|
22442
|
-
schema: Schema_exports.optional(
|
|
22431
|
+
schema: Schema_exports.optional(Schema_exports.String),
|
|
22443
22432
|
studio: Schema_exports.optional(createPrismaStudioConfigInternalShape()),
|
|
22444
22433
|
migrate: Schema_exports.optional(createPrismaMigrateConfigInternalShape()),
|
|
22445
22434
|
loadedFromFile: Schema_exports.NullOr(Schema_exports.String)
|
|
@@ -22597,21 +22586,10 @@ async function requireTypeScriptFile(resolvedPath) {
|
|
|
22597
22586
|
}
|
|
22598
22587
|
}
|
|
22599
22588
|
function transformPathsInConfigToAbsolute(prismaConfig, resolvedPath) {
|
|
22600
|
-
if (prismaConfig.schema
|
|
22589
|
+
if (prismaConfig.schema) {
|
|
22601
22590
|
return {
|
|
22602
22591
|
...prismaConfig,
|
|
22603
|
-
schema:
|
|
22604
|
-
...prismaConfig.schema,
|
|
22605
|
-
filePath: import_node_path.default.resolve(import_node_path.default.dirname(resolvedPath), prismaConfig.schema.filePath)
|
|
22606
|
-
}
|
|
22607
|
-
};
|
|
22608
|
-
} else if (prismaConfig.schema?.kind === "multi") {
|
|
22609
|
-
return {
|
|
22610
|
-
...prismaConfig,
|
|
22611
|
-
schema: {
|
|
22612
|
-
...prismaConfig.schema,
|
|
22613
|
-
folderPath: import_node_path.default.resolve(import_node_path.default.dirname(resolvedPath), prismaConfig.schema.folderPath)
|
|
22614
|
-
}
|
|
22592
|
+
schema: import_node_path.default.resolve(import_node_path.default.dirname(resolvedPath), prismaConfig.schema)
|
|
22615
22593
|
};
|
|
22616
22594
|
} else {
|
|
22617
22595
|
return prismaConfig;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@prisma/config",
|
|
3
|
-
"version": "6.6.0-dev.
|
|
3
|
+
"version": "6.6.0-dev.50",
|
|
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",
|
|
@@ -22,8 +22,8 @@
|
|
|
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/get-platform": "6.6.0-dev.50",
|
|
26
|
+
"@prisma/driver-adapter-utils": "6.6.0-dev.50"
|
|
27
27
|
},
|
|
28
28
|
"files": [
|
|
29
29
|
"dist"
|