Skip to content

Commit

Permalink
fix(next): resolve command for sveltekit sync as execute-local (#1487)
Browse files Browse the repository at this point in the history
Co-authored-by: CokaKoala <[email protected]>
  • Loading branch information
ieedan and AdrianGonz97 authored Nov 15, 2024
1 parent fa0fbf4 commit 11d0ff3
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/ten-spiders-do.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"shadcn-svelte": patch
---

fix: Ensure `svelte-kit sync` executes locally
2 changes: 1 addition & 1 deletion packages/cli/src/utils/sveltekit.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ export async function syncSvelteKit(cwd: string) {

agent ??= { agent: "npm", name: "npm" };

const cmd = resolveCommand(agent.agent, "execute", ["svelte-kit", "sync"]);
const cmd = resolveCommand(agent.agent, "execute-local", ["svelte-kit", "sync"]);
if (cmd) {
await execa(cmd.command, cmd.args, {
cwd,
Expand Down

0 comments on commit 11d0ff3

Please sign in to comment.