Files
test-repo/scripts/release/steps/install-dependencies.js
T
Sosuke Suzukiandfisker Cheung 2664fcb2ba Enable import/no-anonymous-default-export (#11478)
* Enable import/no-anonymous-default-export

* Add names to default exported

* More

* Ignore shims

* Update scripts/build/config.mjs

Co-authored-by: fisker Cheung <lionkay@gmail.com>

* lint  for shims

Co-authored-by: fisker Cheung <lionkay@gmail.com>
2021-09-10 11:17:09 +09:00

19 lines
497 B
JavaScript

import execa from "execa";
import { runYarn, runGit, logPromise } from "../utils.js";
async function install() {
await execa("rm", ["-rf", "node_modules"]);
await runYarn(["install"]);
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."
);
}
}
export default function installDependencies() {
return logPromise("Installing NPM dependencies", install());
}