@prisma/config 7.9.0-dev.8 → 7.9.0
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 +7 -0
- package/dist/index.js +9 -9
- package/package.json +3 -3
package/dist/index.d.ts
CHANGED
|
@@ -28,6 +28,13 @@ export declare type Datasource = {
|
|
|
28
28
|
shadowDatabaseUrl?: string;
|
|
29
29
|
};
|
|
30
30
|
|
|
31
|
+
/**
|
|
32
|
+
* All default values for the config shall be set here.
|
|
33
|
+
* Modules should not have to deal with missing config values and determining a default themselves as far as possible.
|
|
34
|
+
* => Consistent defaults and centralized top-level control of configuration via the CLI.
|
|
35
|
+
*/
|
|
36
|
+
export declare function defaultConfig(): PrismaConfigInternal;
|
|
37
|
+
|
|
31
38
|
/**
|
|
32
39
|
* This default config can be used as basis for unit and integration tests.
|
|
33
40
|
*/
|
package/dist/index.js
CHANGED
|
@@ -31,6 +31,7 @@ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: tru
|
|
|
31
31
|
var index_exports = {};
|
|
32
32
|
__export(index_exports, {
|
|
33
33
|
PrismaConfigEnvError: () => PrismaConfigEnvError,
|
|
34
|
+
defaultConfig: () => defaultConfig,
|
|
34
35
|
defaultTestConfig: () => defaultTestConfig,
|
|
35
36
|
defineConfig: () => defineConfig,
|
|
36
37
|
env: () => env,
|
|
@@ -230,15 +231,6 @@ var import_Function = require("effect/Function");
|
|
|
230
231
|
|
|
231
232
|
// src/defineConfig.ts
|
|
232
233
|
var import_effect = require("effect");
|
|
233
|
-
|
|
234
|
-
// src/defaultConfig.ts
|
|
235
|
-
function defaultConfig() {
|
|
236
|
-
return makePrismaConfigInternal({
|
|
237
|
-
loadedFromFile: null
|
|
238
|
-
});
|
|
239
|
-
}
|
|
240
|
-
|
|
241
|
-
// src/defineConfig.ts
|
|
242
234
|
function validateExperimentalFeatures(config) {
|
|
243
235
|
const experimental = config.experimental || {};
|
|
244
236
|
if (config.tables?.external && !experimental.externalTables) {
|
|
@@ -498,6 +490,13 @@ function parseDefaultExport(defaultExport) {
|
|
|
498
490
|
return parseResultEither.right;
|
|
499
491
|
}
|
|
500
492
|
|
|
493
|
+
// src/defaultConfig.ts
|
|
494
|
+
function defaultConfig() {
|
|
495
|
+
return makePrismaConfigInternal({
|
|
496
|
+
loadedFromFile: null
|
|
497
|
+
});
|
|
498
|
+
}
|
|
499
|
+
|
|
501
500
|
// src/defaultTestConfig.ts
|
|
502
501
|
function defaultTestConfig() {
|
|
503
502
|
return makePrismaConfigInternal({
|
|
@@ -689,6 +688,7 @@ function transformPathsInConfigToAbsolute(prismaConfig, resolvedPath) {
|
|
|
689
688
|
// Annotate the CommonJS export names for ESM import in node:
|
|
690
689
|
0 && (module.exports = {
|
|
691
690
|
PrismaConfigEnvError,
|
|
691
|
+
defaultConfig,
|
|
692
692
|
defaultTestConfig,
|
|
693
693
|
defineConfig,
|
|
694
694
|
env,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@prisma/config",
|
|
3
|
-
"version": "7.9.0
|
|
3
|
+
"version": "7.9.0",
|
|
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",
|
|
@@ -19,8 +19,8 @@
|
|
|
19
19
|
},
|
|
20
20
|
"devDependencies": {
|
|
21
21
|
"dotenv": "17.2.3",
|
|
22
|
-
"@prisma/debug": "7.9.0
|
|
23
|
-
"@prisma/get-platform": "7.9.0
|
|
22
|
+
"@prisma/debug": "7.9.0",
|
|
23
|
+
"@prisma/get-platform": "7.9.0"
|
|
24
24
|
},
|
|
25
25
|
"files": [
|
|
26
26
|
"dist"
|