Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
"devDependencies": {
"@eslint/js": "9.39.0",
"@types/node": "24.9.2",
"@typescript-eslint/eslint-plugin": "8.46.2",
"@typescript-eslint/eslint-plugin": "8.49.0",
"@typescript-eslint/parser": "8.46.2",
"eslint": "9.39.0",
"eslint-config-prettier": "10.1.8",
Expand Down
58 changes: 29 additions & 29 deletions scripts/utilities.mjs
Original file line number Diff line number Diff line change
@@ -1,29 +1,29 @@
import * as prettier from "prettier";
import fs from "fs/promises";
import spawn from "nano-spawn";
import repositories from "../repositories.json" with { type: "json" };
export const REPOSITORIES_JSON_FILE = new URL(
"../repositories.json",
import.meta.url,
);
export async function getRepositoryCommitHash(repository) {
const { stdout } = await spawn("git", [
"ls-remote",
"--exit-code",
`https://github.com/${repository}`,
"HEAD",
]);
const [commit] = stdout.trim().split(/\s/);
return commit;
}
export async function updatedRepositories(processFunction) {
const updated = processFunction(repositories);
await fs.writeFile(
REPOSITORIES_JSON_FILE,
await prettier.format(JSON.stringify(updated), { parser: "json" }),
);
}
import * as prettier from "prettier";
import fs from "fs/promises";
import spawn from "nano-spawn";
import repositories from "../repositories.json" with { type: "json" };

export const REPOSITORIES_JSON_FILE = new URL(
"../repositories.json",
import.meta.url,
);

export async function getRepositoryCommitHash(repository) {
const { stdout } = await spawn("git", [
"ls-remote",
"--exit-code",
`https://github.com/${repository}`,
"HEAD",
]);
const [commit] = stdout.trim().split(/\s/);
return commit;
}

export async function updatedRepositories(processFunction) {
const updated = processFunction(repositories);

await fs.writeFile(
REPOSITORIES_JSON_FILE,
await prettier.format(JSON.stringify(updated), { parser: "json" }),
);
}
121 changes: 120 additions & 1 deletion yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -1259,6 +1259,26 @@ __metadata:
languageName: node
linkType: hard

"@typescript-eslint/eslint-plugin@npm:8.49.0":
version: 8.49.0
resolution: "@typescript-eslint/eslint-plugin@npm:8.49.0"
dependencies:
"@eslint-community/regexpp": "npm:^4.10.0"
"@typescript-eslint/scope-manager": "npm:8.49.0"
"@typescript-eslint/type-utils": "npm:8.49.0"
"@typescript-eslint/utils": "npm:8.49.0"
"@typescript-eslint/visitor-keys": "npm:8.49.0"
ignore: "npm:^7.0.0"
natural-compare: "npm:^1.4.0"
ts-api-utils: "npm:^2.1.0"
peerDependencies:
"@typescript-eslint/parser": ^8.49.0
eslint: ^8.57.0 || ^9.0.0
typescript: ">=4.8.4 <6.0.0"
checksum: 10c0/f5a6ac622bebad31e6e561caa2e7364bac82e259d487e1832f90c41040c856ed360891c710098f43d3541a17703a429ef023b0f5bb573cc05ee52200096f252f
languageName: node
linkType: hard

"@typescript-eslint/parser@npm:8.46.2":
version: 8.46.2
resolution: "@typescript-eslint/parser@npm:8.46.2"
Expand Down Expand Up @@ -1288,6 +1308,19 @@ __metadata:
languageName: node
linkType: hard

"@typescript-eslint/project-service@npm:8.49.0":
version: 8.49.0
resolution: "@typescript-eslint/project-service@npm:8.49.0"
dependencies:
"@typescript-eslint/tsconfig-utils": "npm:^8.49.0"
"@typescript-eslint/types": "npm:^8.49.0"
debug: "npm:^4.3.4"
peerDependencies:
typescript: ">=4.8.4 <6.0.0"
checksum: 10c0/da6342fe99786c9d9c1d2fc3291ffd62afa043b42f4c7b5c1f8b3a6af266bd9af662281a0905ee70b069a811b63faf7efb63932f6bf55cb138e42309e4ced425
languageName: node
linkType: hard

"@typescript-eslint/scope-manager@npm:8.46.2":
version: 8.46.2
resolution: "@typescript-eslint/scope-manager@npm:8.46.2"
Expand All @@ -1298,6 +1331,16 @@ __metadata:
languageName: node
linkType: hard

"@typescript-eslint/scope-manager@npm:8.49.0":
version: 8.49.0
resolution: "@typescript-eslint/scope-manager@npm:8.49.0"
dependencies:
"@typescript-eslint/types": "npm:8.49.0"
"@typescript-eslint/visitor-keys": "npm:8.49.0"
checksum: 10c0/fe7a036e186e8cb933375ecc3b6ea8ce7604f1dd53d72c24d26158cbc2563527f8c1ba7a894b58bcbd079315fe950ff3c5eb5f7061658f39ff473c04d54ef701
languageName: node
linkType: hard

"@typescript-eslint/tsconfig-utils@npm:8.46.2, @typescript-eslint/tsconfig-utils@npm:^8.46.2":
version: 8.46.2
resolution: "@typescript-eslint/tsconfig-utils@npm:8.46.2"
Expand All @@ -1307,6 +1350,15 @@ __metadata:
languageName: node
linkType: hard

"@typescript-eslint/tsconfig-utils@npm:8.49.0, @typescript-eslint/tsconfig-utils@npm:^8.49.0":
version: 8.49.0
resolution: "@typescript-eslint/tsconfig-utils@npm:8.49.0"
peerDependencies:
typescript: ">=4.8.4 <6.0.0"
checksum: 10c0/1b255149d3f0d99b6cf5df4b62925a79f44f243748c6e877a7cf1dd0cdbff7411f2971d5e9fa85472ed76055bd1826e55c1adc99f3d82f504bd9fcd6e76f4b3a
languageName: node
linkType: hard

"@typescript-eslint/type-utils@npm:8.46.2":
version: 8.46.2
resolution: "@typescript-eslint/type-utils@npm:8.46.2"
Expand All @@ -1323,13 +1375,36 @@ __metadata:
languageName: node
linkType: hard

"@typescript-eslint/type-utils@npm:8.49.0":
version: 8.49.0
resolution: "@typescript-eslint/type-utils@npm:8.49.0"
dependencies:
"@typescript-eslint/types": "npm:8.49.0"
"@typescript-eslint/typescript-estree": "npm:8.49.0"
"@typescript-eslint/utils": "npm:8.49.0"
debug: "npm:^4.3.4"
ts-api-utils: "npm:^2.1.0"
peerDependencies:
eslint: ^8.57.0 || ^9.0.0
typescript: ">=4.8.4 <6.0.0"
checksum: 10c0/0b5bdcbd100469acc6b02642f1bface12347423fc065b57fce94eef2f059a30ada1dfada2d172531305d4a48640c51236634f25eaa9529a400447862837ff595
languageName: node
linkType: hard

"@typescript-eslint/types@npm:8.46.2, @typescript-eslint/types@npm:^8.46.2":
version: 8.46.2
resolution: "@typescript-eslint/types@npm:8.46.2"
checksum: 10c0/611716bae2369a1b8001c7f6cc03c5ecadfb956643cbbe27269defd28a61d43fe52eda008d7a09568b0be50c502e8292bf767b246366004283476e9a971b6fbc
languageName: node
linkType: hard

"@typescript-eslint/types@npm:8.49.0, @typescript-eslint/types@npm:^8.49.0":
version: 8.49.0
resolution: "@typescript-eslint/types@npm:8.49.0"
checksum: 10c0/75b26207b142576cf9af86406815b440c7f4bc6645fa58c58a3d781a5d80a39ba7e44d4b4df297980019a7aa1db10da5ac515191aaaf0f1ef6007996c126d8f9
languageName: node
linkType: hard

"@typescript-eslint/typescript-estree@npm:8.46.2":
version: 8.46.2
resolution: "@typescript-eslint/typescript-estree@npm:8.46.2"
Expand All @@ -1350,6 +1425,25 @@ __metadata:
languageName: node
linkType: hard

"@typescript-eslint/typescript-estree@npm:8.49.0":
version: 8.49.0
resolution: "@typescript-eslint/typescript-estree@npm:8.49.0"
dependencies:
"@typescript-eslint/project-service": "npm:8.49.0"
"@typescript-eslint/tsconfig-utils": "npm:8.49.0"
"@typescript-eslint/types": "npm:8.49.0"
"@typescript-eslint/visitor-keys": "npm:8.49.0"
debug: "npm:^4.3.4"
minimatch: "npm:^9.0.4"
semver: "npm:^7.6.0"
tinyglobby: "npm:^0.2.15"
ts-api-utils: "npm:^2.1.0"
peerDependencies:
typescript: ">=4.8.4 <6.0.0"
checksum: 10c0/91d0e4ed00021085142c2845571cc91c89b700ee184eb508e8d1f97a02533c029630f00c3f0f796942b28397ec9f61502b153c81971d228893363fc546bbb341
languageName: node
linkType: hard

"@typescript-eslint/utils@npm:8.46.2":
version: 8.46.2
resolution: "@typescript-eslint/utils@npm:8.46.2"
Expand All @@ -1365,6 +1459,21 @@ __metadata:
languageName: node
linkType: hard

"@typescript-eslint/utils@npm:8.49.0":
version: 8.49.0
resolution: "@typescript-eslint/utils@npm:8.49.0"
dependencies:
"@eslint-community/eslint-utils": "npm:^4.7.0"
"@typescript-eslint/scope-manager": "npm:8.49.0"
"@typescript-eslint/types": "npm:8.49.0"
"@typescript-eslint/typescript-estree": "npm:8.49.0"
peerDependencies:
eslint: ^8.57.0 || ^9.0.0
typescript: ">=4.8.4 <6.0.0"
checksum: 10c0/d10fe4d844dacb2f76f0a6e018455d94ba29204845d57248ae220030bda7e13e0e7b488b3ccf8ce1b5d577e1e1775cbdbbff911261a586d9bc7fdfc3cc001697
languageName: node
linkType: hard

"@typescript-eslint/visitor-keys@npm:8.46.2":
version: 8.46.2
resolution: "@typescript-eslint/visitor-keys@npm:8.46.2"
Expand All @@ -1375,6 +1484,16 @@ __metadata:
languageName: node
linkType: hard

"@typescript-eslint/visitor-keys@npm:8.49.0":
version: 8.49.0
resolution: "@typescript-eslint/visitor-keys@npm:8.49.0"
dependencies:
"@typescript-eslint/types": "npm:8.49.0"
eslint-visitor-keys: "npm:^4.2.1"
checksum: 10c0/442c47bf8e46dda50a765cddbd524f6fef9e76acc3d11de2505ca7097054f24e53f12fe57be34b72fb56115f8f74499573a2704f3465bffdb96834083b616cf1
languageName: node
linkType: hard

"@typescript/vfs@npm:^1.5.2":
version: 1.6.2
resolution: "@typescript/vfs@npm:1.6.2"
Expand Down Expand Up @@ -3679,7 +3798,7 @@ __metadata:
"@actions/github": "npm:4.0.0"
"@eslint/js": "npm:9.39.0"
"@types/node": "npm:24.9.2"
"@typescript-eslint/eslint-plugin": "npm:8.46.2"
"@typescript-eslint/eslint-plugin": "npm:8.49.0"
"@typescript-eslint/parser": "npm:8.46.2"
eslint: "npm:9.39.0"
eslint-config-prettier: "npm:10.1.8"
Expand Down
Loading