Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
update(yargs-parser): updates the yargs-parser dependency (#2326)
As of `v19`, `yargs-parser` is now shipping its own types. The types seem to be working fairly well in our codebase, with the hiccup that one type was corrected, `_` can be a number or string. ``` node example.mjs apple 99 batman { _: [ 'apple', 99, 'batman' ] } ``` FYI, `yargs-parser` now supports ESM: ```js import parser from 'yargs-parser' console.info(parser(process.argv.slice(2))) ``` **and Deno 😮** ```typescript import parser from "https://deno.land/x/yargs_parser/deno.ts"; const argv = parser('--foo=99 --bar=9987930', { string: ['bar'] }) console.log(argv) ```
- Loading branch information