#!/usr/bin/env node

const path = require('path')

const oclif = require('@oclif/core')

const project = path.resolve(__dirname, '../tsconfig.json')

process.env.NODE_ENV = 'development'

require('ts-node').register({
  project,
  transpileOnly: true,
  compilerOptions: {
    module: 'commonjs',
  },
})

oclif.settings.debug = true

oclif.run().then(oclif.flush).catch(oclif.Errors.handle)
