21 lines
354 B
JavaScript
21 lines
354 B
JavaScript
#!/usr/bin/env node
|
|
|
|
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)
|
|
})
|