UNPKG

@atomist/automation-client

Version:
38 lines 1.14 kB
#!/usr/bin/env node "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); require("source-map-support/register"); const automationClient_1 = require("../automationClient"); const configuration_1 = require("../configuration"); const scan_1 = require("../scan"); try { configuration_1.loadConfiguration() .then(configuration => { scan_1.enableDefaultScanning(configuration); return configuration; }) .then(configuration => automationClient_1.automationClient(configuration).run()) .catch(e => { if (e instanceof Error) { if (e.stack && e.stack.includes(e.message)) { console.error(e.stack); } else if (e.stack) { console.error(e.message); console.error(e.stack); } else { console.error(e.message); } } else { console.error(e); } process.exit(1); }); } catch (e) { console.error(`Uncaught exception: ${e.message}`); process.exit(10); } //# sourceMappingURL=start.js.map