#!/usr/bin/env ts-node // tslint:disable:arrow-parens // tslint:disable:max-line-length // tslint:disable:member-ordering // tslint:disable:no-shadowed-variable // tslint:disable:unified-signatures // tslint:disable:no-console import { PuppetMacpro, VERSION, } from 'wechaty-puppet-macpro' async function main () { if (VERSION === '0.0.0') { throw new Error('version should not be 0.0.0 when prepare for publishing') } const puppet = new PuppetMacpro({ token: 'test-token' }) console.log(`Puppet v${puppet.version()} smoke testing passed.`) return 0 } main() .then(process.exit) .catch(e => { console.error(e) process.exit(1) })