-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor: use Node.js built-in CLI parser
BREAKING CHANGES: require Node.js 20.0.0 or above This allows us to remove the Commander.js dependency. This reduces the standalone binary size from 77KB to 45KB (58%). I disabled TypeScript's `exactOptionalPropertyTypes` because Node.js `parseArgs` return type allow `undefined` to every possible fields. And we pass the returned object to a function taking a `Partial`. `Partial` makes optional the fields, but doesn't allow `undefined`. We could fix the issue by changing the ret type of Node.js `parseArgs`.
- Loading branch information
Showing
5 changed files
with
118 additions
and
99 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters