20 lines
333 B
TypeScript
20 lines
333 B
TypeScript
|
import { Cli } from 'clipanion'
|
||
|
|
||
|
import { BuildCommand } from './build'
|
||
|
|
||
|
const cli = new Cli({
|
||
|
binaryName: 'bin',
|
||
|
binaryVersion: require('../package.json').version,
|
||
|
})
|
||
|
|
||
|
cli.register(BuildCommand)
|
||
|
|
||
|
cli
|
||
|
.run(process.argv.slice(2), {
|
||
|
...Cli.defaultContext,
|
||
|
})
|
||
|
.catch((e) => {
|
||
|
console.error(e)
|
||
|
process.exit(1)
|
||
|
})
|