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 7c2842b
Show file tree
Hide file tree
Showing 4 changed files with 71 additions and 61 deletions.
110 changes: 60 additions & 50 deletions LICENSE.md
Expand Up @@ -31,7 +31,7 @@ MIT, ISC, Apache-2.0
## acorn-export-ns-from
License: MIT
By: Adrian Heine
Repository: https://github.com/acornjs/acorn-export-ns-from
Repository: git+https://github.com/acornjs/acorn-export-ns-from.git

> Copyright (C) 2017-2018 by Adrian Heine
>
Expand All @@ -58,7 +58,7 @@ Repository: https://github.com/acornjs/acorn-export-ns-from
## acorn-import-meta
License: MIT
By: Adrian Heine
Repository: https://github.com/adrianheine/acorn-import-meta
Repository: git+https://github.com/adrianheine/acorn-import-meta.git

> Copyright (C) 2017-2018 by Adrian Heine
>
Expand All @@ -85,7 +85,7 @@ Repository: https://github.com/adrianheine/acorn-import-meta
## acorn-walk
License: MIT
By: Marijn Haverbeke, Ingvar Stepanyan, Adrian Heine
Repository: https://github.com/acornjs/acorn.git
Repository: git+https://github.com/acornjs/acorn.git

> Copyright (C) 2012-2018 by various contributors (see AUTHORS)
>
Expand All @@ -112,7 +112,7 @@ Repository: https://github.com/acornjs/acorn.git
## braces
License: MIT
By: Jon Schlinkert, Brian Woodward, Elan Shanker, Eugene Sharygin, hemanth.hm
Repository: micromatch/braces
Repository: git+https://github.com/micromatch/braces.git

> The MIT License (MIT)
>
Expand All @@ -138,17 +138,31 @@ Repository: micromatch/braces
---------------------------------------

## camelcase
License: MIT
By: Sindre Sorhus
Repository: git+https://github.com/sindresorhus/camelcase.git

---------------------------------------

## date-time
License: MIT
By: Sindre Sorhus
Repository: sindresorhus/date-time
Repository: git+https://github.com/sindresorhus/date-time.git

---------------------------------------

## decamelize
License: MIT
By: Sindre Sorhus
Repository: git+https://github.com/sindresorhus/decamelize.git

---------------------------------------

## fill-range
License: MIT
By: Jon Schlinkert, Edo Rivai, Paul Miller, Rouven Weßling
Repository: jonschlinkert/fill-range
Repository: git+https://github.com/jonschlinkert/fill-range.git

> The MIT License (MIT)
>
Expand Down Expand Up @@ -177,13 +191,13 @@ Repository: jonschlinkert/fill-range
## hash.js
License: MIT
By: Fedor Indutny
Repository: git@github.com:indutny/hash.js
Repository: git+ssh://git@github.com/indutny/hash.js.git

---------------------------------------

## inherits
License: ISC
Repository: git://github.com/isaacs/inherits
Repository: git://github.com/isaacs/inherits.git

> The ISC License
>
Expand All @@ -206,7 +220,7 @@ Repository: git://github.com/isaacs/inherits
## is-number
License: MIT
By: Jon Schlinkert, Olsten Larck, Rouven Weßling
Repository: jonschlinkert/is-number
Repository: git+https://github.com/jonschlinkert/is-number.git

> The MIT License (MIT)
>
Expand Down Expand Up @@ -242,14 +256,14 @@ Repository: git+https://github.com/Rich-Harris/is-reference.git
## locate-character
License: MIT
By: Rich Harris
Repository: Rich-Harris/locate-character
Repository: git+https://github.com/Rich-Harris/locate-character.git

---------------------------------------

## magic-string
License: MIT
By: Rich Harris
Repository: https://github.com/rich-harris/magic-string
Repository: git+https://github.com/rich-harris/magic-string.git

> Copyright 2018 Rich Harris
>
Expand All @@ -264,7 +278,7 @@ Repository: https://github.com/rich-harris/magic-string
## micromatch
License: MIT
By: Jon Schlinkert, Amila Welihinda, Bogdan Chadkin, Brian Woodward, Devon Govett, Elan Shanker, Fabrício Matté, Martin Kolárik, Olsten Larck, Paul Miller, Tom Byrer, Tyler Akins, Peter Bright
Repository: micromatch/micromatch
Repository: git+https://github.com/micromatch/micromatch.git

> The MIT License (MIT)
>
Expand Down Expand Up @@ -292,7 +306,7 @@ Repository: micromatch/micromatch

## minimalistic-assert
License: ISC
Repository: https://github.com/calvinmetcalf/minimalistic-assert.git
Repository: git+https://github.com/calvinmetcalf/minimalistic-assert.git

> Copyright 2015 Calvin Metcalf
>
Expand All @@ -310,43 +324,17 @@ Repository: https://github.com/calvinmetcalf/minimalistic-assert.git
---------------------------------------

## minimist
License: MIT
By: James Halliday
Repository: git://github.com/substack/minimist.git

> This software is released under the MIT license:
>
> Permission is hereby granted, free of charge, to any person obtaining a copy of
> this software and associated documentation files (the "Software"), to deal in
> the Software without restriction, including without limitation the rights to
> use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
> the Software, and to permit persons to whom the Software is furnished to do so,
> subject to the following conditions:
>
> The above copyright notice and this permission notice shall be included in all
> copies or substantial portions of the Software.
>
> THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
> IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
> FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
> COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
> IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
> CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
---------------------------------------

## parse-ms
License: MIT
By: Sindre Sorhus
Repository: sindresorhus/parse-ms
Repository: git+https://github.com/sindresorhus/parse-ms.git

---------------------------------------

## picomatch
License: MIT
By: Jon Schlinkert
Repository: micromatch/picomatch
Repository: git+https://github.com/micromatch/picomatch.git

> The MIT License (MIT)
>
Expand Down Expand Up @@ -375,14 +363,14 @@ Repository: micromatch/picomatch
## pretty-bytes
License: MIT
By: Sindre Sorhus
Repository: sindresorhus/pretty-bytes
Repository: git+https://github.com/sindresorhus/pretty-bytes.git

---------------------------------------

## pretty-ms
License: MIT
By: Sindre Sorhus
Repository: sindresorhus/pretty-ms
Repository: git+https://github.com/sindresorhus/pretty-ms.git

---------------------------------------

Expand All @@ -396,14 +384,14 @@ Repository: git://github.com/kamicane/require-relative.git
## rollup-pluginutils
License: MIT
By: Rich Harris
Repository: rollup/rollup-pluginutils
Repository: git+https://github.com/rollup/rollup-pluginutils.git

---------------------------------------

## signal-exit
License: ISC
By: Ben Coe
Repository: https://github.com/tapjs/signal-exit.git
Repository: git+https://github.com/tapjs/signal-exit.git

> The ISC License
>
Expand All @@ -427,7 +415,7 @@ Repository: https://github.com/tapjs/signal-exit.git
## sourcemap-codec
License: MIT
By: Rich Harris
Repository: https://github.com/Rich-Harris/sourcemap-codec
Repository: git+https://github.com/Rich-Harris/sourcemap-codec.git

> The MIT License
>
Expand Down Expand Up @@ -456,14 +444,14 @@ Repository: https://github.com/Rich-Harris/sourcemap-codec
## time-zone
License: MIT
By: Sindre Sorhus
Repository: sindresorhus/time-zone
Repository: git+https://github.com/sindresorhus/time-zone.git

---------------------------------------

## to-regex-range
License: MIT
By: Jon Schlinkert, Rouven Weßling
Repository: micromatch/to-regex-range
Repository: git+https://github.com/micromatch/to-regex-range.git

> The MIT License (MIT)
>
Expand Down Expand Up @@ -492,7 +480,7 @@ Repository: micromatch/to-regex-range
## tslib
License: Apache-2.0
By: Microsoft Corp.
Repository: https://github.com/Microsoft/tslib.git
Repository: git+https://github.com/Microsoft/tslib.git

> Apache License
>
Expand Down Expand Up @@ -555,7 +543,7 @@ Repository: https://github.com/Microsoft/tslib.git
## turbocolor
License: MIT
By: Jorge Bucaran
Repository: jorgebucaran/turbocolor
Repository: git+https://github.com/jorgebucaran/turbocolor.git

> Copyright © 2015-present [Jorge Bucaran](https://github.com/jorgebucaran)
>
Expand All @@ -576,3 +564,25 @@ Repository: jorgebucaran/turbocolor
> LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
> OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
> SOFTWARE.
---------------------------------------

## yargs-parser
License: ISC
By: Ben Coe
Repository: git+ssh://git@github.com/yargs/yargs-parser.git

> Copyright (c) 2016, Contributors
>
> Permission to use, copy, modify, and/or distribute this software
> for any purpose with or without fee is hereby granted, provided
> that the above copyright notice and this permission notice
> appear in all copies.
>
> THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
> WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES
> OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE
> LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES
> OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
> WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION,
> ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
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 7c2842b

Please sign in to comment.