Replies: 3 comments 10 replies
-
I'm having trouble getting this to work. I'm not sure if the upgrade guide refers to "build_bazel_rules_nodejs" or just to the core package. The build_bazel_rules_nodejs package doesn't have any |
Beta Was this translation helpful? Give feedback.
-
Testing with rc1, DeclarationInfo seems to be missing from @rules_nodejs//:providers.bzl - it seems like that file is the same one as in the @build_bazel_rules_nodejs repo:
Edit: ah, it seems I should be using @rules_nodejs//nodejs:providers.bzl |
Beta Was this translation helpful? Give feedback.
-
I was excited to see the change to handling npm deps as directories, as the plethora of symlinks in each build step / runfiles can be painful. This seems to work well in some cases, but I'm seeing cases where each individual file in a directory is symlinked in like before, instead of the directory itself. For example, given the following genrule:
When run, it shows:
Is that expected behaviour? Also, it looks like npm_sass_library() is also incompatible with this directory change. I presumably can hack around it for now by adding node_modules to include_paths. (As an aside, rules_sass seems to trip me up each time a new rules_nodejs comes out. The repo seems fairly quiet - are people using some other solution for sass building?) |
Beta Was this translation helpful? Give feedback.
-
Here it is, our twice-yearly major release with breaking changes and big improvements.
The migration guide is at https://github.com/bazelbuild/rules_nodejs/wiki/Migrating-to-5.0
This discussion was created from the release 5.0.0-rc.0.
Beta Was this translation helpful? Give feedback.
All reactions