This repository was archived by the owner on Sep 16, 2021. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +5
-41
lines changed
Expand file tree Collapse file tree 2 files changed +5
-41
lines changed Load Diff This file was deleted.
Original file line number Diff line number Diff line change 1515"""Used for compilation by the different implementations of build_defs.bzl.
1616"""
1717
18- load (":common/closure.bzl" , "closure_aspect" )
1918load (":common/module_mappings.bzl" , "module_mappings_aspect" )
2019load (":common/json_marshal.bzl" , "json_marshal" )
2120
2221BASE_ATTRIBUTES = dict ()
2322
2423DEPS_ASPECTS = [
2524 module_mappings_aspect ,
26- closure_aspect ,
2725]
2826
2927# Attributes shared by any typescript-compatible rule (ts_library, ng_module)
@@ -353,6 +351,10 @@ def compile_ts(ctx,
353351 transitive_es5_sources = depset (transitive = [transitive_es5_sources , es5_sources ])
354352 transitive_es6_sources = depset (transitive = [transitive_es6_sources , es6_sources ])
355353
354+ transitive_runtime_deps = depset (
355+ ctx .attr .runtime_deps ,
356+ transitive = [dep .typescript .runtime_deps for dep in ctx .attr .deps ] )
357+
356358 return {
357359 "files" : files ,
358360 "runfiles" : ctx .runfiles (
@@ -374,6 +376,7 @@ def compile_ts(ctx,
374376 "type_blacklisted_declarations" : type_blacklisted_declarations ,
375377 "tsickle_externs" : tsickle_externs ,
376378 "replay_params" : replay_params ,
379+ "runtime_deps" : transitive_runtime_deps ,
377380 },
378381 # Expose the tags so that a Skylark aspect can access them.
379382 "tags" : ctx .attr .tags ,
You can’t perform that action at this time.
0 commit comments