Skip to content

Commit

Permalink
chore(deps): revert formatting changes
Browse files Browse the repository at this point in the history
  • Loading branch information
ziebam committed Oct 5, 2024
1 parent 165a533 commit 28d9b5a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/glob-assets.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ export default async function globAssets({ cwd }, assets) {
if (glob.length <= 1 && glob[0].startsWith("!")) {
debug(
"skipping the negated glob %o as its alone in its group and would retrieve a large amount of files",
glob[0]
glob[0],
);
return [];
}
Expand Down Expand Up @@ -64,7 +64,7 @@ export default async function globAssets({ cwd }, assets) {

// If asset is a String definition but no match is found, output the elements of the original glob (each one will be considered as a missing file)
return glob;
})
}),
// Sort with Object first, to prioritize Object definition over Strings in dedup
)
)
Expand All @@ -73,6 +73,6 @@ export default async function globAssets({ cwd }, assets) {
// Compare `path` property if Object definition, value itself if String
(a, b) =>
resolve(cwd, isPlainObject(a) ? a.path : a) ===
resolve(cwd, isPlainObject(b) ? b.path : b)
resolve(cwd, isPlainObject(b) ? b.path : b),
);
}

0 comments on commit 28d9b5a

Please sign in to comment.