1 | 'use strict'
|
2 |
|
3 | module.exports = {
|
4 | command: 'update-rc <branch>',
|
5 | example: 'update-rc release/v0.38.x',
|
6 | desc: 'Update a release candidate',
|
7 | builder: {
|
8 | branch: {
|
9 | describe: 'Where the latest release branch is',
|
10 | type: 'string'
|
11 | },
|
12 | remote: {
|
13 | describe: 'Which remote to use',
|
14 | type: 'string',
|
15 | default: 'origin'
|
16 | },
|
17 | distTag: {
|
18 | describe: 'The dist tag to publish the rc as',
|
19 | type: 'string',
|
20 | default: 'next'
|
21 | },
|
22 | preId: {
|
23 | describe: 'What to call the rc',
|
24 | type: 'string',
|
25 | default: 'rc'
|
26 | }
|
27 | },
|
28 | handler (argv) {
|
29 | const cmd = require('../src/update-rc')
|
30 | return cmd(argv)
|
31 | }
|
32 | }
|