@graphql-hive/gateway
Version:
38 lines (36 loc) • 1.04 kB
JavaScript
import 'dotenv/config';
import module from 'node:module';
import { DefaultLogger } from '@graphql-mesh/utils';
import { e as enableModuleCachingIfPossible, h as handleNodeWarnings, r as run } from './cli-bTIDIYHz.js';
import 'node:cluster';
import 'node:os';
import 'node:path';
import '@commander-js/extra-typings';
import 'parse-duration';
import '@graphql-hive/gateway-runtime';
import 'node:fs/promises';
import 'node:url';
import 'node:fs';
import 'node:http';
import 'node:https';
import '@graphql-tools/utils';
import '@graphql-tools/code-file-loader';
import '@graphql-tools/graphql-file-loader';
import '@graphql-tools/load';
module.register("@graphql-mesh/include/hooks", {
parentURL: (
// @ts-ignore bob will complain when bundling for cjs
import.meta.url
),
data: {
packedDepsPath: globalThis.__PACKED_DEPS_PATH__ || ""
}
});
enableModuleCachingIfPossible();
handleNodeWarnings();
const log = new DefaultLogger();
run({ log }).catch((err) => {
log.error(err);
process.exit(1);
});