Re:Trex: A package manager for Deno
by 29athrowaway on Saturday July 11, 2020 @06:08PM
(#23806548)
It also reintroduces one of the main problems of node back into deno. https://youtu.be/M3BM9TB-8yA?t=581
In my opinion, Trex is actually working against what npm introduced to Node. Though I don't exactly know what "main problem" you're referring to, I can say that:
1) Trex is supporting multiple module registries, not just one. (Thus not necessarily centralized) 2) Trex is not associated with one entity in particular. This means that they have no company dedicated to hosting modules in house (another reason that they aren't centralized) 3) Node's package.json included many other things than just imports. Using Trex is completely optional, and if you do use it, an import map does not hinder one's development workflow. In my opinion, it makes dependencies easier to manage.
Re:Trex: A package manager for Deno
by buttercubz on Saturday July 11, 2020 @10:55PM
(#23808371)
not really since it is around imports map something native to deno, the purpose is to make it something familiar like npm
Re:Trex: A package manager for Deno
by 29athrowaway on Saturday July 11, 2020 @11:10PM
(#23808476)
npm should not be a model to be imitated. npm modules make security audits impossible.
Re:Trex: A package manager for Deno
by buttercubz on Saturday July 11, 2020 @11:21PM
(#23808530)
Trex currently uses deno.land/std, deno.land/x, nest.land and any repository. nest.land provides a blockchain-based service, we just take the way npm is used for our CLI. Trex doesn't try to look for the same npm issues, we just take the import maps and create a tool to manipulate them in a friendly way for those who already know the nodejs ecosystem
For the same number of times as in days I'm torn on wether this is good.
On one hand, it's a bridge for node people and adds some nice comfort tooling.
On the other, it means you don't get to really understand how packages and bundling are supposed to work.
I may just end up writing a post on this tonight.