mirror of
https://github.com/LukeHagar/vercel.git
synced 2025-12-09 21:07:46 +00:00
[cli] Remove mri workaround (#10452)
As of https://github.com/vercel/vercel/pull/10389 the `mri` package is no longer used and this workaround can be removed.
This commit is contained in:
@@ -333,19 +333,7 @@ async function run({ output, contextName, currentTeam, client }) {
|
||||
return 1;
|
||||
}
|
||||
|
||||
const [name, parsedValue] = args;
|
||||
const [originalName, originalValue] = client.argv.slice(-2);
|
||||
|
||||
let value = parsedValue;
|
||||
if (
|
||||
name === originalName &&
|
||||
typeof parsedValue === 'boolean' &&
|
||||
parsedValue !== originalValue
|
||||
) {
|
||||
// Corner case where `mri` transforms the secret value into a boolean because
|
||||
// it starts with a `-` so it thinks its a flag, so we use the original value instead.
|
||||
value = originalValue;
|
||||
}
|
||||
const [name, value] = args;
|
||||
|
||||
if (typeof value === 'boolean') {
|
||||
const example = chalk.cyan(
|
||||
|
||||
Reference in New Issue
Block a user