Skip to content

Commit

Permalink
fix: deterministic output from ts_options_validator (#3462)
Browse files Browse the repository at this point in the history
The path to the program was absolute, and isn't useful.
Fixes #3461
  • Loading branch information
alexeagle authored May 18, 2022
1 parent f4fca99 commit d69c646
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion nodejs/private/ts_project_options_validator.js
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ function main(_a) {
}
// We have to write an output so that Bazel needs to execute this action.
// Make the output change whenever the attributes changed.
require('fs').writeFileSync(output, "\n// " + process.argv[1] + " checked attributes for " + target + "\n// allow_js: " + attrs.allow_js + "\n// composite: " + attrs.composite + "\n// declaration: " + attrs.declaration + "\n// declaration_map: " + attrs.declaration_map + "\n// incremental: " + attrs.incremental + "\n// source_map: " + attrs.source_map + "\n// emit_declaration_only: " + attrs.emit_declaration_only + "\n// ts_build_info_file: " + attrs.ts_build_info_file + "\n// preserve_jsx: " + attrs.preserve_jsx + "\n", 'utf-8');
require('fs').writeFileSync(output, "\n// checked attributes for " + target + "\n// allow_js: " + attrs.allow_js + "\n// composite: " + attrs.composite + "\n// declaration: " + attrs.declaration + "\n// declaration_map: " + attrs.declaration_map + "\n// incremental: " + attrs.incremental + "\n// source_map: " + attrs.source_map + "\n// emit_declaration_only: " + attrs.emit_declaration_only + "\n// ts_build_info_file: " + attrs.ts_build_info_file + "\n// preserve_jsx: " + attrs.preserve_jsx + "\n", 'utf-8');
return 0;
}
if (require.main === module) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ function main([tsconfigPath, output, target, attrsStr]: string[]): 0|1 {
// Make the output change whenever the attributes changed.
require('fs').writeFileSync(
output, `
// ${process.argv[1]} checked attributes for ${target}
// checked attributes for ${target}
// allow_js: ${attrs.allow_js}
// composite: ${attrs.composite}
// declaration: ${attrs.declaration}
Expand Down

0 comments on commit d69c646

Please sign in to comment.