Deploying sveltekit monorepo

I am getting vite: command not found when trying to deploy a sveltekit site part of a bun monorepo. The build command used is bun run build.

2025-01-22T10:07:39.874Z    Initializing build environment...
2025-01-22T10:07:49.391Z    Success: Finished initializing build environment
2025-01-22T10:07:49.468Z    Cloning repository...
2025-01-22T10:07:51.366Z    Detected the following tools from environment: bun@1.1.33, nodejs@22.9.0
2025-01-22T10:07:51.367Z    Executing user build command: bun run build
2025-01-22T10:07:51.633Z    $ vite build
2025-01-22T10:07:51.635Z    /usr/bin/bash: line 1: vite: command not found
2025-01-22T10:07:51.639Z    error: script "build" exited with code 127
2025-01-22T10:07:51.641Z    Failed: error occurred while running build command


Has anyone encountered this issue?

{
  "name": "monorepo",
  "version": "1.0.0",
  "private": true,
  "workspaces": [
    "packages/*",
    "apps/*"
  ]
}

This is the monorepo package.json
Was this page helpful?