mirror of
https://github.com/ankitects/anki.git
synced 2025-09-20 06:52:21 -04:00
support passing @types/... into svelte-check
This commit is contained in:
parent
03f3dfa3d9
commit
a6ed8e90ce
1 changed files with 10 additions and 2 deletions
|
@ -1,9 +1,17 @@
|
|||
load("@npm//svelte-check:index.bzl", _svelte_check = "svelte_check_test")
|
||||
load("@build_bazel_rules_nodejs//:providers.bzl", "declaration_info", "run_node")
|
||||
load("@build_bazel_rules_nodejs//:providers.bzl", "DeclarationInfo", "declaration_info")
|
||||
load("@io_bazel_rules_sass//:defs.bzl", "SassInfo")
|
||||
|
||||
def _get_dep_sources(dep):
|
||||
if SassInfo in dep:
|
||||
return dep[SassInfo].transitive_sources
|
||||
elif DeclarationInfo in dep:
|
||||
return dep[DeclarationInfo].transitive_declarations
|
||||
else:
|
||||
return []
|
||||
|
||||
def _get_sources(deps):
|
||||
return depset([], transitive = [dep[SassInfo].transitive_sources for dep in deps])
|
||||
return depset([], transitive = [_get_dep_sources(dep) for dep in deps])
|
||||
|
||||
def _svelte(ctx):
|
||||
args = ctx.actions.args()
|
||||
|
|
Loading…
Reference in a new issue