Hacker News new | ask | show | jobs
by freditup 2942 days ago
Not OP, but a couple guesses off the top of my head:

* It becomes a more painful process to upgrade dependencies (have to find/replace across your codebase).

* Many versions of the same library get pulled in. If you depend on package@1.5.3 and a dependency of yours depends on package@1.5.4, that's twice the dependency size as compared to both just using 1.5.4. This matters more in the case of web app bundle size though than running local programs.

1 comments

You could have an entry file for your dependencies (let's say dependencies.ts) and reexport everything from there. When you have to update, you only have to upgrade it in the entry file and you can avoid multiple versions.
Hm, how about we call that file package.json?
How about we link them to modules downloaded onto local file system instead, just in case of network issues.
How about a cli tool to cache and build those modules/native extensions all at once? We could call that Deno Package Manager.