18 lines
524 B
JavaScript
18 lines
524 B
JavaScript
import { execa } from "execa";
|
|
import { runYarn, runGit } from "../utils.js";
|
|
|
|
export default async function installDependencies() {
|
|
await execa("rm", ["-rf", "node_modules"]);
|
|
await runYarn(["install"]);
|
|
|
|
await execa("rm", ["-rf", "node_modules"], { cwd: "./website" });
|
|
await runYarn(["install"], { cwd: "./website" });
|
|
|
|
const { stdout: status } = await runGit(["ls-files", "-m"]);
|
|
if (status) {
|
|
throw new Error(
|
|
"The lockfile needs to be updated, commit it before making the release.",
|
|
);
|
|
}
|
|
}
|