源码快照 @ 2026-09-02 (source-only, 剔除非源码素材)
This commit is contained in:
commit
04bac1f6e2
2200 files changed
+489415
No files matched your search
@@ -0,0 +1,13 @@
|
||||
import { readdir, readFile } from "node:fs/promises";
|
||||
|
||||
const specs = new URL("../specs/", import.meta.url);
|
||||
const files = (await readdir(specs))
|
||||
.filter((file) => file.endsWith(".e2e.test.ts"))
|
||||
.sort();
|
||||
|
||||
for (const file of files) {
|
||||
const source = await readFile(new URL(file, specs), "utf8");
|
||||
if (/import\s*\{[^}]*\bdesktop\b[^}]*\}\s*from\s*["']@openwork\/hosts["']/s.test(source)) {
|
||||
console.log(file);
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user