Commit c674ce9
committed
Add
Add analyze subcommand that scans .typ files for @Preview and @Local
imports, follows transitive deps of @Local packages, and outputs
structured JSON to stdout without downloading or copying anything.
- Restructure CLI to subcommands (gather/analyze) with backwards compat
- Support reading config from stdin with `-`
- Move all println! to eprintln! so stdout is clean for JSON output
- Add AnalyzeResult/ImportInfo types with serde Serialize
- Deduplicate imports by (namespace, name, version), direct winstypst-gather analyze subcommand, bump to 0.2.01 parent 2d495fa commit c674ce9
File tree
5 files changed
+1215
-21
lines changed- src
- tests
5 files changed
+1215
-21
lines changedSome generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
| 3 | + | |
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
| |||
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
| 13 | + | |
13 | 14 | | |
14 | 15 | | |
15 | 16 | | |
16 | 17 | | |
17 | 18 | | |
18 | 19 | | |
19 | 20 | | |
| 21 | + | |
0 commit comments