1 | #!/usr/bin/env node
|
2 |
|
3 | const oclif = require('@oclif/core')
|
4 |
|
5 | // const path = require('path')
|
6 | // const project = path.join(__dirname, '..', 'tsconfig.json')
|
7 |
|
8 | // In dev mode -> use ts-node and dev plugins
|
9 | process.env.NODE_ENV = 'development'
|
10 |
|
11 | // TODO: Enable when using typescript
|
12 | // require('ts-node').register({project})
|
13 |
|
14 | // In dev mode, always show stack traces
|
15 | oclif.settings.debug = true;
|
16 |
|
17 | // Start the CLI
|
18 | oclif.run().then(oclif.flush).catch(oclif.Errors.handle)
|