You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
With this said, I think such a dependency management layer on top of TS imports has some non-trivial implications, for instance:
when I vr add a dependency, what members are re-exported? In your example you use a namespace export, but how do you choose the name and make sure to avoid collisions? Also, some users would probably find unacceptable having to use namespaces instead of named imports. On the other hand re-exporting everything from the module (export * from ...) loses the default export and raises the risk of name collisions.
What if the user doesn't use/doesn't want to use the deps.ts/dev_deps.ts pattern?
Probably import maps - that module.land uses - are more suitable for this, although they're currently marked as unstable and are not 100% guaranteed to remain.
As for the update functionality, udd and dedep essentially already do this pretty well.
Is your feature request related to a problem? Please describe.
npm cli provides a way to manage dependencies using npm install.
npm install express
This command either adds a dependency or devDependency in package.json (documentation)
Although velociraptor is just advertised as a script runner for deno, it would be more useful if it can mange dependencies too (in
deps.ts
)Describe the solution you'd like
velociraptor cli has an equivalent cli for add dependency.
vr add https://deno.land/x/oak/mod.ts
The above command could populate dependency in
deps.ts
Describe alternatives you've considered
Manually managing dependencies in
deps.ts
The text was updated successfully, but these errors were encountered: