@ciklumrnd/ciklum-cli
Version:
Ciklum CLI tool for internal engineering teams
20 lines (14 loc) • 544 B
JavaScript
const oclif = require('@oclif/core')
const path = require('path')
const project = path.join(__dirname, '..', 'tsconfig.json')
// In dev mode -> use ts-node and dev plugins
process.env.NODE_ENV = 'development'
require('ts-node').register({project})
// In dev mode, always show stack traces
oclif.settings.debug = true;
// Import and use the shared CLI setup
const { setupCli } = require('../src/lib/cli-runner')
setupCli({ isDevelopment: true })
// Start the CLI
oclif.run().then(oclif.flush).catch(oclif.Errors.handle)