fix: remove the unused packages and convert minimist to yargs (#23467)

Summary:
`Minimist` package functionality can be done easily using `yargs` package. Also removed couple of unused dependencies.

[General] [changed] - used `yarns` package instead of `minimist` package

Pull Request resolved: https://github.com/facebook/react-native/pull/23467

Differential Revision: D14099638

Pulled By: cpojer

fbshipit-source-id: 59de2086e4204e09c91fd2c99d209ca32c0ef82c
This commit is contained in:
Nimish
2019-02-15 05:51:23 -08:00
committed by Facebook Github Bot
parent da5b5d2fa1
commit 9f4ee25cf7
3 changed files with 6 additions and 12 deletions

View File

@@ -17,13 +17,12 @@
*/
const fs = require('fs');
const {cat, echo, exec, exit, sed} = require('shelljs');
const yargs = require('yargs');
const minimist = require('minimist');
let argv = minimist(process.argv.slice(2), {
alias: {remote: 'r'},
default: {remote: 'origin'},
});
let argv = yargs.option('r', {
alias: 'remote',
default: 'origin',
}).argv;
// - check we are in release branch, e.g. 0.33-stable
let branch = exec('git symbolic-ref --short HEAD', {