@graphql-hive/gateway
Version:
38 lines (36 loc) • 1.05 kB
JavaScript
import 'dotenv/config';
import module from 'node:module';
import { e as enableModuleCachingIfPossible, h as handleNodeWarnings, c as getDefaultLogger, r as run } from './cli-CdBR049O.js';
import 'node:cluster';
import 'node:os';
import 'node:path';
import '@commander-js/extra-typings';
import '@graphql-mesh/cross-helpers';
import '@graphql-mesh/utils';
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-hive/importer/hooks", {
parentURL: (
// @ts-ignore bob will complain when bundling for cjs
import.meta.url
),
data: {
packedDepsPath: globalThis.__PACKED_DEPS_PATH__ || ""
}
});
enableModuleCachingIfPossible();
handleNodeWarnings();
const log = getDefaultLogger();
run({ log }).catch((err) => {
log.error(err);
process.exit(1);
});