UNPKG

declapract

Version:

A tool to declaratively define best practices, maintainable evolve them, and scalably enforce them.

7 lines 459 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.sortFileActionPlansByPaths = void 0; const cross_path_sort_1 = require("cross-path-sort"); const sortFileActionPlansByPaths = ({ plans, }) => plans.sort((a, b) => (0, cross_path_sort_1.sort)([a.path, b.path], { deepFirst: true })[0] === a.path ? -1 : 1); exports.sortFileActionPlansByPaths = sortFileActionPlansByPaths; //# sourceMappingURL=sortFileActionPlansByPaths.js.map