mirror of
https://github.com/graphql-hive/console
synced 2026-04-21 22:47:17 +00:00
20 lines
415 B
TypeScript
Executable file
20 lines
415 B
TypeScript
Executable file
#!/usr/bin/env tsx
|
|
|
|
// Suppress warnings from the CLI
|
|
process.removeAllListeners('warning');
|
|
|
|
const oclif = require('@oclif/core');
|
|
|
|
// In dev mode -> use ts-node and dev plugins
|
|
process.env.NODE_ENV = 'development';
|
|
|
|
// In dev mode, always show stack traces
|
|
oclif.settings.debug = true;
|
|
|
|
// Start the CLI
|
|
oclif
|
|
.execute({ development: true, dir: __dirname })
|
|
.catch(e => {
|
|
throw e;
|
|
})
|
|
.then(() => {});
|