Files
babel/scripts/assert-dir-git-clean.js
T
f07688487f feat: Make most make commands cross-platform (#14671)
* improve

* doc

* fix

* improve

* improve

* update and fix

* pack dependencies

* Update Makefile.mjs

Co-authored-by: Nicolò Ribaudo <[email protected]>

* review

* fix node6

* fix

* terser

Co-authored-by: Nicolò Ribaudo <[email protected]>
2022-07-27 03:45:15 +08:00

13 lines
354 B
JavaScript

// Must run at a git working dir
import { execSync } from "child_process";
if (execSync("git status --porcelain=v1", { encoding: "utf8" })) {
console.log(
'Please re-run "make build" and checkout the following changes to git'
);
execSync("git status", { stdio: "inherit" });
// eslint-disable-next-line no-process-exit
process.exit(1);
}