element-desktop/scripts/hak/check.ts

17 lines
497 B
TypeScript
Raw Normal View History

2020-02-17 16:52:41 +01:00
/*
2024-09-06 18:56:18 +02:00
Copyright 2024 New Vector Ltd.
2020-02-17 16:52:41 +01:00
Copyright 2020 The Matrix.org Foundation C.I.C.
2024-09-06 18:56:18 +02:00
SPDX-License-Identifier: AGPL-3.0-only OR GPL-3.0-only
Please see LICENSE files in the repository root for full details.
2020-02-17 16:52:41 +01:00
*/
import type { DependencyInfo } from "./dep.js";
import type HakEnv from "./hakEnv.js";
export default async function check(hakEnv: HakEnv, moduleInfo: DependencyInfo): Promise<void> {
2020-02-17 16:52:41 +01:00
if (moduleInfo.scripts.check) {
await moduleInfo.scripts.check(hakEnv, moduleInfo);
}
}