* 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>
19 lines
497 B
JavaScript
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());
|
|
}
|