Skip to content

Commit

Permalink
Update the yargs package to the latest version
Browse files Browse the repository at this point in the history
While I wasn't able to figure out *exactly* why the old format didn't work, re-factoring the `parseOptions` function to use `yargs` differently "just worked" so that's hopefully good enough here.
With these changes everything related to a *particular* option now appears in one place, rather than being spread out, which aids readability in my opinion. Also, the options are now sorted alphabetically, to make it easier to find a particular one.

https://www.npmjs.com/package/yargs
  • Loading branch information
Snuffleupagus committed Apr 16, 2021
1 parent ae48d07 commit c988712
Show file tree
Hide file tree
Showing 3 changed files with 181 additions and 267 deletions.
253 changes: 66 additions & 187 deletions package-lock.json

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

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@
"webpack": "^5.30.0",
"webpack-stream": "^6.1.2",
"wintersmith": "^2.5.0",
"yargs": "^11.1.1"
"yargs": "^16.2.0"
},
"scripts": {
"postinstall": "cross-env PUPPETEER_PRODUCT=firefox node node_modules/puppeteer/install.js",
Expand Down

0 comments on commit c988712

Please sign in to comment.