hayd / deno-udd

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

Fix esm.sh urls #82

Open hayd opened 2 years ago

hayd commented 2 years ago

https://github.com/hayd/deno-udd/issues/64#issuecomment-1172871999

import * as x1 from "https://deno.land/x/fresh@1.0.1/";
import * as x2 from "https://esm.sh/preact@10.8.1";
import * as x3 from "https://esm.sh/preact@10.8.1/";
import * as x4 from "https://esm.sh/preact-render-to-string@5.2.0?deps=preact@10.8.1";
import * as x5 from "https://deno.land/x/fresh@1.0.1/";
import * as x6 from "https://esm.sh/v82/@trpc/server@10.0.0-alpha.22";

No idea what to do with ?deps here. 🤷

jrson83 commented 2 years ago

I also have an issue with deps from esm.sh. My deps.ts. I'm on Windows 11.

export * from "https://esm.sh/preact@10.10.1";
export { renderToString } from "https://esm.sh/preact-render-to-string@5.2.1?deps=preact@10.10.1";

When running udd depts.ts, nothing happens, it just console.logs deps.ts .

When I run deno run -A https://deno.land/x/udd/main.ts deps.ts it successfully updates the preact dependency, but does not touch preact-render-to-string since it includes ?deps.