@k0lyan/nestjs-prisma-graphql-generator 0.8.17 → 0.8.18
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.
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"prisma-generator.d.ts","sourceRoot":"","sources":["../../src/cli/prisma-generator.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,eAAe,EAAE,MAAM,kBAAkB,CAAC;AACnD,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,0BAA0B,CAAC;
|
|
1
|
+
{"version":3,"file":"prisma-generator.d.ts","sourceRoot":"","sources":["../../src/cli/prisma-generator.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,eAAe,EAAE,MAAM,kBAAkB,CAAC;AACnD,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,0BAA0B,CAAC;AAWjE,wBAAsB,QAAQ,CAAC,OAAO,EAAE,gBAAgB,EAAE,MAAM,EAAE,eAAe,GAAG,OAAO,CAAC,IAAI,CAAC,CAuBhG"}
|
|
@@ -5,10 +5,16 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
6
|
exports.generate = generate;
|
|
7
7
|
const document_1 = require("../generator/dmmf/document");
|
|
8
|
+
const fs_1 = __importDefault(require("fs"));
|
|
8
9
|
const generate_1 = require("../generator/generate");
|
|
9
10
|
const path_1 = __importDefault(require("path"));
|
|
10
11
|
const file_writer_1 = require("../generator/writers/file-writer");
|
|
12
|
+
// Read version from package.json at runtime
|
|
13
|
+
const packageJsonPath = path_1.default.join(__dirname, '../../package.json');
|
|
14
|
+
const packageJson = JSON.parse(fs_1.default.readFileSync(packageJsonPath, 'utf-8'));
|
|
15
|
+
const version = packageJson.version;
|
|
11
16
|
async function generate(options, config) {
|
|
17
|
+
console.log(`🚀 NestJS Prisma GraphQL Generator v${version}`);
|
|
12
18
|
const outputDir = options.generator.output?.value;
|
|
13
19
|
if (!outputDir) {
|
|
14
20
|
throw new Error('Output directory is required');
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"prisma-generator.js","sourceRoot":"","sources":["../../src/cli/prisma-generator.ts"],"names":[],"mappings":";;;;;
|
|
1
|
+
{"version":3,"file":"prisma-generator.js","sourceRoot":"","sources":["../../src/cli/prisma-generator.ts"],"names":[],"mappings":";;;;;AAaA,4BAuBC;AApCD,yDAA0D;AAG1D,4CAAoB;AACpB,oDAAqD;AACrD,gDAAwB;AACxB,kEAA8D;AAE9D,4CAA4C;AAC5C,MAAM,eAAe,GAAG,cAAI,CAAC,IAAI,CAAC,SAAS,EAAE,oBAAoB,CAAC,CAAC;AACnE,MAAM,WAAW,GAAG,IAAI,CAAC,KAAK,CAAC,YAAE,CAAC,YAAY,CAAC,eAAe,EAAE,OAAO,CAAC,CAAC,CAAC;AAC1E,MAAM,OAAO,GAAW,WAAW,CAAC,OAAO,CAAC;AAErC,KAAK,UAAU,QAAQ,CAAC,OAAyB,EAAE,MAAuB;IAC/E,OAAO,CAAC,GAAG,CAAC,uCAAuC,OAAO,EAAE,CAAC,CAAC;IAE9D,MAAM,SAAS,GAAG,OAAO,CAAC,SAAS,CAAC,MAAM,EAAE,KAAK,CAAC;IAElD,IAAI,CAAC,SAAS,EAAE,CAAC;QACf,MAAM,IAAI,KAAK,CAAC,8BAA8B,CAAC,CAAC;IAClD,CAAC;IAED,MAAM,iBAAiB,GAAG,cAAI,CAAC,UAAU,CAAC,SAAS,CAAC;QAClD,CAAC,CAAC,SAAS;QACX,CAAC,CAAC,cAAI,CAAC,IAAI,CAAC,OAAO,CAAC,UAAU,EAAE,IAAI,EAAE,SAAS,CAAC,CAAC;IAEnD,kDAAkD;IAClD,MAAM,YAAY,GAAG,IAAI,uBAAY,CAAC,OAAO,CAAC,IAAI,EAAE,MAAM,CAAC,CAAC;IAE5D,0BAA0B;IAC1B,MAAM,cAAc,GAAG,MAAM,IAAA,uBAAY,EAAC,YAAY,EAAE,MAAM,CAAC,CAAC;IAEhE,kCAAkC;IAClC,MAAM,IAAA,wBAAU,EAAC,iBAAiB,EAAE,cAAc,CAAC,CAAC;IAEpD,OAAO,CAAC,GAAG,CAAC,uCAAuC,iBAAiB,EAAE,CAAC,CAAC;AAC1E,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@k0lyan/nestjs-prisma-graphql-generator",
|
|
3
|
-
"version": "0.8.
|
|
3
|
+
"version": "0.8.18",
|
|
4
4
|
"description": "Prisma generator for NestJS 11 GraphQL with optimized query building from GraphQL selections",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|