fix(ignore): bump typescript from 5.9.3 to 6.0.2 (#1112)

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Koen Kanters <koenkanters94@gmail.com>
Co-authored-by: Nerivec <62446222+Nerivec@users.noreply.github.com>
This commit is contained in:
dependabot[bot]
2026-04-14 20:35:31 +02:00
committed by GitHub
parent e3309abbac
commit 757710b4ee
27 changed files with 50 additions and 51 deletions

View File

@@ -64,7 +64,7 @@ export async function download(): Promise<void> {
const appUrl: ImagesJsonBuildPart | undefined = page.builds[0].parts.find((part) => part.type === "app");
if (!appUrl || !appUrl.ota) {
if (!appUrl?.ota) {
console.error(`${logPrefix} No image found.`);
continue;
}

View File

@@ -1,6 +1,6 @@
import {existsSync} from "node:fs";
import {join} from "node:path";
import {BASE_INDEX_MANIFEST_FILENAME, BASE_REPO_URL, PREV_INDEX_MANIFEST_FILENAME, REPO_BRANCH, readManifest} from "./common";
import {BASE_INDEX_MANIFEST_FILENAME, BASE_REPO_URL, PREV_INDEX_MANIFEST_FILENAME, REPO_BRANCH, readManifest} from "./common.js";
const baseManifest = readManifest(BASE_INDEX_MANIFEST_FILENAME);

View File

@@ -3,7 +3,7 @@ import {exec} from "node:child_process";
import {createHash} from "node:crypto";
import {existsSync, mkdirSync, readFileSync, renameSync, rmSync, writeFileSync} from "node:fs";
import path from "node:path";
import type {ExtraMetas, ExtraMetasWithFileName, ImageHeader, RepoImageMeta} from "./types";
import type {ExtraMetas, ExtraMetasWithFileName, ImageHeader, RepoImageMeta} from "./types.js";
export const UPGRADE_FILE_IDENTIFIER = Buffer.from([0x1e, 0xf1, 0xee, 0x0b]);
export const BASE_REPO_URL = "https://raw.githubusercontent.com/Koenkk/zigbee-OTA/";

View File

@@ -1,5 +1,5 @@
import {BASE_INDEX_MANIFEST_FILENAME, PREV_INDEX_MANIFEST_FILENAME, readManifest} from "./common";
import type {RepoImageMeta} from "./types";
import {BASE_INDEX_MANIFEST_FILENAME, PREV_INDEX_MANIFEST_FILENAME, readManifest} from "./common.js";
import type {RepoImageMeta} from "./types.js";
const USAGE = `Usage: tsx src/find_matches.ts <BASE|PREV> <imageType> <manufacturerCode> [modelId] [manufacturerName]
Examples:

View File

@@ -1,7 +1,6 @@
import assert from "node:assert";
import {existsSync, mkdirSync, writeFileSync} from "node:fs";
import type * as CoreApi from "@actions/core";
import type {Context} from "@actions/github/lib/context";
import type {Octokit} from "@octokit/rest";
import {
@@ -17,6 +16,7 @@ import {
} from "./common.js";
import {getChangedOtaFiles} from "./ghw_get_changed_ota_files.js";
import {processOtaFiles} from "./ghw_process_ota_files.js";
import type {Context} from "./types.js";
function throwError(comment: string): void {
writeFileSync(PR_ARTIFACT_ERROR_FILEPATH, comment);

View File

@@ -1,8 +1,8 @@
import {readdirSync, readFileSync, writeFileSync} from "node:fs";
import path from "node:path";
import type * as CoreApi from "@actions/core";
import type {Context} from "@actions/github/lib/context";
import type {Octokit} from "@octokit/rest";
import type {Context} from "./types.js";
export const CACERTS_DIR = "cacerts";
export const CACERTS_CONCAT_FILEPATH = "cacerts.pem";

View File

@@ -1,8 +1,7 @@
import type * as CoreApi from "@actions/core";
import type {Context} from "@actions/github/lib/context";
import type {Octokit} from "@octokit/rest";
import {BASE_IMAGES_DIR, BASE_INDEX_MANIFEST_FILENAME, execute, PREV_IMAGES_DIR, PREV_INDEX_MANIFEST_FILENAME, readManifest} from "./common.js";
import type {RepoImageMeta} from "./types.js";
import type {Context, RepoImageMeta} from "./types.js";
// about 3 lines
const MAX_RELEASE_NOTES_LENGTH = 380;

View File

@@ -1,7 +1,7 @@
import assert from "node:assert";
import type * as CoreApi from "@actions/core";
import type {Context} from "@actions/github/lib/context";
import type {Octokit} from "@octokit/rest";
import type {Context} from "./types.js";
const IGNORE_OTA_WORKFLOW_LABEL = "ignore-ota-workflow";

View File

@@ -1,9 +1,9 @@
import assert from "node:assert";
import type * as CoreApi from "@actions/core";
import type {Context} from "@actions/github/lib/context";
import type {Octokit} from "@octokit/rest";
import {BASE_IMAGES_DIR} from "./common.js";
import type {Context} from "./types.js";
export async function getChangedOtaFiles(
github: Octokit,

View File

@@ -1,10 +1,10 @@
import {readFileSync, writeFileSync} from "node:fs";
import {join} from "node:path";
import type * as CoreApi from "@actions/core";
import type {Context} from "@actions/github/lib/context";
import type {Octokit} from "@octokit/rest";
import {BASE_INDEX_MANIFEST_FILENAME, BASE_REPO_URL, parseImageHeader, REPO_BRANCH, readManifest, UPGRADE_FILE_IDENTIFIER} from "./common.js";
import type {Context} from "./types.js";
enum ZigbeeStackVersion {
Zigbee2006 = 0x0000,

View File

@@ -1,9 +1,9 @@
import {existsSync, mkdirSync} from "node:fs";
import type * as CoreApi from "@actions/core";
import type {Context} from "@actions/github/lib/context";
import type {Octokit} from "@octokit/rest";
import {ALL_AUTODL_MANUFACTURERS, CACHE_DIR} from "./common.js";
import type {Context} from "./types.js";
export async function overwriteCache(_github: Octokit, core: typeof CoreApi, _context: Context, manufacturersCSV?: string): Promise<void> {
if (!existsSync(CACHE_DIR)) {

View File

@@ -2,7 +2,6 @@ import assert from "node:assert";
import {readFileSync, renameSync} from "node:fs";
import path from "node:path";
import type * as CoreApi from "@actions/core";
import type {Context} from "@actions/github/lib/context";
import type {Octokit} from "@octokit/rest";
import {
addImageToBase,
@@ -17,7 +16,7 @@ import {
parseImageHeader,
UPGRADE_FILE_IDENTIFIER,
} from "./common.js";
import type {ExtraMetas, GHExtraMetas, RepoImageMeta} from "./types.js";
import type {Context, ExtraMetas, GHExtraMetas, RepoImageMeta} from "./types.js";
const GLEDOPTO_MANUFACTURER_CODE = 4687;
const TUYA_MANUFACTURER_CODE_1 = 4098;

View File

@@ -1,10 +1,10 @@
import assert from "node:assert";
import {existsSync, readFileSync, writeFileSync} from "node:fs";
import type * as CoreApi from "@actions/core";
import type {Context} from "@actions/github/lib/context";
import type {Octokit} from "@octokit/rest";
import {execute, PR_ARTIFACT_DIR, PR_DIFF_FILENAME, PR_ERROR_FILENAME, PR_NUMBER_FILENAME} from "./common.js";
import type {Context} from "./types.js";
export async function reportOtaPR(github: Octokit, core: typeof CoreApi, context: Context): Promise<void> {
assert(context.payload.workflow_run, "Not a workflow run");

View File

@@ -1,7 +1,6 @@
import {existsSync, lstatSync, mkdirSync, readdirSync, readFileSync, renameSync, rmSync, writeFileSync} from "node:fs";
import path from "node:path";
import type * as CoreApi from "@actions/core";
import type {Context} from "@actions/github/lib/context";
import type {Octokit} from "@octokit/rest";
import {
addImageToBase,
@@ -24,7 +23,7 @@ import {
UPGRADE_FILE_IDENTIFIER,
writeManifest,
} from "./common.js";
import type {RepoImageMeta} from "./types";
import type {Context, RepoImageMeta} from "./types.js";
/** These are now handled by autodl */
const IGNORE_3RD_PARTIES = ["https://github.com/fairecasoimeme/", "https://github.com/xyzroe/"];

View File

@@ -1,9 +1,9 @@
import {existsSync, mkdirSync, rmSync} from "node:fs";
import type * as CoreApi from "@actions/core";
import type {Context} from "@actions/github/lib/context";
import type {Octokit} from "@octokit/rest";
import {ALL_AUTODL_MANUFACTURERS, BASE_INDEX_MANIFEST_FILENAME, CACHE_DIR, PREV_INDEX_MANIFEST_FILENAME, TMP_DIR, writeManifest} from "./common.js";
import type {Context} from "./types.js";
export async function runAutodl(_github: Octokit, core: typeof CoreApi, _context: Context, manufacturersCSV?: string): Promise<void> {
const manufacturers = manufacturersCSV ? manufacturersCSV.trim().split(",") : ALL_AUTODL_MANUFACTURERS;

View File

@@ -1,11 +1,11 @@
import assert from "node:assert";
import type * as CoreApi from "@actions/core";
import type {Context} from "@actions/github/lib/context";
import type {Octokit} from "@octokit/rest";
import {BASE_INDEX_MANIFEST_FILENAME, PREV_INDEX_MANIFEST_FILENAME, readManifest, writeManifest} from "./common.js";
import {getChangedOtaFiles} from "./ghw_get_changed_ota_files.js";
import {processOtaFiles} from "./ghw_process_ota_files.js";
import type {Context} from "./types.js";
export async function updateManifests(github: Octokit, core: typeof CoreApi, context: Context): Promise<void> {
assert(context.eventName === "push", "Not a push");

View File

@@ -19,7 +19,7 @@ import {
UPGRADE_FILE_IDENTIFIER,
writeManifest,
} from "./common.js";
import type {ExtraMetas} from "./types";
import type {ExtraMetas} from "./types.js";
export enum ProcessFirmwareImageStatus {
Error = -1,

View File

@@ -1,3 +1,7 @@
// XXX: workaround, `Context` no longer exported in v9+
import type {context as githubContext} from "@actions/github";
export type Context = typeof githubContext;
//-- Copied from ZHC
export interface Version {
imageType: number;