/
githubmirror
/
babel
Обзор
Документация
Войти
/
githubmirror
/
babel
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
v7.29.8
scripts/assert-dir-git-clean.js
21 строка
532 B
Huáng Jùnliàng
Enable type checking for `scripts` and `babel-worker.cjs` (#17454)
30 июл 2025, 01:26
Не верифицирован
30 июл 2025, 01:26
ac0b069
Код
Авторство
О чём код?
// @ts-check // Must run at a git working dir import { execSync } from "node:child_process"; const fixCommand = 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" }); if (process.env.GITHUB_ACTIONS) { console.log("::group::git diff"); execSync("git diff", { stdio: "inherit" }); console.log("::endgroup::"); } process.exitCode = 1; }