deno icon indicating copy to clipboard operation
deno copied to clipboard

suggestion: check for circular dependencies in `deno publish --dry-run`

Open iuioiua opened this issue 1 year ago • 1 comments

Currently, deno publish checks for circular dependencies between packages within the same workspace project. It'd be nice if deno publish --dry-run did this too. In std, we compensate for this lack of functionality in deno publish --dry-run by using our own circular dependencies check. image

iuioiua avatar Apr 29 '24 10:04 iuioiua

Why limit it to deno publish? I would like to check for circular imports in my CI and fail the pipeline if any are found. I think making it a rule in deno lint would be really awesome, if that's possible. Or if not, maybe something like deno graph --circular src

(I tried using madge but it's outdated and not designed for Deno.)

alexgleason avatar Oct 19 '24 23:10 alexgleason