Skip to content

Commit

Permalink
fix: validate preserveSymlinks tsconfig option is not set
Browse files Browse the repository at this point in the history
Fixes #63
  • Loading branch information
jbedard committed Oct 11, 2022
1 parent 2e1764b commit d7d54c1
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions ts/private/ts_project_options_validator.js
Original file line number Diff line number Diff line change
Expand Up @@ -150,6 +150,17 @@ function main(_a) {
)
return 1
}
if (options.preserveSymlinks) {
console.error(
'ERROR: ts_project rule ' +
target +
" cannot be built because the 'preserveSymlinks' option is set."
)
console.error(
'This is not compatible with ts_project due to the rules_js use of symlinks.'
)
return 1
}
check('allowJs', 'allow_js')
check('declarationMap', 'declaration_map')
check('emitDeclarationOnly', 'emit_declaration_only')
Expand Down

0 comments on commit d7d54c1

Please sign in to comment.