Skip to content

Commit

Permalink
feat: sort components
Browse files Browse the repository at this point in the history
Signed-off-by: Caroline Russell <caroline@appthreat.dev>
  • Loading branch information
cerrussell committed Oct 9, 2023
1 parent e1e8f80 commit d78fe00
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -631,6 +631,7 @@ export function listComponents(
const compMap = {};
const isRootPkg = ptype === "npm";
if (Array.isArray(pkg)) {
pkg.sort((a, b) => a.name.localeCompare(b.name));
pkg.forEach((p) => {
addComponent(options, allImports, p, ptype, compMap, false, format);
});
Expand Down

0 comments on commit d78fe00

Please sign in to comment.