jordanbtucker
Remove Dependencies from `deno.lock` file
deno add
will add an entry to imports
in deno.json
, but it doesn't update deno.lock
. That happens when you run deno run
or deno cache
. So, even if deno remove
was a command, it wouldn't update deno.lock
.
Also, deno run
and deno cache
will write to deno.lock
in an additive way. This is because you may have multiple entry points in your projects. If you use --lock-write
like this: deno cache --lock-write mod.ts cli.ts
, then Deno will rewrite deno.lock
with only the imports from both mod.ts
and cli.ts
recursively. This is how you would remove npm:postgres
from deno.lock
.5 replies