You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 175e1c7
Browse filesBrowse the repository at this point in the historyBrowse files
claude: tool to find cycles with transitive dependencies to async modules
If you have a dependency cycle where all of the modules are async
(transitively because of their dependencies) then it would probably
deadlock if you ran it.
esbuild gives up and emits invalid JS.
So you must either break these cycles, or prevent the async from
propagating to the cycles.
This tool uses ILP to show
- Minimal places to break remove static imports to stop transitive
dependencies before they hit cycles (minimal hitting set)
- Minimal places to remove static imports to break these cycles
(minimum feedback arc set)
Co-Authored-By: Claude <noreply@anthropic.com>
--toon [filename] Output edges in TOON format (default: cycles.toon)
164
165
165
-
$ quarto run quarto.ts
166
+
Examples:
167
+
$ quarto run --dev package/src/common/import-report/explain-all-cycles.ts src/quarto.ts
168
+
$ quarto run --dev package/src/common/import-report/explain-all-cycles.ts src/quarto.ts --simplify core/ command/ --toon
169
+
$ quarto run --dev package/src/common/import-report/explain-all-cycles.ts src/quarto.ts --graph cycles.dot
166
170
167
-
If the second parameter is "--graph", then this program outputs the .dot specification to the file given by the third parameter, rather opening a full report.
171
+
If no output option is given, opens an interactive preview.
168
172
`,
169
173
);
170
174
Deno.exit(1);
@@ -187,7 +191,17 @@ If the second parameter is "--graph", then this program outputs the .dot specifi
--toon [file] Output edges in TOON format (default: import-chain.toon)
156
161
157
162
Examples:
158
163
159
-
From ./src:
164
+
From project root:
160
165
161
-
$ quarto run ../package/scripts/common/explain-import-chain.ts command/render/render.ts core/esbuild.ts
162
-
$ quarto run ../package/scripts/common/explain-import-chain.ts command/check/cmd.ts core/lib/external/regexpp.mjs
166
+
$ quarto run --dev package/src/common/import-report/explain-import-chain.ts src/command/render/render.ts src/core/esbuild.ts
167
+
$ quarto run --dev package/src/common/import-report/explain-import-chain.ts src/command/check/cmd.ts src/core/lib/external/regexpp.mjs
168
+
$ quarto run --dev package/src/common/import-report/explain-import-chain.ts src/command/render/render.ts src/core/esbuild.ts --simplify --toon
163
169
164
170
If no dependencies exist, this script will report that:
165
171
166
-
$ quarto run ../package/scripts/common/explain-import-chain.ts ../package/src/bld.ts core/lib/external/tree-sitter-deno.js
172
+
$ quarto run --dev package/src/common/import-report/explain-import-chain.ts package/src/bld.ts src/core/lib/external/tree-sitter-deno.js
167
173
168
174
package/src/bld.ts does not depend on src/core/lib/external/tree-sitter-deno.js
169
175
170
-
If the third parameter is "--graph", then this program outputs the .dot specification to the file given by the fourth parameter, rather opening a full report.
176
+
If no output option is given, opens an interactive preview.
0 commit comments