Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[WIP] chore(deps): switch to yargs-parser lib #3377

Merged
merged 8 commits into from Mar 10, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
62 changes: 36 additions & 26 deletions LICENSE.md
Expand Up @@ -195,6 +195,13 @@ Repository: micromatch/braces

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

## camelcase
License: MIT
By: Sindre Sorhus
Repository: sindresorhus/camelcase

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

## chokidar
License: MIT
By: Paul Miller, Elan Shanker
Expand Down Expand Up @@ -246,6 +253,13 @@ Repository: sindresorhus/date-time

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

## decamelize
License: MIT
By: Sindre Sorhus
Repository: sindresorhus/decamelize

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

## fill-range
License: MIT
By: Jon Schlinkert, Edo Rivai, Paul Miller, Rouven Weßling
Expand Down Expand Up @@ -499,32 +513,6 @@ 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.

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

## normalize-path
License: MIT
By: Jon Schlinkert, Blaine Bublitz
Expand Down Expand Up @@ -733,3 +721,25 @@ Repository: micromatch/to-regex-range
> 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@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.
7 changes: 4 additions & 3 deletions cli/index.ts
@@ -1,11 +1,12 @@
import help from 'help.md';
import minimist from 'minimist';
import { version } from 'package.json';
import argParser from 'yargs-parser';
import { commandAliases } from '../src/utils/mergeOptions';
import run from './run/index';

const command = minimist(process.argv.slice(2), {
alias: commandAliases
const command = argParser(process.argv.slice(2), {
alias: commandAliases,
configuration: { 'camel-case-expansion': false }
});

if (command.help || (process.argv.length <= 2 && process.stdin.isTTY)) {
Expand Down
40 changes: 30 additions & 10 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 @@ -70,8 +70,8 @@
"@rollup/plugin-node-resolve": "^7.1.1",
"@rollup/plugin-replace": "^2.3.1",
"@types/micromatch": "^4.0.1",
"@types/minimist": "^1.2.0",
"@types/node": "^13.9.0",
"@types/yargs-parser": "^15.0.0",
"acorn": "^7.1.1",
"acorn-export-ns-from": "^0.1.0",
"acorn-import-meta": "^1.0.0",
Expand Down Expand Up @@ -99,7 +99,6 @@
"magic-string": "^0.25.7",
"markdownlint-cli": "^0.22.0",
"micromatch": "^4.0.2",
"minimist": "^1.2.0",
"mocha": "^7.1.0",
"node-fetch": "^2.6.0",
"nyc": "^15.0.0",
Expand All @@ -125,7 +124,8 @@
"tslib": "^1.11.1",
"tslint": "^6.0.0",
"typescript": "^3.8.3",
"url-parse": "^1.4.7"
"url-parse": "^1.4.7",
"yargs-parser": "^16.1.0"
},
"files": [
"dist/**/*.js",
Expand Down
2 changes: 1 addition & 1 deletion src/watch/watch.ts
@@ -1,4 +1,4 @@
import path from 'path';
import * as path from 'path';
import createFilter from 'rollup-pluginutils/src/createFilter';
import { rollupInternal } from '../rollup/rollup';
import {
Expand Down