element-desktop/scripts/hak/fetchDeps.ts

20 lines
589 B
TypeScript
Raw Permalink Normal View History

/*
2024-09-06 18:56:18 +02:00
Copyright 2024 New Vector Ltd.
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.
*/
import { mkdirp } from "mkdirp";
2022-01-10 13:57:33 +01:00
import type { DependencyInfo } from "./dep.js";
import type HakEnv from "./hakEnv.js";
2020-02-15 17:52:41 +01:00
export default async function fetchDeps(hakEnv: HakEnv, moduleInfo: DependencyInfo): Promise<void> {
2020-02-15 17:52:41 +01:00
await mkdirp(moduleInfo.moduleDotHakDir);
if (moduleInfo.scripts.fetchDeps) {
await moduleInfo.scripts.fetchDeps(hakEnv, moduleInfo);
}
2020-02-17 15:49:26 +01:00
}