Skip to content

Commit

Permalink
fix: dont check preconditions if no integration selected (#125)
Browse files Browse the repository at this point in the history
  • Loading branch information
manuel3108 authored Oct 15, 2024
1 parent f645b32 commit 0665bb7
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/pink-eyes-glow.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'sv': patch
---

fix: dont check preconditions if no integration selected
2 changes: 1 addition & 1 deletion packages/cli/commands/add/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -324,7 +324,7 @@ export async function runAddCommand(options: Options, selectedAdderIds: string[]
}

// run precondition checks
if (options.preconditions) {
if (options.preconditions && selectedAdders.length > 0) {
// add global checks
const { kit } = createWorkspace(options.cwd);
const projectType = kit ? 'kit' : 'svelte';
Expand Down

0 comments on commit 0665bb7

Please sign in to comment.