1 | "use strict";
|
2 | Object.defineProperty(exports, "__esModule", { value: true });
|
3 | const ts2graphql_1 = require("@cortexql/ts2graphql");
|
4 | const externalTypes_1 = require("../hooks/externalTypes");
|
5 | const paths_1 = require("../paths");
|
6 | let transpiler;
|
7 | function getTranspiler() {
|
8 | const externalTypes = externalTypes_1.default.filter([], {});
|
9 | if (typeof transpiler === 'undefined') {
|
10 | transpiler = new ts2graphql_1.TypeScript2GraphQL({
|
11 | paths: {
|
12 | root: paths_1.getApiPath(),
|
13 | types: 'types',
|
14 | query: 'query',
|
15 | mutation: 'mutation',
|
16 | subscription: 'subscription',
|
17 | scalars: 'scalars',
|
18 | validators: 'validators',
|
19 | },
|
20 | types: externalTypes,
|
21 | });
|
22 | }
|
23 | return transpiler;
|
24 | }
|
25 | exports.getTranspiler = getTranspiler;
|
26 |
|
\ | No newline at end of file |