2020-02-13 23:52:16 +00:00
|
|
|
/*
|
2024-09-06 17:56:18 +01:00
|
|
|
Copyright 2024 New Vector Ltd.
|
2020-02-13 23:52:16 +00:00
|
|
|
Copyright 2020 The Matrix.org Foundation C.I.C.
|
|
|
|
|
|
2025-01-17 11:44:49 +00:00
|
|
|
SPDX-License-Identifier: AGPL-3.0-only OR GPL-3.0-only OR LicenseRef-Element-Commercial
|
2024-09-06 17:56:18 +01:00
|
|
|
Please see LICENSE files in the repository root for full details.
|
2020-02-13 23:52:16 +00:00
|
|
|
*/
|
|
|
|
|
|
2026-03-30 17:17:36 +02:00
|
|
|
import type HakEnv from "./hakEnv.ts";
|
|
|
|
|
import { type DependencyInfo } from "./dep.ts";
|
2020-02-13 23:52:16 +00:00
|
|
|
|
2021-12-14 14:32:27 +00:00
|
|
|
export default async function link(hakEnv: HakEnv, moduleInfo: DependencyInfo): Promise<void> {
|
2026-02-11 10:50:23 +00:00
|
|
|
await hakEnv.spawn("pnpm", ["link", moduleInfo.moduleOutDir], {
|
2024-10-30 18:06:03 +00:00
|
|
|
cwd: hakEnv.projectRoot,
|
2020-02-13 23:52:16 +00:00
|
|
|
});
|
2020-02-17 14:49:26 +00:00
|
|
|
}
|