fix(typescript): better error when transpiler is used and no declarations are emitted
fix(typescript): better error when transpiler is used and no declarations are emitted

Fixes #3209

bazelbuild/rules_nodejs,bazelbuild/rules_nodejs,bazelbuild/rules_nodejs,bazelbuild/rules_nodejs,bazelbuild/rules_nodejs