UNPKG

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