mirror of
https://github.com/hanzoai/babel.git
synced 2026-09-24 16:56:45 +00:00
* bump typescript and linter versions * check uncommitted files after lint * Update .github/workflows/ci.yml
15 lines
404 B
JavaScript
15 lines
404 B
JavaScript
// Must run at a git working dir
|
|
|
|
import { execSync } from "child_process";
|
|
|
|
const fixCommand = `make ${process.argv[2]}`;
|
|
|
|
if (execSync("git status --porcelain=v1", { encoding: "utf8" })) {
|
|
console.log(
|
|
`Please re-run "${fixCommand}" and checkout the following changes to git`
|
|
);
|
|
execSync("git status", { stdio: "inherit" });
|
|
// eslint-disable-next-line no-process-exit
|
|
process.exit(1);
|
|
}
|