typescript-coverage-report icon indicating copy to clipboard operation
typescript-coverage-report copied to clipboard

Obligatory Deno question

Open vegerot opened this issue 4 years ago • 6 comments

It seems hard to go into a JavaScript/TypeScript library's issues and not have someone asking about Deno

Well, here it is: does typescript-coverage-report support Deno?

vegerot avatar Sep 25 '21 22:09 vegerot

Hello @vegerot sorry didn't see this. As far as I understand Deno is for runtime, where this tool tests and generates type coverage of your project.

Am I missing something here?

alexcanessa avatar Dec 20 '21 15:12 alexcanessa

Sorry, I should have explained more clearly. In the Install instructions you give instructions to install a Node.js package, but no Deno instructions. I would like something like

deno install --allow-read https://alexcanessa.com/typescript-coverage-report.ts

or something 🙂

I'll probably open an issue on https://github.com/plantain-00/type-coverage too to ask about a Deno API for that too 😁

Thanks

vegerot avatar Dec 21 '21 22:12 vegerot

Ok ok, so just a README.md update? Fancy contributing too? 🎉

alexcanessa avatar Dec 22 '21 14:12 alexcanessa

Just a README.md update if that's all that's needed. Does this package use any Node libraries (like fs, path, etc.)?

Does running the above command work for you?

vegerot avatar Dec 22 '21 18:12 vegerot

@vegerot yes it does use both fs and path. Are you able to check yourself? I'm assuming you got Deno?

alexcanessa avatar Dec 23 '21 09:12 alexcanessa

Well first of all, I'm not even sure which URL I should use to install it.

https://deno.land/manual/tools/script_installer#script-installer

Should I try unpkg?

Note that Deno does not have any Node.js libraries, so using fs or path will not work

vegerot avatar Dec 27 '21 19:12 vegerot