deno-udd icon indicating copy to clipboard operation
deno-udd copied to clipboard

[bug/feat] deno.lock support

Open Bellisario opened this issue 2 years ago • 2 comments

After Deno 1.18.0 release, I discovered Deno created a file called deno.lock, I think it's similar to NPM lockfile. Udd bug is that dependencies update seems not to handle (ex. edit, create) the file, which I is kept intact (or not created) after update.

A workaround I found is to update deps with Udd, then remove the lockfile (if present) and run the project. This makes sure Deno automatically creates this file.

Would be great and fair if Udd updates automatically all dependencies on lockfile, too, with all hashes.

Bellisario avatar Nov 15 '22 16:11 Bellisario

I think udd can just run deno cache file.ts after updating the deps, this will automatically update the lock file

sigmaSd avatar Nov 19 '22 18:11 sigmaSd

I suppose this could be an option --lock (?), like --test, to automatically do this... 🤔

hayd avatar Nov 20 '22 01:11 hayd