Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Switch from rules_nodejs to rules_js #515

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

Switch from rules_nodejs to rules_js #515

wants to merge 1 commit into from

Conversation

statik
Copy link
Member

@statik statik commented Oct 17, 2022

https://github.com/aspect-build/rules_js is the replacement for rules_nodejs.

This ruleset is a high-performance alternative to the build_bazel_rules_nodejs Bazel module and accompanying npm packages hosted in https://github.com/bazelbuild/rules_nodejs.

Lazy: only fetches/installs npm packages needed for the requested build/test targets.
Correct: works seamlessly with node.js module resolution. For example there are no pathMapping issues with TypeScript rootDirs.
Fast: Bazel's sandbox only sees npm packages as directories, not individual files.
Supports npm "workspaces": nested npm packages in a monorepo.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant