refactor(scripts): use deno's std on jsr (#1091)

This commit is contained in:
uncenter authored and GitHub committed 2024-07-19 14:58:14 -04:00
1 parent 89c3e2a7ef
commit a801279ae1
18 files changed
+178 -290

No files matched your search

+2 -2
View File
@@ -1,5 +1,5 @@
#!/usr/bin/env -S deno run -A
import { join } from "std/path/mod.ts";
import { join } from "@std/path";
import { portsSchema, REPO_ROOT, userStylesSchema } from "@/deps.ts";
import type { PortsSchema, UserStylesSchema } from "@/types/mod.ts";
@@ -53,7 +53,7 @@ await syncIssueLabels(userstylesData.userstyles);
* Keep `.github/CODEOWNERS` in sync with the userstyle metadata.
*/
const maintainersCodeOwners = () => {
return Object.entries(userstylesData.userstyles)
return Object.entries(userstylesData.userstyles!)
.filter(([_, { "current-maintainers": currentMaintainers }]) =>
currentMaintainers.length > 0
)