Skip to content

Commit

Permalink
refactor: bbrnj re-exports rules_nodejs providers (#3274)
Browse files Browse the repository at this point in the history
  • Loading branch information
alexeagle authored Jan 23, 2022
1 parent 3f23768 commit a9d8644
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 0 deletions.
11 changes: 11 additions & 0 deletions docs/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,17 @@ stardoc(
name = "providers",
out = "providers.md_",
input = "//:providers.bzl",
symbol_names = [
"ExternalNpmPackageInfo",
"js_ecma_script_module_info",
"js_named_module_info",
"JSEcmaScriptModuleInfo",
"JSNamedModuleInfo",
"node_modules_aspect",
"NodeRuntimeDepsInfo",
"run_node",
"NpmPackageInfo",
],
tags = ["fix-windows"],
deps = [
"//:bzl",
Expand Down
19 changes: 19 additions & 0 deletions providers.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,25 @@ load(
_run_node = "run_node",
)

# TODO(6.0): remove these re-exports, they are just for easier migration to 5.0.0
# This includes everything from
# https://github.com/bazelbuild/rules_nodejs/blob/4.x/providers.bzl
# which wasn't removed in 5.0 (NodeContextInfo, NODE_CONTEXT_ATTRS)
load(
"@rules_nodejs//nodejs:providers.bzl",
_DeclarationInfo = "DeclarationInfo",
_DirectoryFilePathInfo = "DirectoryFilePathInfo",
_JSModuleInfo = "JSModuleInfo",
_LinkablePackageInfo = "LinkablePackageInfo",
_declaration_info = "declaration_info",
)

DeclarationInfo = _DeclarationInfo
declaration_info = _declaration_info
JSModuleInfo = _JSModuleInfo
LinkablePackageInfo = _LinkablePackageInfo
DirectoryFilePathInfo = _DirectoryFilePathInfo

ExternalNpmPackageInfo = _ExternalNpmPackageInfo
js_ecma_script_module_info = _js_ecma_script_module_info
js_named_module_info = _js_named_module_info
Expand Down

0 comments on commit a9d8644

Please sign in to comment.