File tree Expand file tree Collapse file tree 1 file changed +0
-9
lines changed
bazel/ts_project/strict_deps Expand file tree Collapse file tree 1 file changed +0
-9
lines changed Original file line number Diff line number Diff line change 1
1
load ("@aspect_rules_js//js:providers.bzl" , "JsInfo" )
2
- load ("@build_bazel_rules_nodejs//:providers.bzl" , "LinkablePackageInfo" )
3
2
4
3
# A custom provider to pass along the npm package name for linked npm packages
5
4
NpmPackage = provider ()
6
5
7
6
def _npm_package_aspect_impl (target , ctx ):
8
- # Extract the module_name provided to an interop compatible ts_project to be made
9
- # available as an imported module by downstream usages.
10
- # TODO: Remove after all interop usage is removed.
11
- if ctx .rule .kind == "ts_project_module" :
12
- package_name = target [LinkablePackageInfo ].package_name
13
- if package_name != "" :
14
- return [NpmPackage (name = package_name )]
15
-
16
7
if (ctx .rule .kind == "npm_link_package_store" ):
17
8
package_name = ctx .rule .attr .package
18
9
You can’t perform that action at this time.
0 commit comments