typeshare icon indicating copy to clipboard operation
typeshare copied to clipboard

CLI ignores nonexistent path

Open stefnotch opened this issue 1 year ago • 2 comments

Running typeshare ./path/that/does/not/exist --lang=typescript --output-file=my_typescript_definitions.ts does not seem to throw an error

stefnotch avatar Apr 17 '23 10:04 stefnotch

Hello, and thank you for reporting this! I'll be looking into this!

LuminaSapphira avatar Apr 17 '23 16:04 LuminaSapphira

At the moment, we are discarding errors that result from converting the CLI-provided paths to walkable iterators. I'll bring this up with the team to discuss if there's a better way to handle these errors.

LuminaSapphira avatar Apr 17 '23 16:04 LuminaSapphira