Skip to content

Commit

Permalink
chore: switch to yargs-parser lib
Browse files Browse the repository at this point in the history
  • Loading branch information
jamesgeorge007 committed Feb 9, 2020
1 parent f3d3cd8 commit 789abbe
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 11 deletions.
4 changes: 2 additions & 2 deletions cli/index.ts
@@ -1,10 +1,10 @@
import help from 'help.md';
import minimist from 'minimist';
import argParser from 'yargs-parser';
import { version } from 'package.json';
import { commandAliases } from '../src/utils/mergeOptions';
import run from './run/index';

const command = minimist(process.argv.slice(2), {
const command = argParser(process.argv.slice(2), {
alias: commandAliases
});

Expand Down
12 changes: 6 additions & 6 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions package.json
Expand Up @@ -71,7 +71,7 @@
"devDependencies": {
"@types/chokidar": "^2.1.3",
"@types/micromatch": "^4.0.0",
"@types/minimist": "^1.2.0",
"@types/yargs-parser": "^15.0.0",
"acorn-export-ns-from": "^0.1.0",
"acorn-import-meta": "^1.0.0",
"acorn-jsx": "^5.1.0",
Expand All @@ -97,7 +97,6 @@
"magic-string": "^0.25.6",
"markdownlint-cli": "^0.21.0",
"micromatch": "^4.0.2",
"minimist": "^1.2.0",
"mocha": "^6.2.2",
"nyc": "^15.0.0",
"prettier": "^1.19.1",
Expand Down Expand Up @@ -129,7 +128,8 @@
"tslint": "^5.20.1",
"turbocolor": "^2.6.1",
"typescript": "^3.7.5",
"url-parse": "^1.4.7"
"url-parse": "^1.4.7",
"yargs-parser": "^16.1.0"
},
"files": [
"dist/**/*.js",
Expand Down

0 comments on commit 789abbe

Please sign in to comment.