From 11d0ff3f488a0672a2b3db1d03345f2ec166efbf Mon Sep 17 00:00:00 2001 From: Aidan Bleser <117548273+ieedan@users.noreply.github.com> Date: Fri, 15 Nov 2024 10:03:30 -0600 Subject: [PATCH] fix(next): resolve command for sveltekit sync as `execute-local` (#1487) Co-authored-by: CokaKoala <31664583+AdrianGonz97@users.noreply.github.com> --- .changeset/ten-spiders-do.md | 5 +++++ packages/cli/src/utils/sveltekit.ts | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) create mode 100644 .changeset/ten-spiders-do.md diff --git a/.changeset/ten-spiders-do.md b/.changeset/ten-spiders-do.md new file mode 100644 index 000000000..bd330db4a --- /dev/null +++ b/.changeset/ten-spiders-do.md @@ -0,0 +1,5 @@ +--- +"shadcn-svelte": patch +--- + +fix: Ensure `svelte-kit sync` executes locally diff --git a/packages/cli/src/utils/sveltekit.ts b/packages/cli/src/utils/sveltekit.ts index 425546c2a..3ed8f26b1 100644 --- a/packages/cli/src/utils/sveltekit.ts +++ b/packages/cli/src/utils/sveltekit.ts @@ -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,