diff --git a/package.json b/package.json index 7662b387..433fbdaa 100644 --- a/package.json +++ b/package.json @@ -29,7 +29,7 @@ "@eslint/js": "9.39.0", "@types/node": "24.9.2", "@typescript-eslint/eslint-plugin": "8.46.2", - "@typescript-eslint/parser": "8.46.2", + "@typescript-eslint/parser": "8.49.0", "eslint": "9.39.0", "eslint-config-prettier": "10.1.8", "globals": "16.5.0", diff --git a/scripts/utilities.mjs b/scripts/utilities.mjs index cafa4cc5..bf5ba3fd 100644 --- a/scripts/utilities.mjs +++ b/scripts/utilities.mjs @@ -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" }), + ); +} diff --git a/yarn.lock b/yarn.lock index f7ceb6fa..669b28fb 100644 --- a/yarn.lock +++ b/yarn.lock @@ -1275,6 +1275,22 @@ __metadata: languageName: node linkType: hard +"@typescript-eslint/parser@npm:8.49.0": + version: 8.49.0 + resolution: "@typescript-eslint/parser@npm:8.49.0" + dependencies: + "@typescript-eslint/scope-manager": "npm:8.49.0" + "@typescript-eslint/types": "npm:8.49.0" + "@typescript-eslint/typescript-estree": "npm:8.49.0" + "@typescript-eslint/visitor-keys": "npm:8.49.0" + debug: "npm:^4.3.4" + peerDependencies: + eslint: ^8.57.0 || ^9.0.0 + typescript: ">=4.8.4 <6.0.0" + checksum: 10c0/749e6244497f2b617351cce4ae520bc101c948b1c94c28e3bc4c5861eb999ada3b4be5dfad36a377a75675998a27d24c5ffba23ff2af743e2b4c4530f68b2673 + languageName: node + linkType: hard + "@typescript-eslint/project-service@npm:8.46.2": version: 8.46.2 resolution: "@typescript-eslint/project-service@npm:8.46.2" @@ -1288,6 +1304,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" @@ -1298,6 +1327,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" @@ -1307,6 +1346,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" @@ -1330,6 +1378,13 @@ __metadata: 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" @@ -1350,6 +1405,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" @@ -1375,6 +1449,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" @@ -3680,7 +3764,7 @@ __metadata: "@eslint/js": "npm:9.39.0" "@types/node": "npm:24.9.2" "@typescript-eslint/eslint-plugin": "npm:8.46.2" - "@typescript-eslint/parser": "npm:8.46.2" + "@typescript-eslint/parser": "npm:8.49.0" eslint: "npm:9.39.0" eslint-config-prettier: "npm:10.1.8" globals: "npm:16.5.0"