Overview of rules_js
mainrules_js is a high-performance Bazel integration for JavaScript based on the pnpm package manager. It is designed to be:
- Lazy: Only fetches and installs npm packages required for the specific build or test targets requested.
- Correct: Provides seamless Node.js module resolution, resolving common issues like TypeScript
rootDirspath mapping. - Fast: Uses Bazel's sandbox to treat npm packages as directories rather than individual files, significantly improving performance.
- Workspace-aware: Supports npm workspaces for managing nested packages in monorepos.