16 lines
545 B
JavaScript
16 lines
545 B
JavaScript
"use strict";
|
|
|
|
Object.defineProperty(exports, "__esModule", {
|
|
value: true
|
|
});
|
|
exports.withSortedGlobResult = withSortedGlobResult;
|
|
/**
|
|
* Sort the glob result alphabetically, to ensure results are identical across different devices (Linux/MacOS).
|
|
* Since `glob@9` the results are determined by the OS and not guaranteed to be sorted.
|
|
*
|
|
* @see https://github.com/isaacs/node-glob/issues/576#issuecomment-1972765500
|
|
*/
|
|
function withSortedGlobResult(glob) {
|
|
return glob.sort((a, b) => a.localeCompare(b));
|
|
}
|
|
//# sourceMappingURL=glob.js.map
|