hayd / deno-udd

Update Deno Dependencies - update dependency urls to their latest published versions
MIT License
329 stars 18 forks source link

Discussion: support generating import map file instead of modifying deps.ts #7

Open crabmusket opened 4 years ago

crabmusket commented 4 years ago

Some application developers may prefer import maps instead of the deps.ts pattern. Would it be within the scope of udd to create/modify an import map file instead of using deps.ts?

hayd commented 4 years ago

For sure, in principle it should work already but I've neglected to add tests.

udd importmap.json

I expect to work (if not is a bug). But let's not close this til it's tested.

crabmusket commented 4 years ago

Awesome, I didn't see this documented. I'll give it a test sometime soon, I have a side-project I'm deploying with Deno using import maps. Deno 0.42.0 is scheduled out soon so I'll have to update my std dependency ;)

hayd commented 4 years ago

Note: this will have to be special cased once #8 is included in deno (i.e. deno info as json / api).