We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 194af26 commit 20e824bCopy full SHA for 20e824b
ts/private/ts_project.bzl
@@ -60,10 +60,12 @@ def _ts_project_impl(ctx):
60
_lib.calculate_root_dir(ctx),
61
])
62
if len(typings_outs) > 0:
63
- declaration_dir = ctx.attr.declaration_dir if ctx.attr.declaration_dir else ctx.attr.out_dir
+ declaration_dir = _lib.join(ctx.label.package, ctx.attr.declaration_dir) if ctx.attr.declaration_dir else ctx.label.package
64
+ if declaration_dir == "":
65
+ declaration_dir = "."
66
arguments.add_all([
67
"--declarationDir",
- _lib.join(ctx.label.package, ctx.attr.declaration_dir) if ctx.attr.declaration_dir else ctx.label.package,
68
+ declaration_dir,
69
70
71
# When users report problems, we can ask them to re-build with
0 commit comments