UNPKG

645 BJavaScriptView Raw
1'use strict'
2
3module.exports = {
4 command: 'update-last-successful-build',
5 desc: 'Update last known good build branch',
6 builder: {
7 branch: {
8 describe: 'Which branch to update',
9 type: 'string',
10 default: 'build/last-successful'
11 },
12 remote: {
13 describe: 'Which remote to use',
14 type: 'string',
15 default: 'origin'
16 },
17 message: {
18 describe: 'The message to use when adding the shrinkwrap and yarn.lock file',
19 type: 'string',
20 default: 'chore: add lockfiles'
21 }
22 },
23 handler (argv) {
24 const cmd = require('../src/update-last-successful-build')
25 return cmd(argv)
26 }
27}