Run npm run build in the package that owns the current file, or run Turbo against that package’s dependencies only, from the Explorer or editor context menu—handy in a Turborepo monorepo.
Source: github.com/rharkor/mono-build (main)
Features
- Build package (npm run build) — Resolves the nearest
package.jsonwith anameabove the file, then runsnpm run buildin that folder. - Build this package’s dependencies (turbo build) — From the monorepo root (where
turbo.jsonis), runs:npx turbo run build --filter="<name>^..." --output-logs=new-only
The^before...is Turbo 2’s “omit the target; include dependencies” filter (not^<name>...).
After the command finishes, the integrated terminal prompts you to press Enter (or a key, on Windows) before the shell exits.
Requirements
- A workspace file inside a package that has a
package.jsonwith anamefield. - For the Turbo action: a
turbo.jsonin a parent directory (monorepo root).
Development
- Open this folder in VS Code or Cursor.
npm installandnpm run compile.- Run and Debug → Run Extension (or F5) to start the Extension Development Host.