denoland / dnt

Deno to npm package build tool.
MIT License
1.25k stars 40 forks source link

Property 'Command' does not exist on type 'typeof Deno' #434

Open hallvors opened 1 month ago

hallvors commented 1 month ago

Using Deno 2, where Deno.run() per the docs is replaced with Deno.Command(). It seems the shim is not updated to match this change yet, since when I try to build a Node module using dnt, I get this error during the type checking phase:

error TS2339: Property 'Command' does not exist on type 'typeof Deno'.

51 const cmd = new dntShim.Deno.Command("xmllint", {

It would be great to be able to use dnt, it seems like a tool with great potential. Thanks in advance for any fixes.

barrysimpson commented 1 month ago

Found an issue in the shims repo about this.