deno-udd icon indicating copy to clipboard operation
deno-udd copied to clipboard

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

Open crabmusket opened this issue 5 years ago • 3 comments
trafficstars

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?

crabmusket avatar Apr 20 '20 05:04 crabmusket

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.

hayd avatar Apr 20 '20 06:04 hayd

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 ;)

crabmusket avatar Apr 20 '20 07:04 crabmusket

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

hayd avatar Jun 17 '20 23:06 hayd