mirror of
https://github.com/oven-sh/bun
synced 2026-02-02 15:08:46 +00:00
5 lines
271 B
Bash
5 lines
271 B
Bash
#!/usr/bin/env bash
|
|
|
|
rg "@import\(\"(.*\.zig)\"\)" src -r "\$1" --only-matching -I | xargs basename | sort | uniq > /tmp/imported-names.txt
|
|
find src -iname "*.zig" | xargs basename | sort | uniq > /tmp/all-names.txt
|
|
comm -1 -3 /tmp/imported-names.txt /tmp/all-names.txt |