Update devdependecy commander (#66771)

Upgrade devdependecy commander to latest versio.

Now in command, the optional argument is with [] and the required
argument is with <>.

---------

Co-authored-by: torresgol10.itd <torresgol10.itd@gmail.com>
Co-authored-by: Sam Ko <sam@vercel.com>
This commit is contained in:
Ivan Torres 2024-06-12 20:25:09 +02:00 committed by GitHub
parent 535d466734
commit bebc63fce0
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
5 changed files with 14 additions and 13 deletions

View file

@ -1,7 +1,7 @@
#!/usr/bin/env node
/* eslint-disable import/no-extraneous-dependencies */
import { cyan, green, red, yellow, bold, blue } from 'picocolors'
import Commander from 'commander'
import { Command } from 'commander'
import Conf from 'conf'
import path from 'path'
import prompts from 'prompts'
@ -36,10 +36,10 @@ const onPromptState = (state: {
}
}
const program = new Commander.Command(packageJson.name)
const program = new Command(packageJson.name)
.version(packageJson.version)
.arguments('<project-directory>')
.usage(`${green('<project-directory>')} [options]`)
.argument('[project-directory]')
.usage(`${green('[project-directory]')} [options]`)
.action((name) => {
projectPath = name
})
@ -169,6 +169,7 @@ const program = new Commander.Command(packageJson.name)
)
.allowUnknownOption()
.parse(process.argv)
.opts()
const packageManager = !!program.useNpm
? 'npm'

View file

@ -39,7 +39,7 @@
"@vercel/ncc": "0.34.0",
"async-retry": "1.3.1",
"ci-info": "watson/ci-info#f43f6a1cefff47fb361c88cf4b943fdbcaafe540",
"commander": "2.20.0",
"commander": "12.1.0",
"conf": "10.2.0",
"cross-spawn": "7.0.3",
"fast-glob": "3.3.1",

View file

@ -223,7 +223,7 @@
"ci-info": "watson/ci-info#f43f6a1cefff47fb361c88cf4b943fdbcaafe540",
"cli-select": "1.1.2",
"client-only": "0.0.1",
"commander": "12.0.0",
"commander": "12.1.0",
"comment-json": "3.0.3",
"compression": "1.7.4",
"conf": "5.0.0",

File diff suppressed because one or more lines are too long

View file

@ -738,8 +738,8 @@ importers:
specifier: watson/ci-info#f43f6a1cefff47fb361c88cf4b943fdbcaafe540
version: github.com/watson/ci-info/f43f6a1cefff47fb361c88cf4b943fdbcaafe540
commander:
specifier: 2.20.0
version: 2.20.0
specifier: 12.1.0
version: 12.1.0
conf:
specifier: 10.2.0
version: 10.2.0
@ -1159,8 +1159,8 @@ importers:
specifier: 0.0.1
version: 0.0.1
commander:
specifier: 12.0.0
version: 12.0.0
specifier: 12.1.0
version: 12.1.0
comment-json:
specifier: 3.0.3
version: 3.0.3
@ -10074,8 +10074,8 @@ packages:
engines: {node: '>=16'}
dev: true
/commander@12.0.0:
resolution: {integrity: sha512-MwVNWlYjDTtOjX5PiD7o5pK0UrFU/OYgcJfjjK4RaHZETNtjJqrZa9Y9ds88+A+f+d5lv+561eZ+yCKoS3gbAA==}
/commander@12.1.0:
resolution: {integrity: sha512-Vw8qHK3bZM9y/P10u3Vib8o/DdkvA2OtPtZvD871QKjy74Wj1WSKFILMPRPSdUSx5RFK1arlJzEtA4PkFgnbuA==}
engines: {node: '>=18'}
dev: true