mirror of
https://github.com/cypress-io/cypress.git
synced 2026-01-01 20:19:58 -06:00
- fixes #1264 - fixes #1321 - fixes #1799 - fixes #2689 - fixes #2688 - fixes #2687 - fixes #2686
27 lines
504 B
JavaScript
27 lines
504 B
JavaScript
/* eslint-disable no-console */
|
|
require('@packages/coffee/register')
|
|
|
|
const command = process.argv[2]
|
|
|
|
if (!command) {
|
|
console.error('Missing deploy command ⛔️')
|
|
process.exit(1)
|
|
}
|
|
|
|
const commands = require('./binary/index')
|
|
const fn = commands[command]
|
|
|
|
if (!fn) {
|
|
console.error('Invalid deploy command %s 🚫', command)
|
|
}
|
|
|
|
fn()
|
|
.then(() => {
|
|
return console.log('✅ %s completed', command)
|
|
})
|
|
.catch((err) => {
|
|
console.error('🔥 deploy error')
|
|
console.error(err)
|
|
process.exit(1)
|
|
})
|