cli.js 301 B

1234567891011121314
  1. #!/usr/bin/env node
  2. const chalk = require('chalk')
  3. const { main } = require('../dist/cli')
  4. main()
  5. .then(() => {
  6. process.exit(0)
  7. })
  8. .catch((err) => {
  9. console.error(chalk.red(`Error: ${JSON.stringify(err)}`))
  10. console.error(chalk.red(`Stack: ${err.stack}`))
  11. process.exit(-1)
  12. })