earthstar-project / earthstar

Storage for private, distributed, offline-first applications.
https://earthstar-project.org
GNU Lesser General Public License v3.0
632 stars 20 forks source link

[Deno] create a lockfile #224

Closed cinnamon-bun closed 1 year ago

cinnamon-bun commented 2 years ago

What's the problem you want solved?

We should lock our dependencies for better security? https://deno.land/manual@v1.17.2/linking_to_external_code/integrity_checking

Is there a solution you'd like to recommend?

Add a make command to create a lock file

deno cache --import-map=import_map.json --lock=lock.json --lock-write deps.ts

And use the lock file by adding --lock=lock.json in each Make command.