@pegasusheavy/nestjs-prisma-graphql 1.0.1 → 1.0.2
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/generate.js +4 -7
- package/dist/generate.js.map +1 -1
- package/dist/index.js +4 -7
- package/dist/index.js.map +1 -1
- package/package.json +23 -20
package/dist/index.js
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import generatorHelper from '@prisma/generator-helper';
|
|
2
2
|
import { ok } from 'assert';
|
|
3
|
+
import { createRequire } from 'module';
|
|
3
4
|
import { memoize, mapKeys, merge, trim, castArray, uniqWith, isEqual, countBy, startCase, camelCase, keyBy, remove, partition, kebabCase, isObject, omit, cloneDeep } from 'lodash-es';
|
|
4
5
|
import { Project, QuoteKind, StructureKind } from 'ts-morph';
|
|
5
6
|
import JSON52 from 'json5';
|
|
@@ -11,12 +12,7 @@ import filenamify from 'filenamify';
|
|
|
11
12
|
import { unflatten } from 'flat';
|
|
12
13
|
import pluralize from 'pluralize';
|
|
13
14
|
|
|
14
|
-
|
|
15
|
-
get: (a, b) => (typeof require !== "undefined" ? require : a)[b]
|
|
16
|
-
}) : x)(function(x) {
|
|
17
|
-
if (typeof require !== "undefined") return require.apply(this, arguments);
|
|
18
|
-
throw Error('Dynamic require of "' + x + '" is not supported');
|
|
19
|
-
});
|
|
15
|
+
// src/index.ts
|
|
20
16
|
|
|
21
17
|
// src/helpers/is-many-and-return.ts
|
|
22
18
|
function isManyAndReturnOutputType(name) {
|
|
@@ -2426,7 +2422,8 @@ var middleKeywords = [
|
|
|
2426
2422
|
];
|
|
2427
2423
|
|
|
2428
2424
|
// src/generate.ts
|
|
2429
|
-
var
|
|
2425
|
+
var requireCjs = createRequire(import.meta.url);
|
|
2426
|
+
var AwaitEventEmitter = requireCjs("await-event-emitter").default;
|
|
2430
2427
|
async function generate(args) {
|
|
2431
2428
|
const { connectCallback, dmmf, generator, skipAddOutputSourceFiles } = args;
|
|
2432
2429
|
const generatorOutputValue = generator.output?.value;
|