DEV Community

Discussion on: Deno, first approach

Collapse
 
lsagetlethias profile image
Lilian Saget-Lethias

Hello :)

1/ 3/ So dependency management is not the main goal of Deno. Dependencies should be handled and maintained by the source where the dependency file is fetched (e.g. raw.githubuser).

Basically dependencies are "locked" with git ref (branch, sha, tag).

But, to ease the process, Deno recently released a new feature in 0.23 (the article is for 0.21): lockfile ! github.com/denoland/deno/pull/3231

1/ 2/ If you want to have a more centralized way to handle all your dependencies, you can have a file named deps.ts that act as a dependency barrel (e.g. github.com/bios21/deno-intro-progr... ) ; also, import map is another option deno.land/std/manual.md#import-maps