fix(tooling): set bun as javascript package manager so moon auto-installs deps

With 'javascript: {}', moon v2 never adds an InstallDependencies action
to the graph, so fresh clones fail with 'vite: command not found' when
running any web/api task (#846). The javascript toolchain drives
installs and must be told bun is the package manager.

Also drop 'bun.installDependencies: true' (defaults to true, and was
inert without packageManager set) and stale comments.

Fixes #846

Co-authored-by: Maze <mazeincoding@users.noreply.github.com>
This commit is contained in:
Cursor Agent 2026-07-17 21:19:13 +00:00
parent bab8af831b
commit 5e0696bc9b
No known key found for this signature in database
1 changed files with 2 additions and 5 deletions

View File

@ -1,12 +1,9 @@
$schema: 'https://moonrepo.dev/schemas/toolchains.json'
# javascript must be enabled alongside bun
javascript: {}
javascript:
packageManager: 'bun'
bun:
version: '1.3.11'
# Auto-install deps when lockfile/manifest changes
installDependencies: true
# Version is inherited from .prototools (versionFromPrototools)
rust: {}