lukeautry / tsoa

Build OpenAPI-compliant REST APIs using TypeScript and Node
MIT License
3.32k stars 481 forks source link

[feat] Update cli.ts, add `-c` support absolute path #1643

Open zhangfisher opened 3 weeks ago

zhangfisher commented 3 weeks ago

The - c parameter of tsoa does not support specifying an absolute path

tsoa spec-and-routes -c  c:/work/code/mylib/tsoa.json // not work

this commit is add support specifying an absolute path.

tsoa spec-and-routes -c  c:/work/code/mylib/tsoa.json // now it is work

All Submissions:

Closing issues

Put closes #XXXX (where XXXX is the issue number) in your comment to auto-close the issue that your PR fixes.

If this is a new feature submission:

Potential Problems With The Approach

Test plan

WoH commented 2 weeks ago

Are you sure these tests did not pass before making the code change? Haven't checked yet, but it seems like they may be unrelated

zhangfisher commented 2 weeks ago

I have new unrelated commits before the PR is accepted

It is automatic and can be ignored

By the way, PR review is too slow

WoH commented 2 weeks ago

I assumed these trivially spottable mistakes (unrelated commits, superfluous artifacts, incorrect types/failing CI) would be noticed during the self-review of the PR