Skip to content

Commit

Permalink
fix: do not display empty categories in cli (#439)
Browse files Browse the repository at this point in the history
* fix: do not display empty categories in cli

* remove useless cli dependency

* add missing changeset for testing-library

---------

Co-authored-by: AdrianGonz97 <31664583+AdrianGonz97@users.noreply.github.com>
  • Loading branch information
manuel3108 and AdrianGonz97 committed Jun 24, 2024
1 parent b42e0a0 commit a2ac2ca
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 6 deletions.
5 changes: 5 additions & 0 deletions .changeset/empty-pillows-bathe.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"svelte-add": patch
---

fix: do not display empty categories in cli
5 changes: 5 additions & 0 deletions .changeset/odd-actors-buy.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@svelte-add/testing-library": patch
---

chore: remove unneeded `svelte-add` dependency
4 changes: 3 additions & 1 deletion packages/cli/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,9 @@ async function selectAddersToApply({ projectType, addersMetadata }: AddersToAppl
});
}

promptOptions[categoryDetails.name] = options;
if (options.length > 0) {
promptOptions[categoryDetails.name] = options;
}
}
const selectedAdders = await prompts.groupedMultiSelectPrompt("What would you like to add to your project?", promptOptions);

Expand Down
3 changes: 1 addition & 2 deletions packages/testing-library/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,7 @@
"@svelte-add/ast-tooling": "workspace:^",
"@svelte-add/core": "workspace:^",
"playwright": "^1.44.1",
"create-svelte": "^6.3.0",
"svelte-add": "workspace:^"
"create-svelte": "^6.3.0"
},
"devDependencies": {
"promise-parallel-throttle": "^3.5.0",
Expand Down
3 changes: 0 additions & 3 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit a2ac2ca

Please sign in to comment.