Skip to main content
A Node repo picks its package manager explicitly: compose BunSpace or NpmSpace. Both build on BaseNodeSpace, which keeps the repo’s own JS tooling and only forwards to its package.json scripts.

What BaseNodeSpace adds

  • node in mise, and node among the required CLI tools (bake tools)
  • the Node template from github/gitignore in the managed .gitignore (Managed content)
  • bake lint runs the lint script after the BaseSpace checks, and skips it when package.json has none
  • bake test runs the test script and bake build runs the build script; either one reports the command as not available when its script is missing
BaseNodeSpace does nothing on its own: it does not know which package manager to run. Use one of the Spaces below.

Package managers

The Space never picks the package manager from the lockfiles it finds, because stray lockfiles happen. Instead, bake lint fails on a stray lockfile, a lockfile of another package manager (package-lock.json, pnpm-lock.yaml, yarn.lock in a BunSpace repo), and names it so you delete it. pnpm and yarn have no Space yet.

Adding scripts or steps

Override the hooks, not the commands, as with any Space:
Last modified on November 30, 2026