UNPKG

create-graphql-yoga

Version:
15 lines (14 loc) 411 B
#!/usr/bin/env node "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); const index_js_1 = require("./index.js"); const fetch_1 = require("@whatwg-node/fetch"); (0, index_js_1.createGraphQLYoga)({ argv: process.argv, input: process.stdin, output: process.stdout, fetchFn: fetch_1.fetch, }).catch((e) => { index_js_1.spinner.fail(e.message); process.exit(1); });