hasundue / molt

Update dependencies the Deno way
https://jsr.io/@molt
MIT License
60 stars 5 forks source link

Feature: Update `// @deno-types="..."` #184

Open Milly opened 1 month ago

Milly commented 1 month ago

Feature request. When using npm: packages, we may need to get types from @types/.... It would be nice to be able to update the package version in special comments like following:

// @deno-types="npm:@types/foo@1.2.3"
import { foo } from "npm:foo@1.3.9";

If this special comment is present, deno will write the package information into the deno.lock file just as if it were a package specified in a normal import statement.

hasundue commented 1 month ago

I've been overlooked that. Thanks for pointing it out.