declapract
Version:
A tool to declaratively define best practices, maintainable evolve them, and scalably enforce them.
13 lines • 614 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.applyPlans = void 0;
const sortFileActionPlansByPaths_1 = require("../sortFileActionPlansByPaths");
const applyPlan_1 = require("./applyPlan");
const applyPlans = async ({ plans, projectRootDirectory, }) => {
const sortedPlans = (0, sortFileActionPlansByPaths_1.sortFileActionPlansByPaths)({ plans });
for (const plan of sortedPlans) {
await (0, applyPlan_1.applyPlan)({ plan, projectRootDirectory }); // one at a time, sequentially
}
};
exports.applyPlans = applyPlans;
//# sourceMappingURL=applyPlans.js.map