Skip to content

Commit

Permalink
fix: sv check not allowing any arguments (#420)
Browse files Browse the repository at this point in the history
* Fix the bug

* Changeset

* tweak

---------

Co-authored-by: AdrianGonz97 <[email protected]>
  • Loading branch information
rChaoz and AdrianGonz97 authored Jan 31, 2025
1 parent 6dcbffa commit 96c0c42
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .changeset/cold-ligers-brake.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'sv': patch
---

fix: properly pass through arguments to `sv check`
1 change: 1 addition & 0 deletions packages/cli/commands/check.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ export const check = new Command('check')
.description('a CLI for checking your Svelte code')
// flags that we'll want to pass to `svelte-check`
.allowUnknownOption(true)
.allowExcessArguments(true)
.option('-C, --cwd <path>', 'path to working directory', process.cwd())
.configureHelp({
formatHelp() {
Expand Down

0 comments on commit 96c0c42

Please sign in to comment.