prisma-nestjs-graphql 15.2.0 → 15.2.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/README.md +2 -2
- package/index.js +11 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -66,9 +66,9 @@ Possible tokens:
|
|
|
66
66
|
|
|
67
67
|
#### `tsConfigFilePath`
|
|
68
68
|
|
|
69
|
-
Path to `tsconfig.json`
|
|
69
|
+
Path to `tsconfig.json` (absolute path or relative to current working directory)
|
|
70
70
|
Type: `string | undefined`
|
|
71
|
-
Default: `undefined`
|
|
71
|
+
Default: `tsconfig.json` if exists, `undefined` otherwise
|
|
72
72
|
|
|
73
73
|
#### `combineScalarFilters`
|
|
74
74
|
|
package/index.js
CHANGED
|
@@ -1585,6 +1585,7 @@ function warning(message) {
|
|
|
1585
1585
|
var import_assert5 = require("assert");
|
|
1586
1586
|
var import_filenamify = __toESM(require("filenamify"));
|
|
1587
1587
|
var import_flat = require("flat");
|
|
1588
|
+
var import_fs2 = require("fs");
|
|
1588
1589
|
var import_json55 = __toESM(require("json5"));
|
|
1589
1590
|
var import_lodash7 = require("lodash");
|
|
1590
1591
|
var import_outmatch3 = __toESM(require("outmatch"));
|
|
@@ -1646,7 +1647,7 @@ function createConfig(data) {
|
|
|
1646
1647
|
}
|
|
1647
1648
|
return {
|
|
1648
1649
|
outputFilePattern,
|
|
1649
|
-
tsConfigFilePath:
|
|
1650
|
+
tsConfigFilePath: createTsConfigFilePathValue(config.tsConfigFilePath),
|
|
1650
1651
|
combineScalarFilters: toBoolean(config.combineScalarFilters),
|
|
1651
1652
|
noAtomicOperations: toBoolean(config.noAtomicOperations),
|
|
1652
1653
|
reExport: ReExport[String(config.reExport)] || ReExport.None,
|
|
@@ -1662,6 +1663,15 @@ function createConfig(data) {
|
|
|
1662
1663
|
decorate
|
|
1663
1664
|
};
|
|
1664
1665
|
}
|
|
1666
|
+
var tsConfigFileExists = (0, import_lodash7.memoize)((filePath) => {
|
|
1667
|
+
return (0, import_fs2.existsSync)(filePath);
|
|
1668
|
+
});
|
|
1669
|
+
function createTsConfigFilePathValue(value) {
|
|
1670
|
+
if (typeof value === "string")
|
|
1671
|
+
return value;
|
|
1672
|
+
if (tsConfigFileExists("tsconfig.json"))
|
|
1673
|
+
return "tsconfig.json";
|
|
1674
|
+
}
|
|
1665
1675
|
function createUseInputType(data) {
|
|
1666
1676
|
if (!data) {
|
|
1667
1677
|
return [];
|
package/package.json
CHANGED