@prisma/config 6.4.0-dev.53 → 6.4.0-dev.55
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 +22 -1
- package/dist/loadConfigFromFile.js +22 -1
- package/package.json +3 -3
package/dist/index.js
CHANGED
|
@@ -22611,7 +22611,7 @@ async function loadConfigFromFile({
|
|
|
22611
22611
|
}
|
|
22612
22612
|
};
|
|
22613
22613
|
}
|
|
22614
|
-
const prismaConfig = parseResultEither.right;
|
|
22614
|
+
const prismaConfig = transformPathsInConfigToAbsolute(parseResultEither.right, resolvedPath);
|
|
22615
22615
|
return {
|
|
22616
22616
|
config: {
|
|
22617
22617
|
...prismaConfig,
|
|
@@ -22654,6 +22654,27 @@ async function requireTypeScriptFile(resolvedPath) {
|
|
|
22654
22654
|
};
|
|
22655
22655
|
}
|
|
22656
22656
|
}
|
|
22657
|
+
function transformPathsInConfigToAbsolute(prismaConfig, resolvedPath) {
|
|
22658
|
+
if (prismaConfig.schema?.kind === "single") {
|
|
22659
|
+
return {
|
|
22660
|
+
...prismaConfig,
|
|
22661
|
+
schema: {
|
|
22662
|
+
...prismaConfig.schema,
|
|
22663
|
+
filenamePath: import_node_path.default.resolve(import_node_path.default.dirname(resolvedPath), prismaConfig.schema.filenamePath)
|
|
22664
|
+
}
|
|
22665
|
+
};
|
|
22666
|
+
} else if (prismaConfig.schema?.kind === "multi") {
|
|
22667
|
+
return {
|
|
22668
|
+
...prismaConfig,
|
|
22669
|
+
schema: {
|
|
22670
|
+
...prismaConfig.schema,
|
|
22671
|
+
folder: import_node_path.default.resolve(import_node_path.default.dirname(resolvedPath), prismaConfig.schema.folder)
|
|
22672
|
+
}
|
|
22673
|
+
};
|
|
22674
|
+
} else {
|
|
22675
|
+
return prismaConfig;
|
|
22676
|
+
}
|
|
22677
|
+
}
|
|
22657
22678
|
// Annotate the CommonJS export names for ESM import in node:
|
|
22658
22679
|
0 && (module.exports = {
|
|
22659
22680
|
defaultConfig,
|
|
@@ -22567,7 +22567,7 @@ async function loadConfigFromFile({
|
|
|
22567
22567
|
}
|
|
22568
22568
|
};
|
|
22569
22569
|
}
|
|
22570
|
-
const prismaConfig = parseResultEither.right;
|
|
22570
|
+
const prismaConfig = transformPathsInConfigToAbsolute(parseResultEither.right, resolvedPath);
|
|
22571
22571
|
return {
|
|
22572
22572
|
config: {
|
|
22573
22573
|
...prismaConfig,
|
|
@@ -22610,6 +22610,27 @@ async function requireTypeScriptFile(resolvedPath) {
|
|
|
22610
22610
|
};
|
|
22611
22611
|
}
|
|
22612
22612
|
}
|
|
22613
|
+
function transformPathsInConfigToAbsolute(prismaConfig, resolvedPath) {
|
|
22614
|
+
if (prismaConfig.schema?.kind === "single") {
|
|
22615
|
+
return {
|
|
22616
|
+
...prismaConfig,
|
|
22617
|
+
schema: {
|
|
22618
|
+
...prismaConfig.schema,
|
|
22619
|
+
filenamePath: import_node_path.default.resolve(import_node_path.default.dirname(resolvedPath), prismaConfig.schema.filenamePath)
|
|
22620
|
+
}
|
|
22621
|
+
};
|
|
22622
|
+
} else if (prismaConfig.schema?.kind === "multi") {
|
|
22623
|
+
return {
|
|
22624
|
+
...prismaConfig,
|
|
22625
|
+
schema: {
|
|
22626
|
+
...prismaConfig.schema,
|
|
22627
|
+
folder: import_node_path.default.resolve(import_node_path.default.dirname(resolvedPath), prismaConfig.schema.folder)
|
|
22628
|
+
}
|
|
22629
|
+
};
|
|
22630
|
+
} else {
|
|
22631
|
+
return prismaConfig;
|
|
22632
|
+
}
|
|
22633
|
+
}
|
|
22613
22634
|
// Annotate the CommonJS export names for ESM import in node:
|
|
22614
22635
|
0 && (module.exports = {
|
|
22615
22636
|
loadConfigFromFile
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@prisma/config",
|
|
3
|
-
"version": "6.4.0-dev.
|
|
3
|
+
"version": "6.4.0-dev.55",
|
|
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",
|
|
@@ -18,8 +18,8 @@
|
|
|
18
18
|
"esbuild-register": "3.6.0",
|
|
19
19
|
"jest": "29.7.0",
|
|
20
20
|
"jest-junit": "16.0.0",
|
|
21
|
-
"@prisma/driver-adapter-utils": "6.4.0-dev.
|
|
22
|
-
"@prisma/get-platform": "6.4.0-dev.
|
|
21
|
+
"@prisma/driver-adapter-utils": "6.4.0-dev.55",
|
|
22
|
+
"@prisma/get-platform": "6.4.0-dev.55"
|
|
23
23
|
},
|
|
24
24
|
"files": [
|
|
25
25
|
"dist"
|