Closed deer closed 9 months ago
My bad, I usually change it to "netzo/": "../../../netzo/lib/"
during development and it apparently slipped through to production. It should point to a pinned absolute version e.g. "netzo/": "https://deno.land/x/netzo@0.4.12/"
. However, with regards to codegen, a dynamic approach like the one you point to from fresh might be beneficial, especially once netzo add
lands, which should handle include proper dependencies management (although it is not strictly required in its initial implementation).
Just released a patch release 0.4.15
with a fix... keeping this open to track how to best handle dependencies going forward, https://jsr.io might be relevant here...
What you have right now in your two
deno.json
files in the templates is not a scalable or correct solution. You have"netzo/": "../../../netzo/lib/",
hardcoded, but this is undefined on the average user's computer.Instead you need to do something similar to what fresh does. See https://github.com/denoland/fresh/blob/d19c22d5921bdf21de9a7d7bc043b8523ac81893/src/dev/imports.ts#L10 for details:
That way, even if I run the cli remotely, it should still manage to install correctly. (I agree the entire templating story in fresh could be improved, since it's basically non-existent!)