prettier/scripts/release/steps/check-git-status.js

15 lines
329 B
JavaScript

"use strict";
const { exec } = require("child-process-promise");
module.exports = async function() {
const status = (await exec("git status --porcelain")).stdout;
if (status) {
throw Error(
"Uncommited local changes. " +
"Please revert or commit all local changes before making a release."
);
}
};