Closed rqy2002 closed 1 year ago
目前似乎有不能编译的问题, 我正在排查
因为 @types
仓库的奇妙 bug 不得已升级了 typescript
不更新 typescript 的话, 由于 @types/yargs
中错误使用了 4.1 版本才出现的 as NewType 语法, 会导致编译错误
然后vscode加载的时候爆炸了:
yargs(...).option(...).parseSync is not a function
我把这段逻辑移到serve()
前面去了,毕竟一开始把这段refactor出来就是为了当库用
closed #21.
使用了 yargs 库.