Skip to content

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

Description

@hallvors

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions