scripts/update contributor list: refactor

This commit is contained in:
Adorian Doran
2026-03-22 22:11:35 +02:00
parent f00e051e75
commit 015e50cdb8
3 changed files with 12 additions and 10 deletions

View File

@@ -8,6 +8,7 @@ export * from "./lib/mime_type.js";
export * from "./lib/bulk_actions.js";
export * from "./lib/server_api.js";
export * from "./lib/shared_constants.js";
export * from "./lib/shared_types.js";
export * from "./lib/ws_api.js";
export * from "./lib/attribute_names.js";
export * from "./lib/utils.js";
@@ -15,4 +16,4 @@ export * from "./lib/dayjs.js";
export * from "./lib/notes.js";
export * from "./lib/week_utils.js";
export { default as BUILTIN_ATTRIBUTES } from "./lib/builtin_attributes.js";
export * from "./lib/spreadsheet/render_to_html.js";
export * from "./lib/spreadsheet/render_to_html.js";

View File

@@ -0,0 +1,9 @@
export interface ContributorList {
contributors: Contributor[];
}
export interface Contributor {
name: string;
url: string;
role?: "lead-dev" | "original-dev";
}

View File

@@ -1,14 +1,6 @@
import { writeFileSync } from "fs";
export interface ContributorList {
contributors: Contributor[];
}
export interface Contributor {
name: string;
url: string;
role?: "lead-dev" | "original-dev";
}
import {Contributor, ContributorList} from "../packages/commons/";
// Keep honorific contributors at top of the list, even if their commit count
// is exceeded by another users.