fix: migrate from optimist to yargs (#1666)

closes #1658

- adapted code from master to latest yargs (`.option` calls).

```
4.x:
found 188 vulnerabilities (169 low, 4 moderate, 14 high, 1 critical) in 5815 scanned packages

4.x with this PR:
found 32 vulnerabilities (17 low, 1 moderate, 13 high, 1 critical) in 5829 scanned packages
```
This commit is contained in:
Avi Vahl
2020-03-19 03:20:30 +02:00
committed by Hannah Wolfe
parent b440c38886
commit d79212a662
3 changed files with 2457 additions and 2235 deletions
+2 -2
View File
@@ -22,8 +22,8 @@
},
"dependencies": {
"neo-async": "^2.6.0",
"optimist": "^0.6.1",
"source-map": "^0.6.1"
"source-map": "^0.6.1",
"yargs": "^15.3.1"
},
"optionalDependencies": {
"uglify-js": "^3.1.4"