mirror of
https://github.com/zhigang1992/react-native.git
synced 2026-03-06 22:37:14 +08:00
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:
committed by
Facebook Github Bot
parent
da5b5d2fa1
commit
9f4ee25cf7
@@ -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', {
|
||||
|
||||
Reference in New Issue
Block a user