Skip to content

Commit d47eabf

Browse files
author
Andrew Luca
authored
fix(browser-sync): adapt yargs version method call
In last 8 days I saw that `yargs` was upgrade `6.4.0` to `^15.4.1` And from the changelogs I saw that there are a lot of breaking changes. - https://github.com/yargs/yargs/blob/master/docs/CHANGELOG-historical.md - https://github.com/yargs/yargs/blob/master/CHANGELOG.md I took a look and it seems only `yargs.version` was changed and is used in codebase. Closes #1782
1 parent 2d9dd0a commit d47eabf

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

  • packages/browser-sync/lib

packages/browser-sync/lib/bin.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ function runFromCli() {
4343
.command("init", "Create a configuration file")
4444
.command("reload", "Send a reload event over HTTP protocol")
4545
.command("recipe", "Generate the files for a recipe")
46-
.version(() => pkg.version)
46+
.version(pkg.version)
4747
.epilogue(
4848
[
4949
"For help running a certain command, type <command> --help",

0 commit comments

Comments
 (0)