mirror of
https://github.com/hanzoai/prettier.git
synced 2026-09-24 17:02:04 +00:00
* Enable import/no-anonymous-default-export * Add names to default exported * More * Ignore shims * Update scripts/build/config.mjs Co-authored-by: fisker Cheung <[email protected]> * lint for shims Co-authored-by: fisker Cheung <[email protected]>
13 lines
324 B
JavaScript
13 lines
324 B
JavaScript
import { runGit } from "../utils.js";
|
|
|
|
export default async function checkGitStatus() {
|
|
const { stdout: status } = await runGit(["status", "--porcelain"]);
|
|
|
|
if (status) {
|
|
throw new Error(
|
|
"Uncommitted local changes. " +
|
|
"Please revert or commit all local changes before making a release."
|
|
);
|
|
}
|
|
}
|