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 f32fb4f
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))

Check failure on line 634 in index.js

View workflow job for this annotation

GitHub Actions / build (16.x)

Insert `;`

Check failure on line 634 in index.js

View workflow job for this annotation

GitHub Actions / build (18.x, ubuntu-latest)

Insert `;`

Check failure on line 634 in index.js

View workflow job for this annotation

GitHub Actions / build (18.x)

Insert `;`

Check failure on line 634 in index.js

View workflow job for this annotation

GitHub Actions / build (20.x)

Insert `;`
pkg.forEach((p) => {
addComponent(options, allImports, p, ptype, compMap, false, format);
});
Expand Down

0 comments on commit f32fb4f

Please sign in to comment.