denoland / denoland/dnt

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

Open
#434 1 comment 2 reactions 0 assignees View on GitHub
Dominant language
Rust
Stars
1.3k
Forks
49
PR merge metrics
No merged PRs in 30d

Description

Using Deno 2, where `Deno.run()` per the [docs](https://docs.deno.com/api/deno/~/Deno.Command) 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.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.