UNPKG

903 BJavaScriptView Raw
1"use strict";
2Object.defineProperty(exports, "__esModule", { value: true });
3const ts2graphql_1 = require("@cortexql/ts2graphql");
4const externalTypes_1 = require("../hooks/externalTypes");
5const paths_1 = require("../paths");
6let transpiler;
7function 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}
25exports.getTranspiler = getTranspiler;
26//# sourceMappingURL=getTranspiler.js.map
\No newline at end of file